1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-25 01:34:11 +03:00
libvirt/tests/virconftest.sh

27 lines
475 B
Bash
Raw Normal View History

2008-04-18 19:28:33 +04:00
#!/bin/sh
. "$(dirname $0)/test-lib.sh"
2008-04-18 19:28:33 +04:00
test_intro $this_test
2008-04-18 19:28:33 +04:00
fail=0
i=0
2008-04-18 19:28:33 +04:00
data_dir=$abs_srcdir/confdata
for f in $(cd "$data_dir" && echo *.conf)
do
i=`expr $i + 1`
"$abs_builddir/test_conf" "$data_dir/$f" > "$f-actual"
2008-04-18 19:28:33 +04:00
expected="$data_dir"/`echo "$f" | sed s+\.conf$+\.out+`
if compare "$expected" "$f-actual"; then
ret=0
else
ret=1
2008-04-18 19:28:33 +04:00
fail=1
fi
test_result $i "$f" $ret
done
2008-04-18 19:28:33 +04:00
test_final $i $fail
2008-04-18 19:28:33 +04:00
(exit $fail); exit $fail