summaryrefslogtreecommitdiff
path: root/tests/TESTrun.sh
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2019-08-18 17:11:28 -0700
committerGuy Harris <guy@alum.mit.edu>2019-08-18 17:11:28 -0700
commit5edd532e932d97e6c37ffca90b59f7d3cee1b1e0 (patch)
treeb740c29d6c21b3706586f551d937f37e16f7f938 /tests/TESTrun.sh
parent9b995599d89e9b715c82ee74cd3470aee1713af6 (diff)
downloadtcpdump-5edd532e932d97e6c37ffca90b59f7d3cee1b1e0.tar.gz
Clean up "make check".
No need to make a "tests" directory under the build directory any more, so don't do so. As we're not cd'ing in the command line run from the Makefile (just in a command run for command substitution), there's no need to put it in a parenthesized subshell. Again, as we're not cd'ing to the tests directory, if SRCDIR isn't set, assume the source directory is the current directory. In the shell scripts we're running, look for TESTonce, the input files, the output files, and the -E input files from ${srcdir}/tests. Make sure we set srcdir in those shell scripts.
Diffstat (limited to 'tests/TESTrun.sh')
-rwxr-xr-xtests/TESTrun.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/TESTrun.sh b/tests/TESTrun.sh
index 0b5ee4b2..eb145666 100755
--- a/tests/TESTrun.sh
+++ b/tests/TESTrun.sh
@@ -1,12 +1,12 @@
#!/bin/sh
TZ=GMT0; export TZ
-srcdir=${SRCDIR-..}
+srcdir=${SRCDIR-.}
echo RUNNING from ${srcdir}
# make it absolute
-srcdir=$(cd $srcdir && pwd)
+srcdir=`cd $srcdir; pwd`
# this should be run from the compiled build directory,
# with srcdir= set to wherever the source code is.