mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00

With the exception of the documentation fixes, these should all be invisible to users. Signed-off-by: Steve Beattie <steve.beattie@canonical.com> Acked-by: Christian Boltz <apparmor@cboltz.de> MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/687
24 lines
884 B
Text
24 lines
884 B
Text
# Runs all tests with the extension "multi" for several times.
|
|
# Each test program <programname>.multi has its own subdirectory
|
|
# <programmname> in which several testcases are defined for this program
|
|
# Each testcase has 3 files:
|
|
#
|
|
# <programname>.in
|
|
# <programname>.out
|
|
# <programname>.err
|
|
#
|
|
# The program "<programname>.multi" will be called with the argument
|
|
# "<programname>.in". The standard output will be compared with the
|
|
# files "<programname>.out" and "<programname>.err".
|
|
# The testcase is successful if the program returns 0 AND the outputs
|
|
# are identically equal to the files "<programname>.out" and
|
|
# "<programname>.err".
|
|
|
|
if { [catch { set filenames [glob $srcdir/*.multi] } ] } {
|
|
puts "No .multi files found"
|
|
} else {
|
|
# foreach file, call multi-run (from testsuite/lib)
|
|
|
|
foreach file $filenames { multi-run $file }
|
|
}
|
|
|