summaryrefslogtreecommitdiff
path: root/tests/conform/test-launcher.sh.in
blob: 0be13bda549a9a7ef7fbe4e81edb2b83aae0ac0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/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} "$@"

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}"