aboutsummaryrefslogtreecommitdiff
blob: efebbb4ff6880c75d75f9b1cc28ef0afa6e0f27f (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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
AT_FILES = $(wildcard *.at)
TESTSUITE = $(srcdir)/testsuite
DISTCLEANFILES = atconfig
EXTRA_DIST = atlocal.in package.m4.in $(AT_FILES) $(TESTSUITE) \
	test-skel-0.c \
	tests.h

INCLUDES = -I$(top_srcdir)

check_PROGRAMS = \
	get-group \
	get-user \
	\
	access-0 \
	chmod-0 \
	chown-0 \
	creat-0 \
	creat64-0 \
	faccessat-0 \
	fchmodat-0 \
	fchownat-0 \
	fopen-0 \
	fopen64-0 \
	futimesat-0 \
	lchown-0 \
	link-0 \
	linkat-0 \
	lutimes-0 \
	mkdir-0 \
	mkdirat-0 \
	mkfifo-0 \
	mkfifoat-0 \
	mknod-0 \
	mknodat-0 \
	open-0 \
	open_static-0 \
	open64-0 \
	openat-0 \
	openat_static-0 \
	openat64-0 \
	opendir-0 \
	rename-0 \
	renameat-0 \
	symlink-0 \
	symlinkat-0 \
	truncate-0 \
	truncate64-0 \
	unlink-0 \
	unlinkat-0 \
	utime-0 \
	utimensat-0 \
	utimes-0 \
	vfork-0 \
	\
	getcwd-gnulib_tst \
	libsigsegv_tst \
	sb_printf_tst

dist_check_SCRIPTS = \
	$(wildcard *-?.sh) \
	script-0 \
	trace-0

AM_LDFLAGS = `expr $@ : .*_static- >/dev/null && echo -all-static`

sb_printf_tst_CFLAGS = -I$(top_srcdir)/libsbutil -I$(top_srcdir)/libsbutil/include
sb_printf_tst_LDADD = $(top_builddir)/libsbutil/libsbutil.la

if HAVE_LIBSIGSEGV
libsigsegv_tst_LDADD = -lsigsegv
endif

check-local: atconfig atlocal $(TESTSUITE)
	$(SHELL) '$(TESTSUITE)' $(TESTSUITEFLAGS)

installcheck-local: atconfig atlocal $(TESTSUITE)
	$(SHELL) '$(TESTSUITE)' AUTOTEST_PATH='$(bindir)' $(TESTSUITEFLAGS)

clean-local:
	test ! -f '$(TESTSUITE)' || \
		$(SHELL) '$(TESTSUITE)' --clean

AUTOTEST = $(AUTOM4TE) --language=autotest
$(TESTSUITE): $(AT_FILES)
	$(AUTOTEST) -I '$(srcdir)' -o $@.tmp $@.at
	mv $@.tmp $@