[mod_cgi] FreeBSD 9.3/MacOSX does not have pipe2() (fixes #2765)
[lighttpd.git] / tests / CMakeLists.txt
blob5b0330c54bac2f5044da00d4514d8c302636dff7
1 check_include_files(fastcgi.h HAVE_FASTCGI_H)
2 check_include_files(fastcgi/fastcgi.h HAVE_FASTCGI_FASTCGI_H)
3 if(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()
11 endif()
13 set(T_FILES
14         prepare.sh
15         cachable.t
16         core-404-handler.t
17         core-condition.t
18         core-keepalive.t
19         core-request.t
20         core-response.t
21         core.t
22         core-var-include.t
23         lowercase.t
24         mod-access.t
25         mod-auth.t
26         mod-cgi.t
27         mod-compress.t
28         mod-extforward.t
29         mod-fastcgi.t
30         mod-proxy.t
31         mod-redirect.t
32         mod-rewrite.t
33         mod-secdownload.t
34         mod-setenv.t
35         mod-simplevhost.t
36         mod-ssi.t
37         mod-userdir.t
38         request.t
39         symlink.t
40         cleanup.sh
43 foreach(it ${T_FILES})
44         add_test(NAME ${it} COMMAND "${lighttpd_SOURCE_DIR}/tests/wrapper.sh"
45                 "${lighttpd_SOURCE_DIR}/tests"
46                 "${lighttpd_BINARY_DIR}"
47                 "${lighttpd_SOURCE_DIR}/tests/${it}")
48 endforeach()