Add sort step if needed in the test driver
This commit is contained in:
parent
b8e521b49c
commit
07d9313064
@ -4,11 +4,16 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
if [ -n "$OVNI_TEST_VERBOSE" ]; then
|
||||||
|
set -x
|
||||||
|
fi
|
||||||
|
|
||||||
dir=$(readlink -f "${OVNI_CURRENT_DIR}")
|
dir=$(readlink -f "${OVNI_CURRENT_DIR}")
|
||||||
testname="$dir/$1"
|
testname="$dir/$1"
|
||||||
workdir="${testname}.trace"
|
workdir="${testname}.trace"
|
||||||
tracedir="${workdir}/ovni"
|
tracedir="${workdir}/ovni"
|
||||||
emubin="${OVNI_BUILD_DIR}/ovniemu"
|
emubin="${OVNI_BUILD_DIR}/ovniemu"
|
||||||
|
sortbin="${OVNI_BUILD_DIR}/ovnisort"
|
||||||
|
|
||||||
mkdir -p "${workdir}"
|
mkdir -p "${workdir}"
|
||||||
cd "${workdir}"
|
cd "${workdir}"
|
||||||
@ -29,6 +34,10 @@ else
|
|||||||
"$testname"
|
"$testname"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -n "$OVNI_DO_SORT" ]; then
|
||||||
|
"$sortbin" "$tracedir"
|
||||||
|
fi
|
||||||
|
|
||||||
# Then launch the emulator in lint mode
|
# Then launch the emulator in lint mode
|
||||||
"$emubin" -l "$tracedir"
|
"$emubin" -l "$tracedir"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user