tests: put TESTS list in each Makefile.am
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Fri, 5 May 2017 20:45:11 +0000 (16:45 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 28 May 2017 16:57:42 +0000 (12:57 -0400)
So that you can do `make check` in any subdirectory to run only those
tests.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/Makefile.am
tests/bin/Makefile.am
tests/bindings/python/bt2/Makefile.am
tests/lib/Makefile.am
tests/lib/writer/Makefile.am
tests/plugins/Makefile.am

index 0d0c2ebcfafb9240510c02b83bdd742647ef163b..6df77579b81ab23efaf5ecbb964ec8bc3988f94b 100644 (file)
@@ -1,41 +1,5 @@
 SUBDIRS = utils bin lib bindings plugins
 
-LOG_DRIVER_FLAGS='--merge'
-LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) \
-       $(top_srcdir)/config/tap-driver.sh
-
-TESTS = bin/test_trace_read \
-       bin/test_trace_read \
-       bin/test_packet_seq_num \
-       bin/test_convert_args \
-       bin/intersection/test_intersection \
-       lib/test_bitfield \
-       lib/test_seek_empty_packet \
-       lib/test_seek_big_trace \
-       lib/test_ctf_writer_complete \
-       lib/test_bt_values \
-       lib/test_ctf_ir_ref \
-       lib/test_bt_ctf_field_type_validation \
-       lib/test_ir_visit \
-       lib/test_bt_notification_heap \
-       lib/test_plugin_complete \
-       lib/test_graph_topo \
-       lib/test_cc_prio_map \
-       lib/test_bt_notification_iterator \
-       plugins/test-utils-muxer
-
 EXTRA_DIST = $(srcdir)/ctf-traces/** \
             $(srcdir)/debug-info-data/** \
             $(srcdir)/debug-info-data/.build-id/cd/**
-
-if ENABLE_DEBUG_INFO
-TESTS += lib/test_dwarf_complete \
-       lib/test_bin_info_complete
-endif
-
-if USE_PYTHON
-TESTS += bin/intersection/test_multi_trace_intersection.py \
-       lib/writer/test_ctf_writer_no_packet_context.py \
-       lib/writer/test_ctf_writer_empty_packet.py \
-       bindings/python/bt2/testall.sh
-endif
index dc603904243a1e6cef5457f6d0cca36ffb9ca009..97d8eeba4a7f7322d76869e276d0996f2d92203b 100644 (file)
@@ -1,2 +1,15 @@
 SUBDIRS = intersection
 check_SCRIPTS = test_trace_read test_packet_seq_num test_convert_args
+
+LOG_DRIVER_FLAGS='--merge'
+LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) $(top_srcdir)/config/tap-driver.sh
+
+TESTS = test_trace_read \
+       test_trace_read \
+       test_packet_seq_num \
+       test_convert_args \
+       intersection/test_intersection
+
+if USE_PYTHON
+TESTS += intersection/test_multi_trace_intersection.py
+endif
index 78893fd78be4e01c558c37b6484e37e18dece109..e540afc609d8a485b53f1190279bdfa4e9e5b596 100644 (file)
@@ -13,3 +13,10 @@ EXTRA_DIST = \
        test_trace.py \
        test_values.py \
        .coveragerc
+
+LOG_DRIVER_FLAGS='--merge'
+LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) $(top_srcdir)/config/tap-driver.sh
+
+if USE_PYTHON
+TESTS = testall.sh
+endif
index 060ff29d4734a09c868ef325c4e810caf8f4a721..c9219b8a7a7b87e2e9dc5a88814f818bdcc6e891 100644 (file)
@@ -36,7 +36,7 @@ test_cc_prio_map_LDADD = $(COMMON_TEST_LDADD)
 
 test_bt_notification_iterator_LDADD = $(COMMON_TEST_LDADD)
 
-noinst_PROGRAMS = test_bitfield test_ctf_writer test_bt_values \
+check_PROGRAMS = test_bitfield test_ctf_writer test_bt_values \
        test_ctf_ir_ref test_bt_ctf_field_type_validation test_ir_visit \
        test_bt_notification_heap test_plugin test_graph_topo \
        test_cc_prio_map test_bt_notification_iterator
@@ -73,3 +73,29 @@ check_SCRIPTS = test_ctf_writer_complete \
 #noinst_PROGRAMS += test_dwarf test_bin_info
 #check_SCRIPTS += test_dwarf_complete test_bin_info_complete
 #endif
+
+LOG_DRIVER_FLAGS='--merge'
+LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) $(top_srcdir)/config/tap-driver.sh
+
+TESTS = test_bitfield \
+       test_ctf_writer_complete \
+       test_bt_values \
+       test_ctf_ir_ref \
+       test_bt_ctf_field_type_validation \
+       test_ir_visit \
+       test_bt_notification_heap \
+       test_plugin_complete \
+       test_graph_topo \
+       test_cc_prio_map \
+       test_bt_notification_iterator
+
+if ENABLE_DEBUG_INFO
+TESTS += test_dwarf_complete \
+       test_bin_info_complete
+endif
+
+if USE_PYTHON
+TESTS +=
+       writer/test_ctf_writer_no_packet_context.py \
+       writer/test_ctf_writer_empty_packet.py
+endif
index eb64836764c2ae4497fbbe27f1aac32a269c1990..073148796a23f97fd2bd48a0a4687145a433d613 100644 (file)
@@ -1,21 +1,16 @@
-TESTS = test_ctf_writer_no_packet_context.py \
-               test_ctf_writer_empty_packet.py
-
-check_SCRIPTS = $(TESTS)
-
-dist_noinst_SCRIPTS = $(TESTS)
-EXTRA_DIST = $(TESTS)
+check_SCRIPTS = test_ctf_writer_no_packet_context.py \
+       test_ctf_writer_empty_packet.py
 
 all-local:
        @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
-               for script in $(EXTRA_DIST); do \
+               for script in $(check_SCRIPTS); do \
                        cp -f $(srcdir)/$$script $(builddir); \
                done; \
        fi
 
 clean-local:
        @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
-               for script in $(EXTRA_DIST); do \
+               for script in $(check_SCRIPTS); do \
                        rm -f $(builddir)/$$script; \
                done; \
        fi
index 98becefe21492c57e7b4e9d730c4ca0d8e5ddfd2..b2fd059b300634ca29c630aa5b6e84c6a8444c79 100644 (file)
@@ -9,3 +9,8 @@ test_utils_muxer_SOURCES = test-utils-muxer.c
 test_utils_muxer_LDADD = $(COMMON_TEST_LDADD)
 
 check_SCRIPTS = test-utils-muxer-complete
+
+LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) $(top_srcdir)/config/tap-driver.sh
+LOG_DRIVER_FLAGS='--merge'
+
+TESTS = test-utils-muxer
This page took 0.028678 seconds and 4 git commands to generate.