From 8a00021b2ab5529640e5acaca30a27cdaca04178 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Wed, 13 Jul 2016 16:10:28 +0200 Subject: Integrate tests into autotools build system Add automake files for the test binaries. If configured to do so, install the test binaries to libexec/mtd-utils and use autoconf to fix the paths in the test scripts. Signed-off-by: David Oberhollenzer Signed-off-by: Richard Weinberger --- Makefile.am | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 27b43da..53c6ec3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,3 +1,5 @@ +ACLOCAL_AMFLAGS = -I m4 + AM_CPPFLAGS = -D_GNU_SOURCE -I$(top_srcdir)/include if WITHOUT_XATTR @@ -12,6 +14,9 @@ sbin_PROGRAMS = sbin_SCRIPTS = noinst_LIBRARIES = noinst_PROGRAMS = +noinst_SCRIPTS = +pkglibexec_PROGRAMS = +pkglibexec_SCRIPTS = dist_man1_MANS = EXTRA_DIST = @@ -32,4 +37,9 @@ include nand-utils/Makemodule.am include nor-utils/Makemodule.am include jffsX-utils/Makemodule.am -SUBDIRS = tests/ubi-tests +if BUILD_TESTS +include tests/ubi-tests/Makemodule.am +include tests/jittertest/Makemodule.am +include tests/checkfs/Makemodule.am +include tests/fs-tests/Makemodule.am +endif -- cgit v1.2.3