]> ruderich.org/simon Gitweb - coloredstderr/coloredstderr.git/blob - tests/Makefile.am
72e822a876f5633c1d4a6825059d41e3baf5b4d5
[coloredstderr/coloredstderr.git] / tests / Makefile.am
1 # Default since automake 1.13, necessary for older versions.
2 AUTOMAKE_OPTIONS = color-tests parallel-tests
3
4 TESTS = test_environment.sh \
5         test_example.sh \
6         test_exec.sh \
7         test_noforce.sh \
8         test_redirects.sh \
9         test_simple.sh \
10         test_symbols.sh
11 check_PROGRAMS = example example_exec
12 example_SOURCES = example.c
13 example_exec_SOURCES = example_exec.c
14
15 if HAVE_ERR_H
16     TESTS += test_err.sh
17     check_PROGRAMS += example_err
18     example_error_SOURCES = example_err.c
19 endif
20 if HAVE_ERROR_H
21     TESTS += test_error.sh
22     check_PROGRAMS += example_error
23     example_error_SOURCES = example_error.c
24 endif
25 if HAVE_VFORK
26     TESTS += test_vfork.sh
27     check_PROGRAMS += example_vfork
28     example_vfork_SOURCES = example_vfork.c
29 endif
30
31 dist_check_SCRIPTS = $(TESTS) lib.sh
32 dist_check_DATA = example.h \
33                   example.expected \
34                   example_environment.expected \
35                   example_environment_empty.expected \
36                   example_err.expected \
37                   example_error.expected \
38                   example_exec.expected \
39                   example_noforce.sh \
40                   example_noforce.sh.expected \
41                   example_redirects.sh \
42                   example_redirects.sh.expected \
43                   example_simple.sh \
44                   example_simple.sh.expected \
45                   example_vfork.expected
46
47 # Used by lib.sh.
48 export EGREP