4df147ebef0950d67f77c59f3d228c9da83a8b89
[command.git] / tests / Makefile.am
1 AUTOMAKE_OPTIONS = subdir-objects
2
3 TEST_PROGS = \
4         descriptive/holds_data.test \
5         callable/invokes_provided_function.test \
6         callable/invokes_void_function.test \
7         parameter/is_descriptive.test \
8         parameter/should_be_non_required.test \
9         argument/handles_string_value.test \
10         argument/handles_int_value.test \
11         argument/handles_negative_int_value.test \
12         argument/handles_float_value.test \
13         argument/handles_negative_float_value.test \
14         argument/handles_boolean_value.test \
15         option/handles_string_value.test \
16         option/handles_int_value.test \
17         option/handles_negative_int_value.test \
18         option/handles_float_value.test \
19         option/handles_negative_float_value.test \
20         option/handles_boolean_value.test \
21         option/handles_void_value.test \
22         option/should_match_exact_name.test \
23         option/should_throw_exception_on_missing_value.test \
24         required/should_be_required.test \
25         multivalue/should_extract_arguments_by_separator.test \
26         multivalue/should_extract_options_by_separator.test
27
28 TEST_SCRPTS = \
29         command/understand_void_option.test \
30         command/understand_bool_option.test \
31         command/understand_int_option.test \
32         command/understand_unsigned_int_option.test
33
34 TESTS = \
35         $(TEST_PROGS) \
36         $(TEST_SCRPTS)
37
38 EXTRA_DIST = \
39         $(TEST_SCRPTS)
40
41 noinst_PROGRAMS = \
42         $(TEST_PROGS) \
43         command/option_test_command
44
45 AM_CXXFLAGS = -I$(top_srcdir)/include -std=c++11
46
47 check-% :       %.test all
48         @srcdir=$(srcdir); export srcdir;
49
50 descriptive_holds_data_test_SOURCES  = descriptive/holds_data.cpp
51
52 callable_invokes_provided_function_test_SOURCES  = callable/invokes_provided_function.cpp
53 callable_invokes_void_function_test_SOURCES  = callable/invokes_void_function.cpp
54
55 parameter_is_descriptive_test_SOURCES  = parameter/is_descriptive.cpp
56 parameter_should_be_non_required_test_SOURCES = parameter/should_be_non_required.cpp
57
58 argument_handles_string_value_test_SOURCES  = argument/handles_string_value.cpp
59 argument_handles_int_value_test_SOURCES  = argument/handles_int_value.cpp
60 argument_handles_negative_int_value_test_SOURCES  = argument/handles_negative_int_value.cpp
61 argument_handles_float_value_test_SOURCES  = argument/handles_float_value.cpp
62 argument_handles_negative_float_value_test_SOURCES  = argument/handles_negative_float_value.cpp
63 argument_handles_boolean_value_test_SOURCES  = argument/handles_boolean_value.cpp
64
65 option_handles_string_value_test_SOURCES  = option/handles_string_value.cpp
66 option_handles_int_value_test_SOURCES = option/handles_int_value.cpp
67 option_handles_negative_int_value_test_SOURCES = option/handles_negative_int_value.cpp
68 option_handles_float_value_test_SOURCES  = option/handles_float_value.cpp
69 option_handles_negative_float_value_test_SOURCES  = option/handles_negative_float_value.cpp
70 option_handles_boolean_value_test_SOURCES  = option/handles_boolean_value.cpp
71 option_handles_void_value_test_SOURCES  = option/handles_void_value.cpp
72 option_should_match_exact_name_test_SOURCES  = option/should_match_exact_name.cpp
73 option_should_throw_exception_on_missing_value_test_SOURCES = option/should_throw_exception_on_missing_value.cpp
74
75 required_should_be_required_test_SOURCES = required/should_be_required.cpp
76
77 multivalue_should_extract_arguments_by_separator_test_SOURCES = multiValue/should_extract_arguments_by_separator.cpp
78 multivalue_should_extract_options_by_separator_test_SOURCES = multiValue/should_extract_options_by_separator.cpp
79
80 command_option_test_command_SOURCES = command/src/option_test_command.cpp