[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pspp-cvs] pspp/tests/bugs terminate.sh
From: |
Ben Pfaff |
Subject: |
[Pspp-cvs] pspp/tests/bugs terminate.sh |
Date: |
Mon, 15 Oct 2007 04:31:35 +0000 |
CVSROOT: /cvsroot/pspp
Module name: pspp
Changes by: Ben Pfaff <blp> 07/10/15 04:31:35
Removed files:
tests/bugs : terminate.sh
Log message:
Delete test that is obsolete and has not been run automatically in ages.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/pspp/tests/bugs/terminate.sh?cvsroot=pspp&r1=1.6&r2=0
Patches:
Index: terminate.sh
===================================================================
RCS file: terminate.sh
diff -N terminate.sh
--- terminate.sh 27 Aug 2007 07:19:19 -0000 1.6
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,78 +0,0 @@
-#!/bin/sh
-
-# This tests checks that when a fatal error occurs,
-# and appropriate notice is printed and the program exits with a
-# non zero status
-
-
-TEMPDIR=/tmp/pspp-tst-$$
-TESTFILE=$TEMPDIR/`basename $0`.sps
-
-here=`pwd`;
-
-# ensure that top_srcdir is absolute
-cd $top_srcdir; top_srcdir=`pwd`
-
-STAT_CONFIG_PATH=$top_srcdir/config
-export STAT_CONFIG_PATH
-
-
-cleanup()
-{
- 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="delete file"
-rm -f $TEMPDIR/bar.dat
-if [ $? -ne 0 ] ; then no_result ; fi
-
-activity="create program"
-cat > $TESTFILE <<EOF
-DATA LIST FILE='$TEMPDIR/bar.dat' /S 1-2 (A) X 3 .
-
-EXECUTE.
-EOF
-if [ $? -ne 0 ] ; then no_result ; fi
-
-activity="run program"
-# This must exit with non zero status
-$SUPERVISOR $here/../src/pspp -o raw-ascii -e /dev/null $TESTFILE 2>
$TEMPDIR/stderr
-if [ $? -eq 0 ] ; then fail ; fi
-
-activity="compare stderr"
-diff $TEMPDIR/stderr - << EOF
-pspp: Terminating NOW due to a fatal error!
-EOF
-if [ $? -ne 0 ] ; then fail ; fi
-
-pass;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pspp-cvs] pspp/tests/bugs terminate.sh,
Ben Pfaff <=