From: David Oberhollenzer Date: Tue, 5 Dec 2017 12:20:54 +0000 (+0100) Subject: Run unit test programs through "make check" X-Git-Tag: v2.0.2~14 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=6766178412934e29db12ff5e6663604c6e909c6e;p=mtd-utils.git Run unit test programs through "make check" Signed-off-by: David Oberhollenzer --- diff --git a/.gitignore b/.gitignore index 38bd04d..a384359 100644 --- a/.gitignore +++ b/.gitignore @@ -127,6 +127,9 @@ tests/ubi-tests/ubi-stress-test.sh /include/config.h /include/config.h.in /include/stamp-h1 +test-driver +*.log +*.trs # # Top-level generic files diff --git a/Makefile.am b/Makefile.am index e9c1608..5a6e77c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -12,6 +12,7 @@ endif sbin_PROGRAMS = sbin_SCRIPTS = +check_PROGRAMS = noinst_LIBRARIES = noinst_PROGRAMS = noinst_SCRIPTS = @@ -20,6 +21,7 @@ pkglibexec_SCRIPTS = dist_man1_MANS = dist_man8_MANS = +TESTS = EXTRA_DIST = GLOBAL_HEADER = \ diff --git a/tests/unittests/Makemodule.am b/tests/unittests/Makemodule.am index 7c8c016..0ecdaa9 100644 --- a/tests/unittests/Makemodule.am +++ b/tests/unittests/Makemodule.am @@ -20,4 +20,5 @@ UNITTEST_EXTRA = \ EXTRA_DIST += $(UNITTEST_HEADER) $(UNITTEST_EXTRA) -noinst_PROGRAMS += $(TEST_BINS) +TESTS += $(TEST_BINS) +check_PROGRAMS += $(TEST_BINS)