mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-10 21:10:06 -04:00
Make check-dumpevents work with out-of-tree builds
This commit is contained in:
parent
f7b8200ca7
commit
55e8dc1ba2
@ -27,12 +27,17 @@ then
|
||||
fi
|
||||
|
||||
TEST_DIR=.
|
||||
TEST_SRC_DIR=.
|
||||
|
||||
T=`echo "$0" | sed -e 's/test.sh$//'`
|
||||
if test -x "$T/test-init"
|
||||
then
|
||||
TEST_DIR="$T"
|
||||
fi
|
||||
if test -e "$T/check-dumpevents.py"
|
||||
then
|
||||
TEST_SRC_DIR="$T"
|
||||
fi
|
||||
|
||||
setup () {
|
||||
EVENT_NOKQUEUE=yes; export EVENT_NOKQUEUE
|
||||
@ -107,7 +112,7 @@ run_tests () {
|
||||
fi
|
||||
announce_n " test-dumpevents: "
|
||||
if python -c 'import sys; assert(sys.version_info >= (2, 4))' 2>/dev/null; then
|
||||
if $TEST_DIR/test-dumpevents | python $TEST_DIR/check-dumpevents.py >> "$TEST_OUTPUT_FILE" ;
|
||||
if $TEST_DIR/test-dumpevents | python $TEST_SRC_DIR/check-dumpevents.py >> "$TEST_OUTPUT_FILE" ;
|
||||
then
|
||||
announce OKAY ;
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user