]> git.ipfire.org Git - thirdparty/util-linux.git/blob - lib/Makemodule.am
build-sys: define per-test -DTEST_PROGRAM in lib/
[thirdparty/util-linux.git] / lib / Makemodule.am
1
2 noinst_PROGRAMS += \
3 test_at \
4 test_blkdev \
5 test_canonicalize \
6 test_fileutils \
7 test_ismounted \
8 test_mangle \
9 test_pager \
10 test_procutils \
11 test_randutils \
12 test_strutils \
13 test_tt \
14 test_wholedisk
15
16 if LINUX
17 if HAVE_CPU_SET_T
18 noinst_PROGRAMS += test_cpuset
19 endif
20 noinst_PROGRAMS += \
21 test_sysfs \
22 test_loopdev
23 endif
24
25 test_blkdev_SOURCES = lib/blkdev.c
26 test_blkdev_CFLAGS = -DTEST_PROGRAM
27
28 test_ismounted_SOURCES = lib/ismounted.c
29 test_ismounted_CFLAGS = -DTEST_PROGRAM
30
31 test_wholedisk_SOURCES = lib/wholedisk.c
32 test_wholedisk_CFLAGS = -DTEST_PROGRAM
33
34 test_mangle_SOURCES = lib/mangle.c
35 test_mangle_CFLAGS = -DTEST_PROGRAM
36
37 test_at_SOURCES = lib/at.c
38 test_at_CFLAGS = -DTEST_PROGRAM_AT
39
40 test_strutils_SOURCES = lib/strutils.c
41 test_strutils_CFLAGS = -DTEST_PROGRAM
42
43 test_randutils_SOURCES = lib/randutils.c
44 test_randutils_CFLAGS = -DTEST_PROGRAM
45
46 test_procutils_SOURCES = lib/procutils.c
47 test_procutils_CFLAGS = -DTEST_PROGRAM
48
49 if LINUX
50 test_cpuset_SOURCES = lib/cpuset.c
51 test_cpuset_CFLAGS = -DTEST_PROGRAM
52
53 test_sysfs_SOURCES = lib/sysfs.c lib/at.c
54 test_sysfs_CFLAGS = -DTEST_PROGRAM_SYSFS
55
56 test_pager_SOURCES = lib/pager.c
57 test_pager_CFLAGS = -DTEST_PROGRAM
58
59 test_loopdev_SOURCES = \
60 $(test_sysfs_SOURCES) \
61 lib/loopdev.c \
62 lib/canonicalize.c \
63 lib/linux_version.c
64
65 test_loopdev_CFLAGS = -DTEST_PROGRAM_LOOPDEV
66 endif
67
68 test_fileutils_SOURCES = lib/fileutils.c
69 test_fileutils_CFLAGS = -DTEST_PROGRAM
70
71 test_tt_SOURCES = \
72 lib/tt.c \
73 lib/mbsalign.c
74 test_tt_CFLAGS = -DTEST_PROGRAM
75
76 test_canonicalize_SOURCES = lib/canonicalize.c
77 test_canonicalize_CFLAGS = -DTEST_PROGRAM_CANONICALIZE
78
79 if LINUX
80 test_blkdev_SOURCES += lib/linux_version.c
81 endif