Check two test requirements for inetd.

This commit is contained in:
Mats Erik Andersson
2015-05-02 00:41:07 +02:00
parent 055ea0a73f
commit d7a15cef57
2 changed files with 30 additions and 0 deletions

View File

@@ -1,3 +1,9 @@
2015-05-02 Mats Erik Andersson <gnu@gisladisker.se>
* tests/inetd.sh (PASSWD, PWDDB, PROTOCOLS): New variables.
Check for system files required by `inetd'. Skip test when
not found, which can happen in incomplete chroots.
2015-04-17 Mats Erik Andersson <gnu@gisladisker.se>
* ftpd/conf.c, ftpd/ftpd.c, ifconfig/system/bsd.c,

View File

@@ -37,6 +37,30 @@ USER=${USER:-`func_id_user`}
#
$need_mktemp || exit_no_mktemp
PASSWD=/etc/passwd
PWDDB=/etc/pwd.db
PROTOCOLS=/etc/protocols
# Keep the following two tests separate for better diagnosis!
#
if test ! -r $PROTOCOLS; then
cat <<-EOT >&2
This test requires the availability of "$PROTOCOLS",
a file which can not be found in the current system.
Therefore skipping this test.
EOT
exit 77
fi
if test ! -r $PASSWD && test ! -r $PWDDB; then
cat <<-EOT >&2
This test requires availability of either "$PASSWD"
or "$PWDDB". The requirement can not be met in the
current system. Therefore skipping this test.
EOT
exit 77
fi
# Execution control. Initialise early!
#
do_cleandir=false