OSDN Git Service

tests: use more portable fd redirection in TESTS_ENVIRONMENT
[android-x86/external-parted.git] / tests / Makefile.am
1 XFAIL_TESTS = \
2   t3200-type-change.sh
3
4 TEST_EXTENSIONS = .sh
5 SH_LOG_COMPILER = $(SHELL)
6
7 TESTS = \
8   help-version.sh \
9   t0000-basic.sh \
10   t0001-tiny.sh \
11   t0010-script-no-ctrl-chars.sh \
12   t0100-print.sh \
13   t0101-print-empty.sh \
14   t0200-gpt.sh \
15   t0201-gpt.sh \
16   t0202-gpt-pmbr.sh \
17   t0203-gpt-tiny-device-abort.sh \
18   t0205-gpt-list-clobbers-pmbr.sh \
19   t0206-gpt-print-with-corrupt-primary-clobbers-pmbr.sh \
20   t0207-IEC-binary-notation.sh \
21   t0220-gpt-msftres.sh \
22   t0250-gpt.sh \
23   t0280-gpt-corrupt.sh \
24   t0300-dos-on-gpt.sh \
25   t0400-loop-clobber-infloop.sh \
26   t0500-dup-clobber.sh \
27   t1100-busy-label.sh \
28   t1101-busy-partition.sh \
29   t1700-probe-fs.sh \
30   t2200-dos-label-recog.sh \
31   t2300-dos-label-extended-bootcode.sh \
32   t2310-dos-extended-2-sector-min-offset.sh \
33   t2400-dos-hfs-partition-type.sh \
34   t3200-type-change.sh \
35   t3300-palo-prep.sh \
36   t3310-flags.sh \
37   t3400-whole-disk-FAT-partition.sh \
38   t4000-sun-raid-type.sh \
39   t4001-sun-vtoc.sh \
40   t4100-msdos-partition-limits.sh \
41   t4100-dvh-partition-limits.sh \
42   t4100-msdos-starting-sector.sh \
43   t4200-partprobe.sh \
44   t4300-nilfs2-tiny.sh \
45   t5000-tags.sh \
46   t6000-dm.sh \
47   t7000-scripting.sh \
48   t8000-loop.sh \
49   t8001-loop-blkpg.sh \
50   t9010-big-sector.sh \
51   t9020-alignment.sh \
52   t9021-maxima.sh \
53   t9022-one-unit-snap.sh \
54   t9023-value-lt-one.sh \
55   t9030-align-check.sh \
56   t9040-many-partitions.sh \
57   t9041-undetected-in-use-16th-partition.sh \
58   t9050-partition-table-types.sh
59
60 EXTRA_DIST = \
61   $(TESTS) lvm-utils.sh t-local.sh t-lvm.sh \
62   init.cfg init.sh t-lib-helpers.sh
63
64 check_PROGRAMS = print-align print-max dup-clobber
65 LDADD = \
66   $(top_builddir)/libparted/libparted.la
67 AM_CPPFLAGS = \
68   -I$(top_srcdir)/lib \
69   -I$(top_srcdir)/include
70 AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS)
71
72 parted_dir = $(abs_top_builddir)/parted
73 pp_dir = $(abs_top_builddir)/partprobe
74 sep = $(PATH_SEPARATOR)
75
76 # Note that the first lines are statements.  They ensure that environment
77 # variables that can perturb tests are unset or set to expected values.
78 # The rest are envvar settings that propagate build-related Makefile
79 # variables to test scripts.
80 TESTS_ENVIRONMENT =                             \
81   tmp__=$$TMPDIR; test -d "$$tmp__" || tmp__=.; \
82   TMPDIR=$$tmp__; export TMPDIR;                \
83   export                                        \
84   abs_top_builddir='$(abs_top_builddir)'        \
85   abs_top_srcdir='$(abs_top_srcdir)'            \
86   abs_srcdir='$(abs_srcdir)'                    \
87   built_programs=parted                         \
88   srcdir='$(srcdir)'                            \
89   top_srcdir='$(top_srcdir)'                    \
90   AWK='$(AWK)'                                  \
91   CC='$(CC)'                                    \
92   MAKE=$(MAKE)                                  \
93   PACKAGE_BUGREPORT='$(PACKAGE_BUGREPORT)'      \
94   PACKAGE_VERSION=$(PACKAGE_VERSION)            \
95   CONFIG_HEADER='$(abs_top_builddir)/lib/config.h' \
96   ENABLE_DEVICE_MAPPER=$(ENABLE_DEVICE_MAPPER)  \
97   PERL='$(PERL)'                                \
98   PREFERABLY_POSIX_SHELL='$(PREFERABLY_POSIX_SHELL)' \
99   REPLACE_GETCWD=$(REPLACE_GETCWD)              \
100   PATH='$(abs_top_builddir)/parted$(PATH_SEPARATOR)'"$$PATH" \
101   VERSION=$(VERSION)                            \
102   ; 9>&2
103
104 VERBOSE = yes