Add scratch file handles.
[pspp-builds.git] / tests / bugs / match-files-scratch.sh
index afdea8a994029a3e685b2e4db9ac47735938ee6a..a55a3246e04a626611e10f363ba69b3c0ea8d2b3 100755 (executable)
@@ -12,11 +12,13 @@ here=`pwd`;
 # ensure that top_srcdir is absolute
 cd $top_srcdir; top_srcdir=`pwd`
 
-export STAT_CONFIG_PATH=$top_srcdir/config
+STAT_CONFIG_PATH=$top_srcdir/config
+export STAT_CONFIG_PATH
 
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
@@ -72,8 +74,9 @@ $SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE
 if [ $? -ne 0 ] ; then no_result ; fi
 
 
-diff -b -B -w $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  -w $TEMPDIR/pspp.list - << EOF
+1.1 DATA LIST.  Reading free-form data from INLINE.
 +--------+------+
 |Variable|Format|
 #========#======#
@@ -81,7 +84,6 @@ diff -b -B -w $TEMPDIR/pspp.list - << EOF
 |x       |F8.0  |
 |y       |F8.0  |
 +--------+------+
-
        x        y        j
 -------- -------- --------
     5.00     6.00    55.00