verify: new macro 'assume'
[gnulib.git] / modules / posix_spawnp-tests
1 Files:
2 tests/test-posix_spawn1.c
3 tests/test-posix_spawn1.in.sh
4 tests/test-posix_spawn2.c
5 tests/test-posix_spawn2.in.sh
6 tests/signature.h
7
8 Depends-on:
9 posix_spawn_file_actions_init
10 posix_spawn_file_actions_adddup2
11 posix_spawn_file_actions_addclose
12 posix_spawn_file_actions_addopen
13 posix_spawn_file_actions_destroy
14 posix_spawnattr_init
15 posix_spawnattr_setsigmask
16 posix_spawnattr_setflags
17 posix_spawnattr_destroy
18 sigprocmask
19 stdbool
20 unistd
21 sys_wait
22 dup
23
24 configure.ac:
25 AC_EGREP_CPP([notposix], [[
26 #if defined _MSC_VER || defined __MINGW32__
27   notposix
28 #endif
29   ]],
30   [posix_spawn_ported=no],
31   [posix_spawn_ported=yes])
32 AM_CONDITIONAL([POSIX_SPAWN_PORTED], [test $posix_spawn_ported = yes])
33
34 Makefile.am:
35 if POSIX_SPAWN_PORTED
36 TESTS += test-posix_spawn1 test-posix_spawn2
37 check_PROGRAMS += test-posix_spawn1 test-posix_spawn2
38
39 BUILT_SOURCES += test-posix_spawn1.sh
40 test-posix_spawn1.sh: test-posix_spawn1.in.sh
41         $(AM_V_GEN)rm -f $@-t $@ && \
42         cp $(srcdir)/test-posix_spawn1.in.sh $@-t && \
43         mv $@-t $@
44 MOSTLYCLEANFILES += test-posix_spawn1.sh test-posix_spawn1.sh-t
45
46 BUILT_SOURCES += test-posix_spawn2.sh
47 test-posix_spawn2.sh: test-posix_spawn2.in.sh
48         $(AM_V_GEN)rm -f $@-t $@ && \
49         cp $(srcdir)/test-posix_spawn2.in.sh $@-t && \
50         mv $@-t $@
51 MOSTLYCLEANFILES += test-posix_spawn2.sh test-posix_spawn2.sh-t
52 endif