Tests: Check that dynamic module is not built when build is not dynamic
parent
3c70b9f5c8
commit
8d47b33509
|
@ -2,10 +2,16 @@
|
||||||
readonly nginx_path="${PREFIX}/sbin/nginx"
|
readonly nginx_path="${PREFIX}/sbin/nginx"
|
||||||
readonly so_path="${PREFIX}/modules/ngx_http_fancyindex_module.so"
|
readonly so_path="${PREFIX}/modules/ngx_http_fancyindex_module.so"
|
||||||
|
|
||||||
[[ -x ${nginx_path} ]] \
|
if [[ ! -x ${nginx_path} ]] ; then
|
||||||
|| fail "executable binary not found at '%s'\n" "${nginx_path}"
|
fail "executable binary not found at '%s'\n" "${nginx_path}"
|
||||||
|
fi
|
||||||
|
|
||||||
if ${DYNAMIC} ; then
|
if ${DYNAMIC} ; then
|
||||||
[[ -r ${so_path} ]] \
|
if [[ ! -r ${so_path} ]] ; then
|
||||||
|| fail "module not found at '%s'\n" "${so_path}"
|
fail "module not found at '%s'\n" "${so_path}"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
if [[ -r ${so_path} ]] ; then
|
||||||
|
fail "module should not exist at '%s'\n" "${so_path}"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue