From 181b7b7bf5637774bbccc2ce019449a4994cfb07 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 11 Oct 2010 22:30:27 -0700 Subject: [PATCH] tests: Convert test for VALUELABEL expression function to Autotest. --- tests/automake.mk | 1 - tests/expressions/valuelabel.sh | 111 ------------------------- tests/language/expressions/evaluate.at | 44 ++++++++++ 3 files changed, 44 insertions(+), 112 deletions(-) delete mode 100755 tests/expressions/valuelabel.sh diff --git a/tests/automake.mk b/tests/automake.mk index 2c09e4b3..63bb79b8 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/valuelabel.sh \ tests/expressions/variables.sh \ tests/expressions/vectors.sh diff --git a/tests/expressions/valuelabel.sh b/tests/expressions/valuelabel.sh deleted file mode 100755 index d4fa74f9..00000000 --- a/tests/expressions/valuelabel.sh +++ /dev/null @@ -1,111 +0,0 @@ -#!/bin/sh - -# This program tests use of the VALUELABEL function 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/valuelabel.stat <