• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1import testing ;
2
3project
4    : requirements
5    <library>../build//boost_program_options
6    <link>static
7    <variant>debug
8
9#    <define>_GLIBCXX_CONCEPT_CHECKS
10#    <define>_GLIBCXX_DEBUG
11    ;
12
13rule po-test ( source : input-file ? )
14{
15    return
16        [ run $(source) : : $(input-file) ]
17        [ run $(source) : : $(input-file)
18          : <link>shared <define>BOOST_PROGRAM_OPTIONS_DYN_LINK=1
19          : $(source:B)_dll ]
20    ;
21}
22
23test-suite program_options :
24
25    [ po-test options_description_test.cpp ]
26    [ po-test parsers_test.cpp : config_test.cfg ]
27    [ po-test variable_map_test.cpp ]
28    [ po-test cmdline_test.cpp ]
29    [ po-test positional_options_test.cpp ]
30    [ po-test unicode_test.cpp ]
31    [ po-test winmain.cpp ]
32    [ po-test exception_test.cpp ]
33    [ po-test split_test.cpp ]
34    [ po-test unrecognized_test.cpp ]
35    [ po-test required_test.cpp : required_test.cfg ]
36    [ po-test exception_txt_test.cpp ]
37    [ po-test optional_test.cpp ]
38    [ run options_description_test.cpp : : : <rtti>off <define>BOOST_NO_RTTI <define>BOOST_NO_TYPEID : options_description_no_rtti_test ]
39    ;
40
41exe test_convert : test_convert.cpp ;
42
43# `quick` target (for CI)
44run quick.cpp : --path=initial ;
45