From: Lucas De Marchi Date: Tue, 10 Jan 2012 13:34:12 +0000 (-0200) Subject: build-sys: build tests as part of check phase X-Git-Tag: v4~59 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=043b3f98332fd4c026056d2237b3431527f2ca17;p=thirdparty%2Fkmod.git 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. --- 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