]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | # (C) Copyright Gennadiy Rozental 2001-2005. |
2 | # (C) Copyright Juergen Hunold 2006. | |
3 | # Use, modification, and distribution are subject to the | |
4 | # Boost Software License, Version 1.0. (See accompanying file | |
5 | # LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |
6 | # | |
7 | # See http://www.boost.org/libs/test for the library home page. | |
8 | ||
9 | # bring in the rules for testing | |
10 | import testing ; | |
92f5a8d4 TL |
11 | import os ; |
12 | ||
13 | # requirements | |
14 | import ../../config/checks/config : requires ; | |
15 | ||
16 | local HAS_UBSAN = "NO_UBSAN" ; # need to defined something | |
17 | if [ os.environ UBSAN ] | |
18 | { | |
19 | HAS_UBSAN = "HAS_UBSAN=" [ os.environ UBSAN ] ; | |
20 | } | |
21 | ||
22 | ECHO $(HAS_UBSAN:J) ; | |
7c673cae FG |
23 | |
24 | # Project | |
92f5a8d4 | 25 | project boost/test-examples |
7c673cae FG |
26 | : |
27 | : requirements | |
92f5a8d4 | 28 | <toolset>clang:<cxxflags>-Wno-c99-extensions <define>$(HAS_UBSAN:J) |
7c673cae FG |
29 | ; |
30 | ||
31 | # Define aliases for the needed libs to get shorter names | |
32 | alias prg_exec_monitor | |
33 | : # sources | |
34 | /boost//prg_exec_monitor | |
35 | ; | |
36 | ||
37 | alias unit_test_framework | |
38 | : # sources | |
39 | /boost//unit_test_framework | |
40 | ; | |
41 | ||
42 | # make aliases explicit so the libraries will only be built when requested | |
43 | explicit unit_test_framework ; | |
44 | explicit prg_exec_monitor ; | |
45 | ||
92f5a8d4 | 46 | alias boost_test_examples |
7c673cae FG |
47 | : |
48 | [ run exec_mon_example.cpp prg_exec_monitor ] | |
49 | [ run-fail prg_exec_example.cpp prg_exec_monitor ] | |
50 | ||
51 | [ run-fail test_case_template_example.cpp unit_test_framework/<link>static ] | |
52 | ||
53 | [ run-fail unit_test_example_01.cpp unit_test_framework ] | |
54 | [ run-fail unit_test_example_02.cpp unit_test_framework/<link>static ] | |
55 | [ run-fail unit_test_example_03.cpp unit_test_framework/<link>static ] | |
92f5a8d4 TL |
56 | [ run-fail unit_test_example_04.cpp unit_test_framework : : : [ requires cxx11_variadic_macros cxx11_decltype cxx11_auto_declarations ] ] |
57 | [ run-fail unit_test_example_05.cpp unit_test_framework : : : [ requires cxx11_variadic_macros cxx11_decltype cxx11_auto_declarations ] ] | |
7c673cae | 58 | [ run-fail unit_test_example_06.cpp unit_test_framework ] |
92f5a8d4 | 59 | [ run unit_test_example_07.cpp unit_test_framework : : : [ requires cxx11_variadic_macros cxx11_decltype cxx11_auto_declarations ] ] |
7c673cae FG |
60 | [ run unit_test_example_08.cpp unit_test_framework ] |
61 | [ run unit_test_example_09_1.cpp | |
62 | unit_test_example_09_2.cpp unit_test_framework ] | |
63 | [ run-fail unit_test_example_10.cpp unit_test_framework/<link>static ] | |
64 | [ run-fail unit_test_example_11.cpp unit_test_framework/<link>static ] | |
65 | [ link unit_test_example_12.cpp unit_test_framework/<link>static ] | |
66 | [ run unit_test_example_13.cpp ] | |
92f5a8d4 TL |
67 | [ run-fail unit_test_example_15.cpp : : : [ requires cxx11_decltype cxx11_hdr_random cxx11_hdr_tuple cxx11_hdr_initializer_list cxx11_variadic_macros cxx11_trailing_result_types cxx11_template_aliases ] ] |
68 | [ run unit_test_example_16.cpp unit_test_framework ] | |
7c673cae FG |
69 | |
70 | [ run named_param_example.cpp ] | |
71 | ||
72 | [ run const_string_test.cpp ] | |
73 | ||
74 | [ run-fail external_main_example_1.cpp unit_test_framework ] | |
75 | [ run-fail external_main_example_2.cpp unit_test_framework ] | |
76 | [ run-fail external_main_example_3.cpp ] | |
92f5a8d4 | 77 | [ run-fail filtering_example.cpp unit_test_framework/<link>static : : : [ requires cxx11_variadic_macros cxx11_decltype cxx11_auto_declarations ] ] |
7c673cae | 78 | ; |