You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.1 KiB
Meson
41 lines
1.1 KiB
Meson
compiler = meson.get_compiler('c')
|
|
socket_libs = []
|
|
if target_machine.system() == 'windows'
|
|
socket_libs = [ compiler.find_library('ws2_32') ]
|
|
endif
|
|
if target_machine.system() == 'sunos'
|
|
socket_libs = [ compiler.find_library('socket')
|
|
, compiler.find_library('nsl')
|
|
]
|
|
elif target_machine.system() == 'haiku'
|
|
socket_libs = [ compiler.find_library('network') ]
|
|
endif
|
|
|
|
executable('fcgi-responder',
|
|
sources: 'fcgi-responder.c',
|
|
dependencies: [ common_flags, socket_libs ]
|
|
)
|
|
|
|
executable('scgi-responder',
|
|
sources: 'scgi-responder.c',
|
|
dependencies: [ common_flags, socket_libs ]
|
|
)
|
|
|
|
env = environment()
|
|
env.set('srcdir', meson.current_source_dir())
|
|
env.set('top_builddir', meson.build_root())
|
|
|
|
tests = [
|
|
'request.t',
|
|
'core-condition.t',
|
|
'mod-fastcgi.t',
|
|
'mod-scgi.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)
|