diff options
author | Guy Harris <guy@alum.mit.edu> | 2019-08-18 20:24:18 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2019-08-18 20:24:18 -0700 |
commit | fe372439583a16c648927a1173dfb29998a81879 (patch) | |
tree | 40cb0a230bb4a71e5728d3379b11b936479689d6 /Makefile.in | |
parent | 19e63b148b385f238d94e9b159de06c89cfee02e (diff) | |
download | tcpdump-fe372439583a16c648927a1173dfb29998a81879.tar.gz |
Have the scripts get the tests directory from $0.
That means we don't have to cook up a way to pass $(srcdir) to them - we
run them from $(srcdir), so they can pick it up from there. If you run
them by running tests/TESTrun.sh from the command line, that will also
work; we assume that it's not found from $PATH.
TESTrun.sh and the other scripts run scripts with a path that includes
${testsdir}, so the other scripts are run with a path (they're not
intended to be run from the command line - you're supposed to use
TESTrun.sh, even if you're just running one test).
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in index adbaa03e..a7aa1764 100644 --- a/Makefile.in +++ b/Makefile.in @@ -443,7 +443,7 @@ distclean: rm -rf autom4te.cache tests/DIFF tests/NEW check: tcpdump - export SRCDIR=`cd ${srcdir}; pwd` && $${SRCDIR}/tests/TESTrun.sh + $(srcdir)/tests/TESTrun.sh extags: $(TAGFILES) ctags $(TAGFILES) |