xref: /lighttpd1.4/tests/CMakeLists.txt (revision f2e4e83a)
1check_include_files(fastcgi.h HAVE_FASTCGI_H)
2check_include_files(fastcgi/fastcgi.h HAVE_FASTCGI_FASTCGI_H)
3if(HAVE_FASTCGI_H OR HAVE_FASTCGI_FASTCGI_H)
4	check_library_exists(fcgi FCGI_Accept "" HAVE_FASTCGI)
5	if(HAVE_FASTCGI)
6		add_executable(fcgi-auth fcgi-auth.c)
7		add_executable(fcgi-responder fcgi-responder.c)
8		target_link_libraries(fcgi-auth fcgi)
9		target_link_libraries(fcgi-responder fcgi)
10	endif()
11endif()
12add_executable(scgi-responder scgi-responder.c)
13
14set(T_FILES
15	prepare.sh
16	cachable.t
17	core-404-handler.t
18	core-condition.t
19	core-keepalive.t
20	core-request.t
21	core-response.t
22	core-var-include.t
23	lowercase.t
24	mod-auth.t
25	mod-cgi.t
26	mod-deflate.t
27	mod-extforward.t
28	mod-fastcgi.t
29	mod-proxy.t
30	mod-secdownload.t
31	mod-setenv.t
32	mod-ssi.t
33	request.t
34	symlink.t
35	cleanup.sh
36)
37
38foreach(it ${T_FILES})
39	add_test(NAME ${it} COMMAND "${lighttpd_SOURCE_DIR}/tests/wrapper.sh"
40		"${lighttpd_SOURCE_DIR}/tests"
41		"${lighttpd_BINARY_DIR}"
42		"${lighttpd_SOURCE_DIR}/tests/${it}")
43endforeach()
44