diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2016-07-13 16:10:28 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2016-11-17 11:36:55 +0100 |
commit | 8a00021b2ab5529640e5acaca30a27cdaca04178 (patch) | |
tree | 0944317c3e431143eedca84429348334a725e716 /tests/checkfs | |
parent | d39ea7019cb204420c53a203ff9ccbb4cab0d4b3 (diff) |
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 <david.oberhollenzer@sigma-star.at>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'tests/checkfs')
-rw-r--r-- | tests/checkfs/Makefile | 5 | ||||
-rw-r--r-- | tests/checkfs/Makemodule.am | 22 |
2 files changed, 22 insertions, 5 deletions
diff --git a/tests/checkfs/Makefile b/tests/checkfs/Makefile deleted file mode 100644 index 14a83d4..0000000 --- a/tests/checkfs/Makefile +++ /dev/null @@ -1,5 +0,0 @@ -TARGETS = checkfs makefiles - -include ../../common.mk - -$(TARGETS): $(addprefix $(BUILDDIR)/, comm.o) diff --git a/tests/checkfs/Makemodule.am b/tests/checkfs/Makemodule.am new file mode 100644 index 0000000..f4e9225 --- /dev/null +++ b/tests/checkfs/Makemodule.am @@ -0,0 +1,22 @@ +checkfs_SOURCES = tests/checkfs/checkfs.c tests/checkfs/comm.c +checkfs_CPPFLAGS = $(AM_CPPFLAGS) + +makefiles_SOURCES = tests/checkfs/makefiles.c tests/checkfs/comm.c +makefiles_CPPFLAGS = $(AM_CPPFLAGS) + +CHECKFS_BINS = \ + makefiles checkfs + +CHECKFS_HEADER = \ + tests/checkfs/common.h + +CHECKFS_EXTRA = \ + tests/checkfs/README + +EXTRA_DIST += $(CHECKFS_EXTRA) $(CHECKFS_HEADER) + +if INSTALL_TESTS +pkglibexec_PROGRAMS += $(CHECKFS_BINS) +else +noinst_PROGRAMS += $(CHECKFS_BINS) +endif |