[rt46602] Tidy up run management

Miscellaneous tidying up of run management.  The most significant
change is that "runall.sh" now runs _all_ the tests, even the
ones that can run in parallel.  runsequential.sh is the script
to run tests that have not been converted to parallel running.
This commit is contained in:
Stephen Morris
2017-11-23 10:02:15 +00:00
parent e0ff77f9d3
commit 32fe6f7682
7 changed files with 91 additions and 45 deletions

View File

@@ -0,0 +1,38 @@
#!/bin/sh
#
# Copyright (C) 2000, 2001, 2004, 2007, 2010-2012, 2014-2016 Internet Systems Consortium, Inc. ("ISC")
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
# Searches the system test output file (systests.output) and prints a summary
# of tests passed, failed, not run. It also checks whether the IP addresses
# 10.53.0.[1-8] were set up and, if not, prints a warning.
#
# Usage:
# testsummary.sh
#
# Status return:
# 0 - no tests failed
# 1 - one or more tests failed
SYSTEMTESTTOP=.
. $SYSTEMTESTTOP/conf.sh
$PERL testsock.pl || {
cat <<EOF >&2
I:
I:NOTE: System tests were skipped because they require that the
I: IP addresses 10.53.0.1 through 10.53.0.8 be configured
I: as alias addresses on the loopback interface. Please run
I: "bin/tests/system/ifconfig.sh up" as root to configure them.
EOF
}
status=0
echo "I:System test result summary:"
grep '^R:' systests.output | cut -d':' -f3 | sort | uniq -c | sed -e 's/^/I:/'
grep '^R:[^:]*:FAIL' systests.output > /dev/null && status=1
exit $status