Boost logo

Boost-Build :

From: Kostas Kostiadis (kos_at_[hidden])
Date: 2006-06-06 10:05:52


Hello all,

Are there any example/docs of how to use the testing.jam stuff? (in
particular rule compile and rule run)
I have the following jamfile:

###
import testing ;

PROJECT_NAME = hello ;

project $(PROJECT_NAME)
    : default-build debug
    : build-dir $(OUTPUT_DIR)/$(PROJECT_NAME)
    ;

exe $(PROJECT_NAME) : hello.cpp ;

install $(BUILD_DIR) : $(PROJECT_NAME)
                     : <install-dependencies>on <install-type>EXE
                     ;
###

I'd like to add some compile and run tests at the end, but I've no idea how
to do so...
I've managed to do

unit-test foo
        : $(PROJECT_NAME)
        :
        :
        ;

Which works fine and produces foo.passed, but I read that unit-test was
supported for historical reasons...
I'd like to get compile and run working if possible.

Cheers,
Kos


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk