OSDN Git Service

2eba4527a15f23b5c523c6172aace15c8d5ff242
[android-x86/external-parted.git] / tests / Makefile.am
1 TESTS = \
2   t0000-basic.sh \
3   t0010-script-no-ctrl-chars.sh \
4   t0100-print.sh \
5   t0200-gpt.sh \
6   t0201-gpt.sh \
7   t0202-gpt-pmbr.sh \
8   t0220-gpt-msftres.sh \
9   t0250-gpt.sh \
10   t0300-dos-on-gpt.sh \
11   t0400-loop-clobber-infloop.sh \
12   t1000-mkpartfs.sh \
13   t1100-busy-label.sh \
14   t1500-small-ext2.sh \
15   t1700-ext-probe.sh \
16   t2000-mkfs.sh \
17   t2100-mkswap.sh \
18   t2200-dos-label-recog.sh \
19   t2300-dos-label-extended-bootcode.sh \
20   t3000-constraints.sh \
21   t3100-resize-ext2-partion.sh \
22   t4000-sun-raid-type.sh \
23   t4100-msdos-partition-limits.sh \
24   t4100-dvh-partition-limits.sh \
25   t4100-msdos-starting-sector.sh \
26   t4200-partprobe.sh \
27   t5000-tags.sh \
28   t6000-dm.sh \
29   t7000-scripting.sh \
30   t8000-loop.sh
31
32 EXTRA_DIST = \
33   $(TESTS) test-lib.sh lvm-utils.sh
34
35 parted_dir = $(abs_top_builddir)/parted
36 pp_dir = $(abs_top_builddir)/partprobe
37 sep = $(PATH_SEPARATOR)
38
39 CLEANFILES = init.sh
40 all: init.sh
41 init.sh: Makefile.in
42         rm -f $@-t $@
43         echo 'PARTED_USABLE_TEST_DIR="$(PARTED_USABLE_TEST_DIR)"' > $@-t
44         echo 'abs_top_srcdir="$(abs_top_srcdir)"' >> $@-t
45         echo 'PATH="$(parted_dir)$(sep)$(pp_dir)$(sep)$$PATH"' >> $@-t
46         echo 'export PATH' >> $@-t
47         chmod a-w $@-t
48         mv $@-t $@
49
50 TESTS_ENVIRONMENT =                                     \
51   exec 9>&2;                                            \
52   export                                                \
53   srcdir='$(srcdir)'                                    \
54   CONFIG_HEADER='$(abs_top_builddir)/lib/config.h'      \
55   ENABLE_DEVICE_MAPPER=$(ENABLE_DEVICE_MAPPER)          \
56   ; $(SHELL)