[autobuild] allow sendfile() in cross-compile (fixes #2836)
[lighttpd.git] / tests / meson.build
blob0ac68a682e6d974d5fc219b931d8e1dd4871fb87
1 if conf_data.get('HAVE_FASTCGI_H') or conf_data.get('HAVE_FASTCGI_FASTCGI_H')
2         libfcgi = compiler.find_library('fcgi', required: false)
3         if libfcgi.found()
4                 executable('fcgi-auth',
5                         sources: 'fcgi-auth.c',
6                         dependencies: common_flags + [ libfcgi ],
7                 )
8                 executable('fcgi-responder',
9                         sources: 'fcgi-responder.c',
10                         dependencies: common_flags + [ libfcgi ],
11                 )
12         endif
13 endif
15 executable('scgi-responder',
16         sources: 'scgi-responder.c',
17         dependencies: common_flags,
20 env = environment()
21 env.set('srcdir', meson.current_source_dir())
22 env.set('top_builddir', meson.build_root())
24 tests = [
25         'cachable.t',
26         'core-404-handler.t',
27         'core-condition.t',
28         'core-keepalive.t',
29         'core-request.t',
30         'core-response.t',
31         'core-var-include.t',
32         'core.t',
33         'lowercase.t',
34         'mod-access.t',
35         'mod-auth.t',
36         'mod-cgi.t',
37         'mod-compress.t',
38         'mod-extforward.t',
39         'mod-fastcgi.t',
40         'mod-proxy.t',
41         'mod-redirect.t',
42         'mod-rewrite.t',
43         'mod-secdownload.t',
44         'mod-setenv.t',
45         'mod-simplevhost.t',
46         'mod-ssi.t',
47         'mod-userdir.t',
48         'request.t',
49         'symlink.t',
52 # just hope it will run the tests in the given order
53 test('prepare', find_program('./prepare.sh'), env: env, is_parallel: false)
54 foreach t: tests
55         test(t, find_program('./' + t), env: env, is_parallel: false)
56 endforeach
57 test('cleanup', find_program('./cleanup.sh'), env: env, is_parallel: false)