tests/plugins/ctf/Makefile.am: do not set `TESTS` in this file
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 3 May 2019 23:51:11 +0000 (19:51 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Sat, 4 May 2019 01:50:00 +0000 (21:50 -0400)
We want the project's `make check` to continue even if specific tests
fail, so we can't define `TESTS` in a subdirectory's `Makefile.am`,
because if the test fails, `make` fails, and subsequent tests are not
executed.

There are ways to circumvent this, for example using `make`'s
`--always-make` option, but it was decided previously that we want
`make check` to run all tests as is, without any option.

Therefore we set `TESTS` to all tests in `tests/Makefile.am`.

To execute tests specific to a subdirectory, we have the following
targets:

* `check-bindings`
* `check-cli`
* `check-lib`
* `check-plugins`
* `check-python-plugin-provider`

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: I1f198ff3ff2b44947042aee7fa5f01759874941f
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1254
Reviewed-by: Simon Marchi <simon.marchi@efficios.com>
tests/Makefile.am
tests/plugins/ctf/Makefile.am

index 48598dc4c80b2891fc71a40cc3f630ca8adf9beb..5bea8756ddda2d48d085a37c7c7f99bf19062004 100644 (file)
@@ -41,8 +41,10 @@ endif
 TESTS_PLUGINS =
 
 if !ENABLE_BUILT_IN_PLUGINS
-if ENABLE_DEBUG_INFO
 if ENABLE_PYTHON_BINDINGS
+TESTS_PLUGINS += plugins/ctf/test_ctf_plugin
+
+if ENABLE_DEBUG_INFO
 TESTS_PLUGINS += plugins/test_lttng_utils_debug_info
 endif
 endif
index 7ea14a44b9cb99cbfcc2a362dbe479618bcad743..d10498ad6b6515782ca0f6a056c389171d0b921b 100644 (file)
@@ -1,7 +1 @@
-if ENABLE_PYTHON_BINDINGS
-
-TESTS = test_ctf_plugin
-
-endif
-
 dist_check_SCRIPTS = test_query_trace_info.py
This page took 0.024956 seconds and 4 git commands to generate.