X-Git-Url: https://git.dlugolecki.net.pl/?p=command.git;a=blobdiff_plain;f=tests%2FMakefile.am;h=fa1fbc4fca8f0c8f34f2f4f44f3095cbefdaf465;hp=4df147ebef0950d67f77c59f3d228c9da83a8b89;hb=e0fda02032d7d502e57e24eb218da9e24155541a;hpb=ef9c54cfdb5b669287dbc5e2d07a62715f1bf202 diff --git a/tests/Makefile.am b/tests/Makefile.am index 4df147e..fa1fbc4 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -4,6 +4,7 @@ TEST_PROGS = \ descriptive/holds_data.test \ callable/invokes_provided_function.test \ callable/invokes_void_function.test \ + callable/invokes_class_method.test \ parameter/is_descriptive.test \ parameter/should_be_non_required.test \ argument/handles_string_value.test \ @@ -47,10 +48,28 @@ AM_CXXFLAGS = -I$(top_srcdir)/include -std=c++11 check-% : %.test all @srcdir=$(srcdir); export srcdir; +cov-reset: + rm -fr coverage + find . -name "*.gcda" -exec rm {} \; + find . -name "*.gcno" -exec rm {} \; + lcov --directory . --zerocounters + +cov-report: + mkdir -p coverage + lcov --compat-libtool --directory . --capture --output-file coverage/app.info + genhtml -o coverage/ coverage/app.info + +cov: + make cov-report + +clean-local: + make cov-reset + descriptive_holds_data_test_SOURCES = descriptive/holds_data.cpp callable_invokes_provided_function_test_SOURCES = callable/invokes_provided_function.cpp callable_invokes_void_function_test_SOURCES = callable/invokes_void_function.cpp +callable_invokes_class_method_test_SOURCES = callable/invokes_class_method.cpp parameter_is_descriptive_test_SOURCES = parameter/is_descriptive.cpp parameter_should_be_non_required_test_SOURCES = parameter/should_be_non_required.cpp