a40666469d
When building out of tree the generated scripts for the unit tests need to explicitly reference the original src dir to be able to find test-launcher.sh, like this: $(top_srcdir)/tests/conform/test-launcher.sh Also test-launcher.sh now passes -m slow --verbose to gtester. Without -m slow then the wrappers dont work for some of the timeline tests.
25 lines
695 B
Bash
Executable File
25 lines
695 B
Bash
Executable File
#!/bin/sh
|
|
|
|
UNIT_TEST_PATH=$1
|
|
|
|
test -z ${UNIT_TEST_PATH} && {
|
|
echo "Usage: $0 /path/to/unit_test"
|
|
exit 1
|
|
}
|
|
|
|
UNIT_TEST=`basename ${UNIT_TEST_PATH}`
|
|
|
|
echo "Running: gtester -p ${UNIT_TEST_PATH} ./test-conformance"
|
|
echo ""
|
|
gtester -p ${UNIT_TEST_PATH} -m slow --verbose ./test-conformance
|
|
|
|
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}"
|