Instead of assuming that the extension of the unit testing programs
is nothing, use EXEEXT to get the actual extension.
git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@755
64e312b2-a51f-0410-8e61-
82d0ca0eb02a
#!/bin/sh
+. ./test_vars
+
expected="Running suite(s): NoFork
0%: Checks: 1, Failures: 1, Errors: 0"
-actual=`./check_nofork 2>&1`
+actual=`./check_nofork${EXEEXT} 2>&1`
if [ x"${expected}" = x"${actual}" ]; then
exit 0
else
- echo "Problem with check_nofork"
+ echo "Problem with check_nofork${EXEEXT}"
echo "Expected: Failure"
echo "Got: Segmentation fault"
exit 1
#!/bin/sh
+. ./test_vars
+
if [ "${srcdir}" = "." ]; then
lsrc=""
else
test_log_output ( ) {
- ./ex_log_output "${1}" > /dev/null
+ ./ex_log_output${EXEEXT} "${1}" > /dev/null
actual=`cat test.log`
if [ x"${expected}" != x"${actual}" ]; then
- echo "Problem with ex_log_output ${3}";
+ echo "Problem with ex_log_output${EXEEXT} ${3}";
echo "Expected:";
echo "${expected}";
echo "Got:";
${lsrc}ex_output.c:21: (after this point) Early exit with return value 1
]"
-op0=`./ex_output CK_SILENT`
-op1=`./ex_output CK_MINIMAL`
-op2=`./ex_output CK_NORMAL`
-op3=`./ex_output CK_VERBOSE`
+op0=`./ex_output${EXEEXT} CK_SILENT`
+op1=`./ex_output${EXEEXT} CK_MINIMAL`
+op2=`./ex_output${EXEEXT} CK_NORMAL`
+op3=`./ex_output${EXEEXT} CK_VERBOSE`
if test 1 -eq $ENABLE_SUBUNIT; then
-op4=`./ex_output CK_SUBUNIT`
+op4=`./ex_output${EXEEXT} CK_SUBUNIT`
fi
test_output ( ) {
if [ "${1}" != "${2}" ]; then
- echo "Problem with ex_output ${3}";
+ echo "Problem with ex_output${EXEEXT} ${3}";
echo "Expected:";
echo "${1}";
echo "Got:";
#!/bin/sh
+. ./test_vars
+
if [ "${srcdir}" = "." ]; then
lsrc=""
else
</suite>
</testsuites>"
-./ex_xml_output > /dev/null
+./ex_xml_output${EXEEXT} > /dev/null
actual=`cat test.log.xml | grep -v \<duration\> | grep -v \<datetime\> | grep -v \<path\>`
if [ x"${expected}" != x"${actual}" ]; then
- echo "Problem with ex_xml_output ${3}";
+ echo "Problem with ex_xml_output${EXEEXT} ${3}";
echo "Expected:";
echo "${expected}";
echo "Got:";