- configure will generate testscript now, so that VPATH works
This commit is contained in:
parent
51c22124a3
commit
0982b46a7b
@ -1,5 +1,9 @@
|
||||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
|
||||
top_builddir="."
|
||||
top_srcdir="@srcdir@"
|
||||
top_srcdir=`cd $top_srcdir; pwd` # make top_srcdir an absolute path
|
||||
srcdir="@srcdir@"
|
||||
subdirs=`grep 'SUBDIRS *=' Makefile|sed 's/.*=//'`
|
||||
topdir=`pwd`
|
||||
retval_success=77
|
||||
@ -18,15 +22,19 @@ for dir in $subdirs; do
|
||||
if test "$retval" != $retval_success; then
|
||||
test_status="failed with exit code $retval"
|
||||
else
|
||||
if test -f uselib.out.expected; then
|
||||
reference=$top_srcdir/$dir/uselib.out.expected
|
||||
#echo NOTE: the reference file is $reference
|
||||
if test -f $reference; then
|
||||
cat uselib.out |
|
||||
../filter-test-output |
|
||||
diff -u - uselib.out.expected > uselib.out.diffs 2>/dev/null
|
||||
$top_srcdir/filter-test-output |
|
||||
diff -u $reference - > uselib.out.diffs 2>/dev/null
|
||||
if test $? != 0; then
|
||||
test_status="output mismatch, see $dir/uselib.out.diffs"
|
||||
else
|
||||
rm -f uselib.out.diffs
|
||||
fi
|
||||
else
|
||||
test_status="reference file not found: $reference"
|
||||
fi
|
||||
fi
|
||||
fi
|
Loading…
Reference in New Issue
Block a user