gcc/contrib/reghunt/examples/29106.test
Janis Johnson 883935fd20 examples: New directory.
* examples: New directory.
	* examples/gcc-svn-env: New.
	* examples/reg-watch: New.
	* examples/reg-watch.awk: New.
	* examples/common.config: New.
	* examples/testall: New.
	* examples/28970.config: New.
	* examples/28970.list: New.
	* examples/28970.c: New.
	* examples/28970.log: New.
	* examples/29106.config: New.
	* examples/29106.list: New.
	* examples/29106.test: New.
	* examples/29106.cc: New.
	* examples/29106.log: New.
	* examples/29478.config: New.
	* examples/29478.list: New.
	* examples/29478.c: New.
	* examples/29478.log: New.
	* examples/29906a.config: New.
	* examples/29906a.list: New.
	* examples/29906a.cc: New.
	* examples/29906a.log: New.
	* examples/29906b.config: New.
	* examples/29906b.list: New.
	* examples/29906b.cc: New.
	* examples/29906b.log: New.
	* examples/30643.config: New.
	* examples/30643.list: New.
	* examples/30643.c: New.
	* examples/30643.test: New.
	* examples/30643.log: New.

From-SVN: r144242
2009-02-17 18:45:27 +00:00

30 lines
610 B
Bash
Executable File

#! /bin/sh
ID=$1
LOGID=`printf "%04d" ${ID}`
LOG=${BUGID}.${LOGID}.out
MSGID="bug ${BUGID}, id ${ID}"
$REG_TEST_COMPILER $REG_OPTS $REG_TESTCASE > ${LOG} 2>&1
if [ $? -ne 0 ]; then
echo "`date` unexpected failure: test compilation failed for ${MSGID}"
exit $REG_ERROR
fi
./a.out >> ${LOG} 2>&1
if [ $? -ne 0 ]; then
echo "`date` unexpected failure: test run aborted for ${MSGID}"
exit $REG_ERROR
fi
grep -q 'size of thingy is 4' $LOG
if [ $? -ne 0 ]; then
echo "`date` no output for ${MSGID}"
exit $REG_FAIL
fi
echo "`date` test ran successfully for ${MSGID}"
exit $REG_PASS