#! /bin/bash cat <<--- This test checks that the built Nginx either has the dynamic awesomeindex module available, or that it's not there (for static builds). -- readonly nginx_path="${PREFIX}/sbin/nginx" readonly so_path="${PREFIX}/modules/ngx_http_awesomeindex_module.so" if [[ ! -x ${nginx_path} ]] ; then fail "executable binary not found at '%s'\n" "${nginx_path}" fi if ${DYNAMIC} ; then if [[ ! -r ${so_path} ]] ; then 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