# Boost System Library test Jamfile # Copyright Beman Dawes 2003, 2006 # Distributed under the Boost Software License, Version 1.0. # See accompanying file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt # See library home page at http://www.boost.org/libs/system import testing ; project : requirements /boost/system//boost_system msvc:on ; lib throw_test : throw_test.cpp : shared:BOOST_SYSTEM_DYN_LINK=1 static:BOOST_SYSTEM_STATIC_LINK=1 ; rule cxx03 ( properties * ) { local result ; if gcc in $(properties) || clang in $(properties) { result = -std=c++03 ; } else { result = no ; } return $(result) ; } rule cxx11 ( properties * ) { local result ; if 4.6 in $(properties) { result = -std=c++0x ; } else if gcc in $(properties) || clang in $(properties) { result = -std=c++11 ; } else { result = no ; } return $(result) ; } test-suite "system" : [ run error_code_test.cpp : # command line : # input files : # requirements static ] [ run error_code_test.cpp : : : shared : error_code_test_shared ] [ run error_code_test.cpp : : : static @cxx03 : error_code_test_03 ] [ run error_code_test.cpp : : : shared @cxx03 : error_code_test_shared_03 ] [ run error_code_test.cpp : : : static @cxx11 : error_code_test_11 ] [ run error_code_test.cpp : : : shared @cxx11 : error_code_test_shared_11 ] [ run error_code_user_test.cpp : : : static ] [ run error_code_user_test.cpp : : : shared : error_code_user_test_shared ] [ run system_error_test.cpp : : : static ] [ run system_error_test.cpp : : : shared : system_error_test_shared ] [ run dynamic_link_test.cpp throw_test : : : shared : throw_test_shared ] [ run initialization_test.cpp : : : shared : initialization_test_shared ] [ run header_only_test.cpp : : : static ] [ run config_test.cpp : : : always_show_run_output ] [ run std_interop_test.cpp : : : static ] [ run std_interop_test.cpp : : : shared : std_interop_test_shared ] [ run std_mismatch_test.cpp : : : static @cxx03 : std_mismatch_test_03 ] [ run std_mismatch_test.cpp : : : shared @cxx03 : std_mismatch_test_shared_03 ] [ run std_mismatch_test.cpp : : : static @cxx11 : std_mismatch_test_11 ] [ run std_mismatch_test.cpp : : : shared @cxx11 : std_mismatch_test_shared_11 ] ;