summaryrefslogtreecommitdiff
path: root/modules/posix_spawnp-tests
blob: 4ac569e31858cd1e6424bd148474f26aa64a32fd (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
Files:
tests/test-posix_spawn-dup2-stdout.c
tests/test-posix_spawn-dup2-stdout.in.sh
tests/test-posix_spawn-dup2-stdin.c
tests/test-posix_spawn-dup2-stdin.in.sh
tests/test-posix_spawnp-script.c
tests/executable-script
tests/executable-script.sh
tests/executable-shell-script
tests/signature.h

Depends-on:
posix_spawn_file_actions_init
posix_spawn_file_actions_adddup2
posix_spawn_file_actions_addclose
posix_spawn_file_actions_addopen
posix_spawn_file_actions_destroy
posix_spawnattr_init
posix_spawnattr_setsigmask
posix_spawnattr_setflags
posix_spawnattr_destroy
stdbool
unistd
sys_wait
dup
environ
sh-filename
sigprocmask
waitpid

configure.ac:

Makefile.am:
TESTS += \
  test-posix_spawn-dup2-stdout \
  test-posix_spawn-dup2-stdin \
  test-posix_spawnp-script
check_PROGRAMS += \
  test-posix_spawn-dup2-stdout \
  test-posix_spawn-dup2-stdin \
  test-posix_spawnp-script

BUILT_SOURCES += test-posix_spawn-dup2-stdout.sh
test-posix_spawn-dup2-stdout.sh: test-posix_spawn-dup2-stdout.in.sh
	$(AM_V_GEN)cp $(srcdir)/test-posix_spawn-dup2-stdout.in.sh $@-t
	$(AM_V_at)mv $@-t $@
MOSTLYCLEANFILES += test-posix_spawn-dup2-stdout.sh test-posix_spawn-dup2-stdout.sh-t

BUILT_SOURCES += test-posix_spawn-dup2-stdin.sh
test-posix_spawn-dup2-stdin.sh: test-posix_spawn-dup2-stdin.in.sh
	$(AM_V_GEN)cp $(srcdir)/test-posix_spawn-dup2-stdin.in.sh $@-t
	$(AM_V_at)mv $@-t $@
MOSTLYCLEANFILES += test-posix_spawn-dup2-stdin.sh test-posix_spawn-dup2-stdin.sh-t

test_posix_spawnp_script_CPPFLAGS = $(AM_CPPFLAGS) -DSRCDIR=\"$(srcdir)/\"