File: 00-build-artifacts.test

package info (click to toggle)
nginx 1.18.0-6.1%2Bdeb11u3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 19,344 kB
  • sloc: ansic: 250,653; perl: 7,548; sh: 1,408; ruby: 879; python: 358; makefile: 338; awk: 36; cpp: 18
file content (22 lines) | stat: -rw-r--r-- 579 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#! /bin/bash
cat <<---
This test checks that the built Nginx either has the dynamic fancyindex
module available, or that it's not there (for static builds).
--

readonly nginx_path="${PREFIX}/sbin/nginx"
readonly so_path="${PREFIX}/modules/ngx_http_fancyindex_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