2008-12-17 08:59:56 -05:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
UNIT_TEST_PATH=$1
|
2010-05-06 09:53:50 -04:00
|
|
|
shift
|
2008-12-17 08:59:56 -05:00
|
|
|
|
|
|
|
test -z ${UNIT_TEST_PATH} && {
|
|
|
|
echo "Usage: $0 /path/to/unit_test"
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
|
|
|
|
UNIT_TEST=`basename ${UNIT_TEST_PATH}`
|
|
|
|
|
2010-05-06 09:53:50 -04:00
|
|
|
echo "Running: ./test-conformance -p ${UNIT_TEST_PATH} $@"
|
2008-12-17 08:59:56 -05:00
|
|
|
echo ""
|
2010-05-06 09:53:50 -04:00
|
|
|
./test-conformance -p ${UNIT_TEST_PATH} "$@"
|
2008-12-17 08:59:56 -05:00
|
|
|
|
|
|
|
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}"
|