1Import('env')
2
3tests = Split('prepare.sh \
4        run-tests.pl \
5        cleanup.sh')
6
7extra_dist = Split('fastcgi-10.conf \
8      fastcgi-auth.conf \
9      fastcgi-responder.conf \
10      fastcgi-13.conf \
11      bug-06.conf \
12      bug-12.conf \
13      core-var-include.t \
14      var-include.conf \
15      var-include-sub.conf \
16      condition.conf \
17      core-condition.t \
18      core-request.t \
19      core-response.t \
20      core-keepalive.t \
21      core.t \
22      mod-access.t \
23      mod-auth.t \
24      mod-cgi.t \
25      mod-compress.t \
26      mod-compress.conf \
27      mod-fastcgi.t \
28      mod-redirect.t \
29      mod-userdir.t \
30      mod-rewrite.t \
31      request.t \
32      mod-ssi.t \
33      LightyTest.pm \
34      mod-setenv.t')
35
36t  = env.Command('foo1', 'prepare.sh', '(cd ./tests/; ./prepare.sh; cd ..)')
37t += env.Command('foo2', 'run-tests.pl', '( cd ./tests/; SHELL=/bin/sh ./run-tests.pl; cd ..)')
38t += env.Command('foo3', 'cleanup.sh', '(cd ./tests/; ./cleanup.sh; cd ..)')
39
40if env['LIBFCGI']:
41	fcgis = []
42	fcgis += env.Program("fcgi-auth", "fcgi-auth.c", LIBS=env['LIBFCGI'])
43	fcgis += env.Program("fcgi-responder", "fcgi-responder.c", LIBS=env['LIBFCGI'])
44	env.Depends(t, fcgis)
45
46env.Alias('check', t )
47