mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-05 04:41:20 +00:00
e8ac4a79f1
Only print out '.' for each test case, full test output can be re-enabled with VIR_TEST_VERBOSE=1, or VIR_TEST_DEBUG=XXXX Sample output now looks like TEST: statstest ........................................ 40 ................................... 75 OK PASS: statstest TEST: qparamtest ................................ 32 OK PASS: qparamtest TEST: ............ 12 OK
29 lines
504 B
Bash
Executable File
29 lines
504 B
Bash
Executable File
#!/bin/sh
|
|
|
|
test -z "$srcdir" && srcdir=$(pwd)
|
|
|
|
. "$srcdir/test-lib.sh"
|
|
|
|
test_intro $this_test
|
|
|
|
fail=0
|
|
i=0
|
|
data_dir=$abs_srcdir/confdata
|
|
for f in $(cd "$data_dir" && echo *.conf)
|
|
do
|
|
i=`expr $i + 1`
|
|
"$abs_builddir/conftest" "$data_dir/$f" > "$f-actual"
|
|
expected="$data_dir"/`echo "$f" | sed s+\.conf$+\.out+`
|
|
if compare "$expected" "$f-actual"; then
|
|
ret=0
|
|
else
|
|
ret=1
|
|
fail=1
|
|
fi
|
|
test_result $i "$f" $ret
|
|
done
|
|
|
|
test_final $i $fail
|
|
|
|
(exit $fail); exit $fail
|