]> granicus.if.org Git - p11-kit/commitdiff
Run tests correctly in automake
authorAndreas Metzler <ametzler@downhill.at.eu.org>
Fri, 9 Dec 2011 15:57:16 +0000 (16:57 +0100)
committerStef Walter <stefw@collabora.co.uk>
Fri, 9 Dec 2011 15:57:16 +0000 (16:57 +0100)
 * This allows failing tests to stop the build

tests/Makefile.am

index 243b8696249cf4e0cb3f7d84fc7193cd5d0ea85d..6015c1e2aab352dde013fd190e851472fc30b1ea 100644 (file)
@@ -26,10 +26,7 @@ test_init_SOURCES = \
        test-init.c \
        mock-module.c mock-module.h
 
-CHECK_EXECUTABLES = $(CHECK_PROGS:=$(EXEEXT))
-
-check-am:
-       for prog in $(CHECK_EXECUTABLES); do ./$$prog; done
+TESTS = $(CHECK_PROGS:=$(EXEEXT))
 
 EXTRA_DIST = \
        cutest \