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 an old version of boost. Click here for the latest version's documentation home page.

status/Jamfile

# Boost regression-testing Jamfile
#  (C) Copyright David Abrahams 2002. Permission to copy, use, modify, sell and
#  distribute this software is granted provided this copyright notice appears in
#  all copies. This software is provided "as is" without express or implied
#  warranty, and with no claim as to its suitability for any purpose.

subproject status ;

# bring in the rules for testing
import testing ;

# Make tests run by default.
DEPENDS all : test ;

# Tests from Jamfiles in individual library test subdirectories
#  Please keep these in alphabetic order by test-suite name

subinclude libs/bind/test ;              # test-suite bind
subinclude libs/conversion/test ;        # test-suite conversion
subinclude libs/date_time/test ;         # test-suite date_time
subinclude libs/filesystem/test ;        # test-suite filesystem
subinclude libs/format/test ;            # test-suite format
subinclude libs/function/test ;          # test-suite function
subinclude libs/graph/test ;             # test-suite graph
subinclude libs/io/test ;                # test-suite io
subinclude libs/iterator/test ;          # test-suite iterator
subinclude libs/math/test ;              # test-suite math
subinclude libs/numeric/interval/test ;  # test-suite interval
subinclude libs/multi_array/test ;       # test-suite multi_array
subinclude libs/optional/test ;          # test-suite optional
subinclude libs/python/test ;            # test-suite python
subinclude libs/random/test ;            # test-suite random
subinclude libs/regex/test ;             # test-suite regex
subinclude libs/regex/example ;          # test-suite regex-examples
subinclude libs/signals/test ;           # test-suite signals
subinclude libs/smart_ptr/test ;         # test-suite smart_ptr
subinclude libs/static_assert ;          # test-suite static_assert
subinclude libs/thread/test ;            # test-suite thread
subinclude libs/type_traits/test ;       # test-suite type_traits
subinclude libs/utility/test ;           # test-suite utility
subinclude libs/variant/test ;           # test-suite variant
 

