Added some Command tests.
[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
32 TESTS = \
33         $(TEST_PROGS) \
34         $(TEST_SCRPTS)
35
36 EXTRA_DIST = \
37         $(TEST_SCRPTS)
38
39 noinst_PROGRAMS = \
40         $(TEST_PROGS) \
41         command/option_test_command
42
43 AM_CXXFLAGS = -I$(top_srcdir)/include -std=c++11
44
45 check-% :       %.test all
46         @srcdir=$(srcdir); export srcdir;
47
48 descriptive_holds_data_test_SOURCES  = descriptive/holds_data.cpp
49
50 callable_invokes_provided_function_test_SOURCES  = callable/invokes_provided_function.cpp
51 callable_invokes_void_function_test_SOURCES  = callable/invokes_void_function.cpp
52
53 parameter_is_descriptive_test_SOURCES  = parameter/is_descriptive.cpp
54 parameter_should_be_non_required_test_SOURCES = parameter/should_be_non_required.cpp
55
56 argument_handles_string_value_test_SOURCES  = argument/handles_string_value.cpp
57 argument_handles_int_value_test_SOURCES  = argument/handles_int_value.cpp
58 argument_handles_negative_int_value_test_SOURCES  = argument/handles_negative_int_value.cpp
59 argument_handles_float_value_test_SOURCES  = argument/handles_float_value.cpp
60 argument_handles_negative_float_value_test_SOURCES  = argument/handles_negative_float_value.cpp
61 argument_handles_boolean_value_test_SOURCES  = argument/handles_boolean_value.cpp
62
63 option_handles_string_value_test_SOURCES  = option/handles_string_value.cpp
64 option_handles_int_value_test_SOURCES = option/handles_int_value.cpp
65 option_handles_negative_int_value_test_SOURCES = option/handles_negative_int_value.cpp
66 option_handles_float_value_test_SOURCES  = option/handles_float_value.cpp
67 option_handles_negative_float_value_test_SOURCES  = option/handles_negative_float_value.cpp
68 option_handles_boolean_value_test_SOURCES  = option/handles_boolean_value.cpp
69 option_handles_void_value_test_SOURCES  = option/handles_void_value.cpp
70 option_should_match_exact_name_test_SOURCES  = option/should_match_exact_name.cpp
71 option_should_throw_exception_on_missing_value_test_SOURCES = option/should_throw_exception_on_missing_value.cpp
72
73 required_should_be_required_test_SOURCES = required/should_be_required.cpp
74
75 multivalue_should_extract_arguments_by_separator_test_SOURCES = multiValue/should_extract_arguments_by_separator.cpp
76 multivalue_should_extract_options_by_separator_test_SOURCES = multiValue/should_extract_options_by_separator.cpp
77
78 command_option_test_command_SOURCES = command/src/option_test_command.cpp