mirror of
https://github.com/brl/mutter.git
synced 2024-12-26 12:52:14 +00:00
fcaca87fd4
This makes the test launcher script pass on the exit code from the conformance test as its own exit status. This makes using a particular test with git bisect run easier. https://bugzilla.gnome.org/show_bug.cgi?id=665190 Reviewed-by: Robert Bragg <robert@linux.intel.com>
29 lines
716 B
Bash
Executable File
29 lines
716 B
Bash
Executable File
#!/bin/sh
|
|
|
|
UNIT_TEST_PATH=$1
|
|
shift
|
|
|
|
test -z ${UNIT_TEST_PATH} && {
|
|
echo "Usage: $0 /path/to/unit_test"
|
|
exit 1
|
|
}
|
|
|
|
UNIT_TEST=`basename ${UNIT_TEST_PATH}`
|
|
|
|
echo "Running: ./test-conformance -p ${UNIT_TEST_PATH} $@"
|
|
echo ""
|
|
@abs_builddir@/test-conformance -p ${UNIT_TEST_PATH} "$@"
|
|
exit_val=$?
|
|
|
|
echo ""
|
|
echo "NOTE: For debugging purposes, you can run this single test as follows:"
|
|
echo "$ libtool --mode=execute \\"
|
|
echo " gdb --eval-command=\"b ${UNIT_TEST}\" \\"
|
|
echo " --args ./test-conformance -p ${UNIT_TEST_PATH}"
|
|
echo "or:"
|
|
echo "$ env G_SLICE=always-malloc \\"
|
|
echo " libtool --mode=execute \\"
|
|
echo " valgrind ./test-conformance -p ${UNIT_TEST_PATH}"
|
|
|
|
exit $exit_val
|