From 043b3f98332fd4c026056d2237b3431527f2ca17 Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Tue, 10 Jan 2012 11:34:12 -0200 Subject: [PATCH] build-sys: build tests as part of check phase Do not unconditionally compile tests, make them as target of 'make check'. Only those listed in TESTS var are run. --- Makefile.am | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/Makefile.am b/Makefile.am index 1e061a9a..99902cb1 100644 --- a/Makefile.am +++ b/Makefile.am @@ -114,17 +114,18 @@ ${noinst_SCRIPTS}: tools/kmod $(LN_S) $(notdir $<) $@) endif -check_PROGRAMS = test/test-init test/test-loaded +check_PROGRAMS = test/test-init test/test-loaded \ + test/test-insmod test/test-rmmod test/test-rmmod2 \ + test/test-lookup test/test-path-from-name \ + test/test-get-dependencies test/test-mod-double-ref \ + test/test-blacklist test/test-elf test/test-probe \ + test/test-invalidate-config + +TESTS = test/test-init test/test-loaded + test_test_init_LDADD = libkmod/libkmod.la test_test_loaded_LDADD = libkmod/libkmod.la -noinst_PROGRAMS = test/test-insmod test/test-rmmod test/test-rmmod2 \ - test/test-lookup test/test-path-from-name \ - test/test-get-dependencies test/test-mod-double-ref \ - test/test-blacklist test/test-elf test/test-probe \ - test/test-invalidate-config \ - $(check_PROGRAMS) - test_test_rmmod_LDADD = libkmod/libkmod.la test_test_rmmod2_LDADD = libkmod/libkmod.la test_test_insmod_LDADD = libkmod/libkmod.la -- 2.47.2