aboutsummaryrefslogtreecommitdiff
path: root/tests/ubi-tests/Makemodule.am
blob: 805aeaf72592aa169121b47861af6ac490f83db5 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
io_basic_SOURCES = tests/ubi-tests/io_basic.c tests/ubi-tests/helpers.c
io_basic_LDADD = libubi.a
io_basic_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/ubi-utils/include

io_update_SOURCES = tests/ubi-tests/io_update.c tests/ubi-tests/helpers.c
io_update_LDADD = libubi.a
io_update_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/ubi-utils/include

io_paral_SOURCES = tests/ubi-tests/io_paral.c tests/ubi-tests/helpers.c
io_paral_LDADD = libubi.a $(PTHREAD_LIBS)
io_paral_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/ubi-utils/include

io_paral_LDADD += $(PTHREAD_CFLAGS)
io_paral_CPPFLAGS += $(PTHREAD_CFLAGS)

io_read_SOURCES = tests/ubi-tests/io_read.c tests/ubi-tests/helpers.c
io_read_LDADD = libubi.a
io_read_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/ubi-utils/include

volrefcnt_SOURCES = tests/ubi-tests/volrefcnt.c tests/ubi-tests/helpers.c
volrefcnt_LDADD = libubi.a
volrefcnt_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/ubi-utils/include

integ_SOURCES = tests/ubi-tests/integ.c tests/ubi-tests/helpers.c
integ_LDADD = libubi.a
integ_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/ubi-utils/include

mkvol_basic_SOURCES = tests/ubi-tests/mkvol_basic.c tests/ubi-tests/helpers.c
mkvol_basic_LDADD = libubi.a
mkvol_basic_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/ubi-utils/include

mkvol_bad_SOURCES = tests/ubi-tests/mkvol_bad.c tests/ubi-tests/helpers.c
mkvol_bad_LDADD = libubi.a
mkvol_bad_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/ubi-utils/include

mkvol_paral_SOURCES = tests/ubi-tests/mkvol_paral.c tests/ubi-tests/helpers.c
mkvol_paral_LDADD = libubi.a $(PTHREAD_LIBS)
mkvol_paral_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/ubi-utils/include

mkvol_paral_LDADD += $(PTHREAD_CFLAGS)
mkvol_paral_CPPFLAGS += $(PTHREAD_CFLAGS)

rsvol_SOURCES = tests/ubi-tests/rsvol.c tests/ubi-tests/helpers.c
rsvol_LDADD = libubi.a
rsvol_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/ubi-utils/include

UBITEST_BINS = \
	io_basic io_update io_paral io_read volrefcnt integ \
	mkvol_basic mkvol_bad mkvol_paral rsvol

UBITEST_SH = \
	tests/ubi-tests/runubitests.sh tests/ubi-tests/ubi-stress-test.sh

UBITEST_HEADER = \
	tests/ubi-tests/helpers.h

UBITEST_EXTRA = \
	tests/ubi-tests/README.udev

EXTRA_DIST += $(UBITEST_EXTRA) $(UBITEST_HEADER)

if INSTALL_TESTS
pkglibexec_SCRIPTS += $(UBITEST_SH)
pkglibexec_PROGRAMS += $(UBITEST_BINS)
else
noinst_SCRIPTS += $(UBITEST_SH)
noinst_PROGRAMS += $(UBITEST_BINS)
endif