# Tests specified in this Jamfile
{
    # look in BOOST_ROOT for sources first, just in this Jamfile
    local SEARCH_SOURCE = $(BOOST_ROOT) $(SEARCH_SOURCE) ;
    
    test-suite config
        : [ run libs/config/test/config_test.cpp <lib>../libs/test/build/boost_test_exec_monitor
                : #args
                : #input-files
                : #requirements
                <threading>multi <no-warn>config_test.cpp
          ]
           [ run libs/config/test/config_info.cpp : : : <test-info>always_show_run_output ]
           [ run libs/config/test/abi/abi_test.cpp libs/config/test/abi/main.cpp ]
           [ run libs/config/test/limits_test.cpp <lib>../libs/test/build/boost_test_exec_monitor ]
           [ run libs/config/test/link/main.cpp <dll>../libs/config/test/link/link_test
                : #args
                : #input-files
                : #requirements
                <runtime-link>dynamic
                <define>BOOST_DYN_LINK=1
                <define>BOOST_CONFIG_NO_LIB=1
                :
                config_link_test
          ]
          [ compile-fail libs/config/test/threads/test_thread_fail1.cpp ]
          [ compile-fail libs/config/test/threads/test_thread_fail2.cpp ]
        ;

    run libs/any/any_test.cpp ;

    test-suite array
        : [ run libs/array/array1.cpp ]
          [ run libs/array/array2.cpp ]
          [ run libs/array/array3.cpp ]
          [ run libs/array/array4.cpp ]
          [ run libs/array/array5.cpp ]
        ;

    test-suite concept_check
        : [ compile libs/concept_check/concept_check_test.cpp ]
          [ compile libs/concept_check/class_concept_check_test.cpp ]
          [ compile-fail libs/concept_check/concept_check_fail_expected.cpp ]
          [ compile-fail libs/concept_check/class_concept_fail_expected.cpp ]
        ;

    run libs/crc/crc_test.cpp <lib>../libs/test/build/boost_test_exec_monitor ;


    test-suite disjoint_sets
        : [ run libs/disjoint_sets/disjoint_set_test.cpp <lib>../libs/test/build/boost_test_exec_monitor ]
        ;

    test-suite dynamic_bitset
        : [ run libs/dynamic_bitset/dyn_bitset_unit_tests1.cpp <lib>../libs/test/build/boost_test_exec_monitor ]
          [ run libs/dynamic_bitset/dyn_bitset_unit_tests2.cpp <lib>../libs/test/build/boost_test_exec_monitor ]
          [ run libs/dynamic_bitset/dyn_bitset_unit_tests3.cpp <lib>../libs/test/build/boost_test_exec_monitor ]
        ;

    
    run libs/functional/function_test.cpp ;

    test-suite integer
        : [ run libs/integer/cstdint_test.cpp ]
          [ run libs/integer/integer_test.cpp ]
          [ run libs/integer/integer_traits_test.cpp <lib>../libs/test/build/boost_test_exec_monitor ]
        ;

    test-suite lambda
        : [ run libs/lambda/test/algorithm_test.cpp <lib>../libs/test/build/boost_test_exec_monitor ]
          [ run libs/lambda/test/bind_tests_simple.cpp <lib>../libs/test/build/boost_test_exec_monitor ]
          [ run libs/lambda/test/bind_tests_advanced.cpp <lib>../libs/test/build/boost_test_exec_monitor ]
          [ run libs/lambda/test/bind_tests_simple_f_refs.cpp <lib>../libs/test/build/boost_test_exec_monitor ]
          [ run libs/lambda/test/bll_and_function.cpp <lib>../libs/test/build/boost_test_exec_monitor ]
          [ run libs/lambda/test/cast_test.cpp <lib>../libs/test/build/boost_test_exec_monitor : : : : lambda_cast_test ]
          [ run libs/lambda/test/constructor_tests.cpp <lib>../libs/test/build/boost_test_exec_monitor ]
          [ run libs/lambda/test/control_structures.cpp <lib>../libs/test/build/boost_test_exec_monitor ]
          [ run libs/lambda/test/exception_test.cpp <lib>../libs/test/build/boost_test_exec_monitor ]
          [ run libs/lambda/test/extending_rt_traits.cpp <lib>../libs/test/build/boost_test_exec_monitor ]
          [ run libs/lambda/test/is_instance_of_test.cpp <lib>../libs/test/build/boost_test_exec_monitor ]
          [ run libs/lambda/test/member_pointer_test.cpp <lib>../libs/test/build/boost_test_exec_monitor ]
          [ run libs/lambda/test/operator_tests_simple.cpp <lib>../libs/test/build/boost_test_exec_monitor ]
          [ run libs/lambda/test/phoenix_control_structures.cpp <lib>../libs/test/build/boost_test_exec_monitor ]
          [ run libs/lambda/test/switch_construct.cpp <lib>../libs/test/build/boost_test_exec_monitor ]
        ;


    run libs/pool/test/test_pool_alloc.cpp  <lib>../libs/test/build/boost_test_exec_monitor ;

    test-suite preprocessor
        : [ compile libs/preprocessor/test/arithmetic.cpp ]
          [ compile libs/preprocessor/test/array.cpp ]
          [ compile libs/preprocessor/test/comparison.cpp ]
          [ compile libs/preprocessor/test/control.cpp ]
          [ compile libs/preprocessor/test/debug.cpp ]
          [ compile libs/preprocessor/test/facilities.cpp ]
          [ compile libs/preprocessor/test/iteration.cpp ]
          [ compile libs/preprocessor/test/list.cpp ]
          [ compile libs/preprocessor/test/logical.cpp ]
          [ compile libs/preprocessor/test/repetition.cpp ]
          [ compile libs/preprocessor/test/selection.cpp ]
          [ compile libs/preprocessor/test/slot.cpp ]
          [ compile libs/preprocessor/test/tuple.cpp ]
        ;

    test-suite property_map
        : [ compile libs/property_map/property_map_cc.cpp ]
        ;

    test-suite rational
        : [ run libs/rational/rational_example.cpp ]
          [ run libs/rational/rational_test.cpp ]
        ;

    subinclude libs/test/test ;
    
    compile libs/timer/timer_test.cpp ;

    test-suite tokenizer
        : [ run libs/tokenizer/examples.cpp <lib>../libs/test/build/boost_test_exec_monitor ]
          [ run libs/tokenizer/simple_example_1.cpp ]
          [ run libs/tokenizer/simple_example_2.cpp ]
          [ run libs/tokenizer/simple_example_3.cpp ]
          [ run libs/tokenizer/simple_example_4.cpp ]
          [ run libs/tokenizer/simple_example_5.cpp ]
        ;

    test-suite tuple
        : [ run libs/tuple/test/tuple_test_bench.cpp <lib>../libs/test/build/boost_test_exec_monitor ]
          [ run libs/tuple/test/io_test.cpp <lib>../libs/test/build/boost_test_exec_monitor ]
    ;

    test-suite ublas
        : [ run libs/numeric/ublas/test1/test1.cpp
                libs/numeric/ublas/test1/test11.cpp
                libs/numeric/ublas/test1/test12.cpp
                libs/numeric/ublas/test1/test13.cpp
            : # args
            : # input files
            : # requirements

              # borland warns so often that successful compilation is prevented.
                <borland><*><cxxflags>"-w-8026 -w-8027 -w-8057 -w-8084 -w-8092"
                <kylix><*><cxxflags>"-w-8026 -w-8027 -w-8057 -w-8084 -w-8092"
          ]
          [ run libs/numeric/ublas/test2/test2.cpp
                libs/numeric/ublas/test2/test21.cpp
                libs/numeric/ublas/test2/test22.cpp
                libs/numeric/ublas/test2/test23.cpp
            : # args
            : # input files
            : # requirements

              # borland warns so often that successful compilation is prevented.
                <borland><*><cxxflags>"-w-8026 -w-8027 -w-8057 -w-8084 -w-8092"
                <kylix><*><cxxflags>"-w-8026 -w-8027 -w-8057 -w-8084 -w-8092"
          ]
          [ run libs/numeric/ublas/test3/test3.cpp
                libs/numeric/ublas/test3/test31.cpp
                libs/numeric/ublas/test3/test32.cpp
                libs/numeric/ublas/test3/test33.cpp
            : # args
            : # input files
            : # requirements

              # borland warns so often that successful compilation is prevented.
                <borland><*><cxxflags>"-w-8026 -w-8027 -w-8057 -w-8084 -w-8092"
                <kylix><*><cxxflags>"-w-8026 -w-8027 -w-8057 -w-8084 -w-8092"
          ]
          [ run libs/numeric/ublas/test4/test4.cpp
                libs/numeric/ublas/test4/test41.cpp
                libs/numeric/ublas/test4/test42.cpp
                libs/numeric/ublas/test4/test43.cpp
            : # args
            : # input files
            : # requirements

              # borland warns so often that successful compilation is prevented.
                <borland><*><cxxflags>"-w-8026 -w-8027 -w-8057 -w-8084 -w-8092"
                <kylix><*><cxxflags>"-w-8026 -w-8027 -w-8057 -w-8084 -w-8092"
          ]
          [ run libs/numeric/ublas/test5/test5.cpp
                libs/numeric/ublas/test5/test51.cpp
                libs/numeric/ublas/test5/test52.cpp
                libs/numeric/ublas/test5/test53.cpp
            : # args
            : # input files
            : # requirements

              # borland warns so often that successful compilation is prevented.
                <borland><*><cxxflags>"-w-8026 -w-8027 -w-8057 -w-8084 -w-8092"
                <kylix><*><cxxflags>"-w-8026 -w-8027 -w-8057 -w-8084 -w-8092"
          ]
          [ run libs/numeric/ublas/test6/test6.cpp
                libs/numeric/ublas/test6/test61.cpp
                libs/numeric/ublas/test6/test62.cpp
                libs/numeric/ublas/test6/test63.cpp
            : # args
            : # input files
            : # requirements

              # borland warns so often that successful compilation is prevented.
                <borland><*><cxxflags>"-w-8026 -w-8027 -w-8057 -w-8084 -w-8092"
                <kylix><*><cxxflags>"-w-8026 -w-8027 -w-8057 -w-8084 -w-8092"
          ]
          [ run libs/numeric/ublas/concepts.cpp
            : # args
            : # input files
            : # requirements

              # borland warns so often that successful compilation is prevented.
                <borland><*><cxxflags>"-w-8026 -w-8027 -w-8057 -w-8084 -w-8092"
                <kylix><*><cxxflags>"-w-8026 -w-8027 -w-8057 -w-8084 -w-8092"
          ]
        ;
}