From: Ben Pfaff Date: Mon, 4 Oct 2010 22:08:29 +0000 (-0700) Subject: ROC: Convert tests to Autotest framework. X-Git-Tag: v0.7.6~95 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ee20364862608997a01e97c816a49bf2671f525;p=pspp-builds.git ROC: Convert tests to Autotest framework. --- diff --git a/tests/automake.mk b/tests/automake.mk index 9106f3ce..92398409 100644 --- a/tests/automake.mk +++ b/tests/automake.mk @@ -10,8 +10,6 @@ TESTS_ENVIRONMENT += LC_ALL=C TESTS_ENVIRONMENT += EXEEXT=$(EXEEXT) dist_TESTS = \ - tests/command/roc.sh \ - tests/command/roc2.sh \ tests/command/sample.sh \ tests/command/sort.sh \ tests/command/sysfiles.sh \ @@ -378,6 +376,7 @@ TESTSUITE_AT = \ tests/language/stats/rank.at \ tests/language/stats/regression.at \ tests/language/stats/reliability.at \ + tests/language/stats/roc.at \ tests/language/utilities/insert.at \ tests/language/utilities/permissions.at \ tests/language/utilities/set.at \ diff --git a/tests/command/roc.sh b/tests/command/roc.sh deleted file mode 100755 index e350585d..00000000 --- a/tests/command/roc.sh +++ /dev/null @@ -1,153 +0,0 @@ -#!/bin/sh - -# This program tests the ROC command. - -TEMPDIR=/tmp/pspp-tst-$$ -TESTFILE=$TEMPDIR/`basename $0`.sps - -# ensure that top_builddir are absolute -if [ -z "$top_builddir" ] ; then top_builddir=. ; fi -if [ -z "$top_srcdir" ] ; then top_srcdir=. ; fi -top_builddir=`cd $top_builddir; pwd` -PSPP=$top_builddir/src/ui/terminal/pspp$EXEEXT - -# ensure that top_srcdir is absolute -top_srcdir=`cd $top_srcdir; pwd` - -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 > $TESTFILE < $TESTFILE <