mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 07:05:28 +00:00
1cd2078c88
To prevent confusion with configure's popular name for a file, rename conftest.c to test_conf.c which is consistent with the invoking test_conf.sh Signed-off-by: Gene Czarcinski <gene@czarc.net>
29 lines
505 B
Bash
Executable File
29 lines
505 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/test_conf" "$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
|