From: John Darrington Date: Fri, 21 Dec 2007 23:44:18 +0000 (+0000) Subject: Oops. Added new test. X-Git-Tag: v0.6.0~154 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91dc088ddff7486a9d7bdc397761f6b0bcecf41c;p=pspp-builds.git Oops. Added new test. --- diff --git a/tests/bugs/t-test-alpha3.sh b/tests/bugs/t-test-alpha3.sh new file mode 100755 index 00000000..25bd1125 --- /dev/null +++ b/tests/bugs/t-test-alpha3.sh @@ -0,0 +1,117 @@ +#!/bin/sh + +# This program tests for a bug which didn't properly +# compare string values. + +TEMPDIR=/tmp/pspp-tst-$$ +TESTFILE=$TEMPDIR/`basename $0`.sps + +# ensure that top_srcdir and top_builddir are absolute +if [ -z "$top_srcdir" ] ; then top_srcdir=. ; fi +if [ -z "$top_builddir" ] ; then top_builddir=. ; fi +top_srcdir=`cd $top_srcdir; pwd` +top_builddir=`cd $top_builddir; pwd` + +PSPP=$top_builddir/src/ui/terminal/pspp + +STAT_CONFIG_PATH=$top_srcdir/config +export STAT_CONFIG_PATH + +LANG=C +export LANG + + +cleanup() +{ + if [ x"$PSPP_TEST_NO_CLEANUP" != x ] ; then + echo "NOT cleaning $TEMPDIR" + return ; + fi + rm -rf $TEMPDIR +} + + +fail() +{ + echo $activity + echo FAILED + cleanup; + exit 1; +} + + +no_result() +{ + echo $activity + echo NO RESULT; + cleanup; + exit 2; +} + +pass() +{ + cleanup; + exit 0; +} + +mkdir -p $TEMPDIR + +cd $TEMPDIR + +cat >> $TESTFILE <