| 1 |
#! /bin/sh |
#! /bin/sh |
| 2 |
|
|
| 3 |
# Run PCRE tests |
# Run PCRE tests. |
| 4 |
|
|
|
cf="diff -u" |
|
| 5 |
valgrind= |
valgrind= |
|
testdata=testdata |
|
| 6 |
|
|
| 7 |
|
# Set up a suitable "diff" command for comparison. Some systems |
| 8 |
|
# have a diff that lacks a -u option. Try to deal with this. |
| 9 |
|
|
| 10 |
|
if diff -u /dev/null /dev/null; then cf="diff -u"; else cf="diff"; fi |
| 11 |
|
|
| 12 |
|
# Find the test data |
| 13 |
|
|
| 14 |
|
testdata=testdata |
| 15 |
if [ -n "$srcdir" -a -d "$srcdir" ] ; then |
if [ -n "$srcdir" -a -d "$srcdir" ] ; then |
| 16 |
testdata="$srcdir/testdata" |
testdata="$srcdir/testdata" |
| 17 |
fi |
fi |