summaryrefslogtreecommitdiff
path: root/modules/execute-tests
blob: fc0816fd1734f3f3fe63bd6514c56313b96da2ed (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
Files:
tests/test-execute.sh
tests/test-execute-main.c
tests/test-execute-child.c
tests/test-execute-script.c
tests/executable-script
tests/executable-script.sh
tests/executable-shell-script
tests/qemu.h
tests/macros.h

Depends-on:
dup2
fcntl
mkdir
msvc-inval
read-file
stdbool
stdint
unistd

configure.ac:
dnl Test for Linux system call close_range(), declared in <unistd.h>.
gl_CHECK_FUNCS_ANDROID([close_range], [[#include <unistd.h>]])

Makefile.am:
TESTS += test-execute.sh
check_PROGRAMS += test-execute-main test-execute-child
test_execute_main_LDADD = $(LDADD) @LIBINTL@ $(LIBTHREAD)
# The test-execute-child program must be a real executable, not a libtool
# wrapper script, and should link against as few libraries as possible.
# Therefore don't link it against any libraries other than -lc.
test_execute_child_LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
test_execute_child_LDADD =

TESTS += test-execute-script
check_PROGRAMS += test-execute-script
test_execute_script_LDADD = $(LDADD) @LIBINTL@ $(LIBTHREAD)
test_execute_script_CPPFLAGS = $(AM_CPPFLAGS) -DSRCDIR=\"$(srcdir)/\"