X-Git-Url: https://git.dlugolecki.net.pl/?a=blobdiff_plain;f=tests%2FMakefile.am;h=f489244dbb64842ade7103a7c945919faa11a087;hb=97ad7e11f6cf441029da147e4a321158d8fd713d;hp=c08c2cc69259ed537edc5f7bc0d40b4deca5466c;hpb=f11e60384326f936aa57e55700e440e9e10f9466;p=command.git diff --git a/tests/Makefile.am b/tests/Makefile.am index c08c2cc..f489244 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,20 +1,49 @@ AUTOMAKE_OPTIONS = subdir-objects -TESTS = \ +TEST_PROGS = \ descriptive_holds_data.test \ callable_invokes_provided_function.test \ callable_invokes_void_function.test \ parameter_is_descriptive.test \ + parameter_should_be_non_required.test \ argument_handles_string_value.test \ argument_handles_int_value.test \ argument_handles_negative_int_value.test \ argument_handles_float_value.test \ argument_handles_negative_float_value.test \ - argument_handles_boolean_value.test + argument_handles_boolean_value.test \ + option_handles_string_value.test \ + option_handles_int_value.test \ + option_handles_negative_int_value.test \ + option_handles_float_value.test \ + option_handles_negative_float_value.test \ + option_handles_boolean_value.test \ + option_handles_void_value.test \ + option_should_match_exact_name.test \ + option_should_throw_exception_on_missing_value.test \ + required_should_be_required.test \ + multivalue_should_extract_arguments_by_separator.test \ + multivalue_should_extract_options_by_separator.test + +TEST_SCRPTS = \ + command/understand_void_option.test \ + command/understand_bool_option.test + +TESTS = \ + $(TEST_PROGS) \ + $(TEST_SCRPTS) + +EXTRA_DIST = \ + $(TEST_SCRPTS) -noinst_PROGRAMS = $(TESTS) +noinst_PROGRAMS = \ + $(TEST_PROGS) \ + command/option_test_command -AM_CXXFLAGS = -O3 -I$(top_srcdir)/include -std=c++11 +AM_CXXFLAGS = -I$(top_srcdir)/include -std=c++11 + +check-% : %.test all + @srcdir=$(srcdir); export srcdir; descriptive_holds_data_test_SOURCES = descriptive/holds_data.cpp @@ -22,6 +51,7 @@ callable_invokes_provided_function_test_SOURCES = callable/invokes_provided_fun callable_invokes_void_function_test_SOURCES = callable/invokes_void_function.cpp parameter_is_descriptive_test_SOURCES = parameter/is_descriptive.cpp +parameter_should_be_non_required_test_SOURCES = parameter/should_be_non_required.cpp argument_handles_string_value_test_SOURCES = argument/handles_string_value.cpp argument_handles_int_value_test_SOURCES = argument/handles_int_value.cpp @@ -29,3 +59,20 @@ argument_handles_negative_int_value_test_SOURCES = argument/handles_negative_in argument_handles_float_value_test_SOURCES = argument/handles_float_value.cpp argument_handles_negative_float_value_test_SOURCES = argument/handles_negative_float_value.cpp argument_handles_boolean_value_test_SOURCES = argument/handles_boolean_value.cpp + +option_handles_string_value_test_SOURCES = option/handles_string_value.cpp +option_handles_int_value_test_SOURCES = option/handles_int_value.cpp +option_handles_negative_int_value_test_SOURCES = option/handles_negative_int_value.cpp +option_handles_float_value_test_SOURCES = option/handles_float_value.cpp +option_handles_negative_float_value_test_SOURCES = option/handles_negative_float_value.cpp +option_handles_boolean_value_test_SOURCES = option/handles_boolean_value.cpp +option_handles_void_value_test_SOURCES = option/handles_void_value.cpp +option_should_match_exact_name_test_SOURCES = option/should_match_exact_name.cpp +option_should_throw_exception_on_missing_value_test_SOURCES = option/should_throw_exception_on_missing_value.cpp + +required_should_be_required_test_SOURCES = required/should_be_required.cpp + +multivalue_should_extract_arguments_by_separator_test_SOURCES = multiValue/should_extract_arguments_by_separator.cpp +multivalue_should_extract_options_by_separator_test_SOURCES = multiValue/should_extract_options_by_separator.cpp + +command_option_test_command_SOURCES = command/src/option_test_command.cpp