Check for lua by grepping the output of tshark -v

Grepping config.h doesn't work for out-of-tree builds.

Change-Id: If3f551dffb04dd646f5adece57fac90dc48ff1c9
Reviewed-on: https://code.wireshark.org/review/2389
Reviewed-by: Evan Huus <eapache@gmail.com>
This commit is contained in:
Evan Huus 2014-06-18 10:24:23 -07:00
parent 77e34736c5
commit fca7b3f4f8
1 changed files with 2 additions and 2 deletions

View File

@ -98,8 +98,8 @@ export WIRESHARK_QUIT_AFTER_CAPTURE="True"
CAPTURE_DIR="$TESTS_DIR/captures/"
# Figure out if we were built with lua or not so we can skip the lua tests if we
# don't have it. Is there a better way to do this than grepping config.h?
grep -q "#define HAVE_LUA 1" $SOURCE_DIR/config.h
# don't have it.
$TSHARK -v | grep -q "with Lua"
HAVE_LUA=$?
# Display our environment