Add scratch file handles.
[pspp-builds.git] / tests / bugs / t-test-alpha.sh
index db8c5a1f9794e7556271ec665e0c1154d9a5bf8d..79a28e3576a2a9b7d931caecf1e5d22a7cede00c 100755 (executable)
@@ -18,6 +18,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
@@ -77,8 +78,9 @@ $SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE
 if [ $? -ne 0 ] ; then no_result ; fi
 
 activity="compare output"
-diff -B -b $TEMPDIR/pspp.list - <<EOF
-1.1 DATA LIST.  Reading free-form data from the command file.
+perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list
+diff  -b $TEMPDIR/pspp.list - <<EOF
+1.1 DATA LIST.  Reading free-form data from INLINE.
 +--------+------+
 |Variable|Format|
 #========#======#
@@ -87,7 +89,6 @@ diff -B -b $TEMPDIR/pspp.list - <<EOF
 |DEP1    |F8.0  |
 |DEP2    |F8.0  |
 +--------+------+
-
 2.1 T-TEST.  Group Statistics
 #==========#=#====#==============#========#
 #     INDEP|N|Mean|Std. Deviation|SE. Mean#
@@ -97,7 +98,6 @@ diff -B -b $TEMPDIR/pspp.list - <<EOF
 #DEP2 a    |5|4.00|          .707|    .316#
 #     b    |5|2.00|          .707|    .316#
 #==========#=#====#==============#========#
-
 2.2 T-TEST.  Independent Samples Test
 #===============================#==========#===============================================================================#
 #                               # Levene's |                          t-test for Equality of Means                         #