diff options
author | Stefan Bühler <stbuehler@web.de> | 2017-10-21 16:00:10 +0200 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2017-10-28 22:54:45 -0400 |
commit | 16c4530e614b6edbfb840e0aae320908079e38f7 (patch) | |
tree | fd3cdea4e3642115322a343008d1a78a4654cfaa /tests | |
parent | 02ad06b080148478f5748131849f5ee1273bfb88 (diff) | |
download | lighttpd-git-16c4530e614b6edbfb840e0aae320908079e38f7.tar.gz |
[meson] new build system
Needed to extend lemon to take an output path parameter.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile.am | 1 | ||||
-rw-r--r-- | tests/meson.build | 57 |
2 files changed, 58 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index 671be745..37f0d0b0 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -70,6 +70,7 @@ EXTRA_DIST=\ $(CONFS) \ $(TESTS) \ CMakeLists.txt \ + meson.build \ lighttpd.conf \ lighttpd.htpasswd \ lighttpd.user \ diff --git a/tests/meson.build b/tests/meson.build new file mode 100644 index 00000000..0ac68a68 --- /dev/null +++ b/tests/meson.build @@ -0,0 +1,57 @@ +if conf_data.get('HAVE_FASTCGI_H') or conf_data.get('HAVE_FASTCGI_FASTCGI_H') + libfcgi = compiler.find_library('fcgi', required: false) + if libfcgi.found() + executable('fcgi-auth', + sources: 'fcgi-auth.c', + dependencies: common_flags + [ libfcgi ], + ) + executable('fcgi-responder', + sources: 'fcgi-responder.c', + dependencies: common_flags + [ libfcgi ], + ) + endif +endif + +executable('scgi-responder', + sources: 'scgi-responder.c', + dependencies: common_flags, +) + +env = environment() +env.set('srcdir', meson.current_source_dir()) +env.set('top_builddir', meson.build_root()) + +tests = [ + 'cachable.t', + 'core-404-handler.t', + 'core-condition.t', + 'core-keepalive.t', + 'core-request.t', + 'core-response.t', + 'core-var-include.t', + 'core.t', + 'lowercase.t', + 'mod-access.t', + 'mod-auth.t', + 'mod-cgi.t', + 'mod-compress.t', + 'mod-extforward.t', + 'mod-fastcgi.t', + 'mod-proxy.t', + 'mod-redirect.t', + 'mod-rewrite.t', + 'mod-secdownload.t', + 'mod-setenv.t', + 'mod-simplevhost.t', + 'mod-ssi.t', + 'mod-userdir.t', + 'request.t', + 'symlink.t', +] + +# just hope it will run the tests in the given order +test('prepare', find_program('./prepare.sh'), env: env, is_parallel: false) +foreach t: tests + test(t, find_program('./' + t), env: env, is_parallel: false) +endforeach +test('cleanup', find_program('./cleanup.sh'), env: env, is_parallel: false) |