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