xref: /lighttpd1.4/tests/SConscript (revision b8df99f3)
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-fastcgi.t \
27      mod-redirect.t \
28      mod-userdir.t \
29      mod-rewrite.t \
30      request.t \
31      mod-ssi.t \
32      LightyTest.pm \
33      mod-setenv.t')
34
35t  = env.Command('foo1', 'prepare.sh', '(cd ./tests/; ./prepare.sh; cd ..)')
36t += env.Command('foo2', 'run-tests.pl', '( cd ./tests/; SHELL=/bin/sh ./run-tests.pl; cd ..)')
37t += env.Command('foo3', 'cleanup.sh', '(cd ./tests/; ./cleanup.sh; cd ..)')
38
39if env['LIBFCGI']:
40	fcgis = []
41	fcgis += env.Program("fcgi-auth", "fcgi-auth.c", LIBS=env['LIBFCGI'])
42	fcgis += env.Program("fcgi-responder", "fcgi-responder.c", LIBS=env['LIBFCGI'])
43	env.Depends(t, fcgis)
44
45env.Alias('check', t )
46