]> git.ipfire.org Git - thirdparty/kmod.git/commitdiff
build-sys: build tests as part of check phase
authorLucas De Marchi <lucas.demarchi@profusion.mobi>
Tue, 10 Jan 2012 13:34:12 +0000 (11:34 -0200)
committerLucas De Marchi <lucas.demarchi@profusion.mobi>
Tue, 10 Jan 2012 17:31:58 +0000 (15:31 -0200)
Do not unconditionally compile tests, make them as target of 'make
check'. Only those listed in TESTS var are run.

Makefile.am

index 1e061a9a75aa7d6654e69557e323f00c453b386f..99902cb189ad3dc226cfcb8936ecddd3f8fc35ed 100644 (file)
@@ -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