/usr/sbin/debian-edu-test-install is in debian-edu-config 1.702.
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 | #!/bin/sh -e
#
# Run the test suite to check if the installation was OK
# Make sure strings and dates have predictable format
LC_ALL=C
basedir=/usr/lib/debian-edu-config/testsuite
cd $basedir
printmsg() {
msg="$1"
if [ "$debian_edu_error_flag_file" ] ; then
echo "$@" >> $debian_edu_error_flag_file
else
echo "$@" 1>&2
fi
}
for file in *; do
TEST=$(basename $file)
start=$(date +%s)
if ! ./$file ; then
printmsg "$0: $TEST failed"
fi
end=$(date +%s)
duration=$(( $end - $start ))
printmsg "info: duration $duration seconds for testsuite/$TEST"
done
|