summaryrefslogtreecommitdiff
path: root/test/Makefile.am
blob: 954b93bcfb240cf3fa80f17b96b0a47c135b5ac5 (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
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}


AM_CPPFLAGS = \
	-DVERSION=\"@VERSION@\" \
	-I $(top_srcdir)/src/libudev \
	-I $(top_srcdir)/src/udev

noinst_PROGRAMS = \
	test-libudev \
	test-udev

test_libudev_SOURCES = \
	test-libudev.c

test_libudev_LDADD = \
	$(top_builddir)/src/libudev/libudev-private.la \
	$(top_builddir)/src/udev/libudev-core.la

test_libudev_CPPFLAGS = \
	-I $(top_srcdir)/src/libudev \
	$(AM_CPPFLAGS)

test_udev_SOURCES = \
	test-udev.c

test_udev_LDADD = \
	$(top_builddir)/src/libudev/libudev-private.la \
	$(top_builddir)/src/udev/libudev-core.la \
	$(BLKID_LIBS) \
	$(SELINUX_LIBS)

if HAVE_LIBKMOD
test_udev_LDADD += $(KMOD_LIBS)
endif

test_udev_CPPFLAGS = \
	-I $(top_srcdir)/src/udev \
	$(AM_CPPFLAGS)


TESTS = \
	udev-test.pl \
	rules-test.sh

check_DATA = \
	test/sys

test/sys:
	$(AM_V_at)$(MKDIR_P) $(dir $@)
	$(AM_V_GEN)tar -C $(top_builddir)/test/test -xJf $(top_srcdir)/test/sys.tar.xz

test-sys-distclean:
	-rm -rf $(top_builddir)/test/sys

DISTCLEAN_LOCAL_HOOKS = \
	test-sys-distclean

EXTRA_DIST = \
	sys.tar.xz \
	udev-test.pl \
	rules-test.sh \
	rule-syntax-check.py