From: Ben Pfaff Date: Tue, 12 Oct 2010 05:33:03 +0000 (-0700) Subject: tests: Convert test for variables in expressions to Autotest. X-Git-Tag: v0.7.6~34 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f121693e24f4f23ee5bfda6e745f35c9c14cfa28;p=pspp-builds.git tests: Convert test for variables in expressions to Autotest. --- diff --git a/tests/automake.mk b/tests/automake.mk index 63bb79b8..45b6af4b 100644 --- a/tests/automake.mk +++ b/tests/automake.mk @@ -27,7 +27,6 @@ dist_TESTS = \ tests/formats/wkday-in.sh \ tests/formats/wkday-out.sh \ tests/formats/360.sh \ - tests/expressions/variables.sh \ tests/expressions/vectors.sh TESTS = $(dist_TESTS) $(nodist_TESTS) diff --git a/tests/expressions/variables.sh b/tests/expressions/variables.sh deleted file mode 100755 index 5d098490..00000000 --- a/tests/expressions/variables.sh +++ /dev/null @@ -1,130 +0,0 @@ -#!/bin/sh - -# This program tests use of variables in expressions. - -TEMPDIR=/tmp/pspp-tst-$$ - -# 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$EXEEXT - -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 - cd / - 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 - -activity="create program" -cat > $TEMPDIR/variables.stat < $TEMPDIR/variables.err 2> $TEMPDIR/variables.out -if [ $? -ne 0 ] ; then fail ; fi - -activity="compare results" -diff -c $TEMPDIR/pspp.csv - <