2008-11-07 19:32:28 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
UNIT_TEST=`basename $0`
|
2008-11-13 14:28:16 +00:00
|
|
|
UNIT_TEST_PATH=`./test-conformance -l -m thorough |grep '^/'|grep "$UNIT_TEST\$"`
|
2008-11-07 19:32:28 +00:00
|
|
|
|
|
|
|
echo "Running: gtester -p $UNIT_TEST_PATH ./test-conformance"
|
|
|
|
echo ""
|
|
|
|
gtester -p $UNIT_TEST_PATH ./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"
|
2008-11-10 18:52:50 +00:00
|
|
|
echo "or:"
|
|
|
|
echo "$ env G_SLICE=always-malloc \\"
|
|
|
|
echo " libtool --mode=execute \\"
|
|
|
|
echo " valgrind ./test-conformance -p $UNIT_TEST_PATH"
|