#!/bin/sh if [ "${srcdir}" = "." ]; then lsrc="" else lsrc="${srcdir}/" fi expected=" S1 ex_xml_output.c:10 test_pass 0 Core Passed ex_xml_output.c:16 test_fail 0 Core Failure ex_xml_output.c:20 test_exit 0 Core Early exit with return value 1 S2 ex_xml_output.c:28 test_pass2 0 Core Passed ex_xml_output.c:34 test_loop 0 Core Iteration 0 failed ex_xml_output.c:34 test_loop 1 Core Passed ex_xml_output.c:34 test_loop 2 Core Iteration 2 failed " ./ex_xml_output > /dev/null actual=`cat test.log.xml | grep -v \ | grep -v \ | grep -v \` if [ x"${expected}" != x"${actual}" ]; then echo "Problem with ex_xml_output ${3}"; echo "Expected:"; echo "${expected}"; echo "Got:"; echo "${actual}"; exit 1; fi exit 0