summaryrefslogtreecommitdiffstats
path: root/libparted/tests/Makefile.am
blob: 1097743744f4887bd7892c96886adb8bd1c5ead0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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)