From: Ben Pfaff Date: Mon, 4 Oct 2010 21:59:48 +0000 (-0700) Subject: RELIABILITY: Convert tests to Autotest framework. X-Git-Tag: v0.7.6~96 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da70581a4825d948f6e3269b5bd0bd64cc3f3baa;p=pspp-builds.git RELIABILITY: Convert tests to Autotest framework. --- diff --git a/tests/automake.mk b/tests/automake.mk index b6f45911..9106f3ce 100644 --- a/tests/automake.mk +++ b/tests/automake.mk @@ -10,7 +10,6 @@ TESTS_ENVIRONMENT += LC_ALL=C TESTS_ENVIRONMENT += EXEEXT=$(EXEEXT) dist_TESTS = \ - tests/command/reliability.sh \ tests/command/roc.sh \ tests/command/roc2.sh \ tests/command/sample.sh \ @@ -378,6 +377,7 @@ TESTSUITE_AT = \ tests/language/stats/oneway.at \ tests/language/stats/rank.at \ tests/language/stats/regression.at \ + tests/language/stats/reliability.at \ tests/language/utilities/insert.at \ tests/language/utilities/permissions.at \ tests/language/utilities/set.at \ diff --git a/tests/command/reliability.sh b/tests/command/reliability.sh deleted file mode 100755 index 7c581457..00000000 --- a/tests/command/reliability.sh +++ /dev/null @@ -1,318 +0,0 @@ -#!/bin/sh - -# This program tests the reliability command. - -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$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 - 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 <