| 14 |
echo "Testing pcregrep" |
echo "Testing pcregrep" |
| 15 |
$pcregrep -V |
$pcregrep -V |
| 16 |
|
|
|
cf="diff -ub" |
|
| 17 |
valgrind= |
valgrind= |
|
|
|
| 18 |
while [ $# -gt 0 ] ; do |
while [ $# -gt 0 ] ; do |
| 19 |
case $1 in |
case $1 in |
| 20 |
valgrind) valgrind="valgrind -q --leak-check=no";; |
valgrind) valgrind="valgrind -q --leak-check=no";; |
| 23 |
shift |
shift |
| 24 |
done |
done |
| 25 |
|
|
| 26 |
|
cf="diff -ub" |
| 27 |
|
|
| 28 |
|
# Set up a suitable "diff" command for comparison. Some systems have a diff |
| 29 |
|
# that lacks a -u option. Try to deal with this; better do the test for the -b |
| 30 |
|
# option as well. |
| 31 |
|
|
| 32 |
|
if diff -u /dev/null /dev/null; then |
| 33 |
|
if diff -ub /dev/null /dev/null; then cf="diff -ub"; else cf="diff -u"; fi |
| 34 |
|
else |
| 35 |
|
if diff -b /dev/null /dev/null; then cf="diff -b"; else cf="diff"; fi |
| 36 |
|
fi |
| 37 |
|
|
| 38 |
# If PCRE has been built in a directory other than the source directory, and |
# If PCRE has been built in a directory other than the source directory, and |
| 39 |
# this test is being run from "make check" as usual, then $(srcdir) will be |
# this test is being run from "make check" as usual, then $(srcdir) will be |
| 40 |
# set. If not, set it to the current directory. We then arrange to run the |
# set. If not, set it to the current directory. We then arrange to run the |