summaryrefslogtreecommitdiffstats
path: root/libparted/tests/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--libparted/tests/Makefile.am40
1 files changed, 40 insertions, 0 deletions
diff --git a/libparted/tests/Makefile.am b/libparted/tests/Makefile.am
new file mode 100644
index 0000000..1097743
--- /dev/null
+++ b/libparted/tests/Makefile.am
@@ -0,0 +1,40 @@
+# This file is part of GNU Parted
+# Copyright (C) 1999-2001, 2007-2014, 2019-2023 Free Software Foundation, Inc.
+#
+# This file may be modified and/or distributed without restriction.
+
+TESTS = t1000-label.sh t1001-flags.sh t2000-disk.sh t2100-zerolen.sh \
+ t3000-symlink.sh t4000-volser.sh
+EXTRA_DIST = $(TESTS)
+check_PROGRAMS = label disk zerolen symlink volser flags
+AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS)
+
+LDADD = \
+ $(top_builddir)/libparted/libparted.la \
+ $(CHECK_LIBS) \
+ -lpthread
+
+AM_CPPFLAGS = \
+ $(CHECK_CFLAGS) \
+ -I$(top_srcdir)/lib \
+ -I$(top_builddir)/include \
+ -I$(top_srcdir)/include
+
+label_SOURCES = common.h common.c label.c
+disk_SOURCES = common.h common.c disk.c
+zerolen_SOURCES = common.h common.c zerolen.c
+symlink_SOURCES = common.h common.c symlink.c
+volser_SOURCES = common.h common.c volser.c
+flags_SOURCES = common.h common.c flags.c
+
+# Arrange to symlink to tests/init.sh.
+CLEANFILES = init.sh
+.PHONY: prereq
+prereq:
+ $(AM_V_GEN)ln -sf $(abs_top_srcdir)/tests/init.sh .
+$(TEST_LOGS): prereq
+
+TESTS_ENVIRONMENT = \
+ top_srcdir='$(top_srcdir)' \
+ abs_top_srcdir='$(abs_top_srcdir)' \
+ ENABLE_DEVICE_MAPPER=$(ENABLE_DEVICE_MAPPER)