This file is indexed.

/usr/lib/debian-edu-config/testsuite/cups is in debian-edu-config 1.818+deb8u2.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/sh -e
#
# Test if the CUPS server is working.

. /usr/share/debian-edu-config/testsuite-lib.sh

if test -r /etc/debian-edu/config ; then
    . /etc/debian-edu/config
fi

if [ -f /etc/cups/cupsd.conf ] ; then
    :
else
    echo "error: $0: /etc/cups/cupsd.conf is missing.  Is cupsys installed?"
    exit 1
fi

if pidof cups-browsed > /dev/null ; then
    echo "success: $0: cups-browsed is running."
else
    echo "error: $0: cups-browsed is not running."
    exit 1
fi

netstat_check ipp tcp "cupsd" || exit 1

# * Ignore SSL certificate checking as the name do not match the server
#   name
# * Wait for 10 seconds
WGETOPTS="--no-check-certificate --timeout=10"

unset http_proxy || true
unset ftp_proxy  || true

# Since Jessie, Expect CUPS to only listed on port 631 on localhost.
for url in "http://localhost:631/" "https://localhost:631/" ; do
    if wget -O - $WGETOPTS $url > /dev/null 2>&1 ; then
	echo "success: $0: URL '$url' is working."
    else
	echo "error: $0: URL '$url' is not working."
    fi
done

exit 0