Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of boost. Click here for the latest Boost documentation.

tools/build/v2/test/check-test-tools.jam

include recursive.jam ;
include assert-equal.jam ;

#####################################
# Test the testing tools right here #
#####################################

# This command always exits with a failure.
Jam-fail "EXIT error ;" ;

# This should fail to fail
Jam-fail
     "include recursive.jam ; Jam-fail \"# this innocuous Jamfile should fail to fail\" ;"
      ;

# the ECHO rule always has an empty result.
Jam-fail "include assert-equal.jam ; assert-equal fubar : ECHO checking that assertions fail ;"
    : "ASSERTION FAILURE"
    ;

local NOTHING = ;
assert-equal $(NOTHING) : ECHO checking that assertions succeed ;