Added regression procedure
[pspp] / tests / xforms / casefile.sh
index 015ce8c6f2c536c17f1b5a900b39ce9163f2cd17..f6aa54b20d8d8572843c6237e81118c7fa0988e3 100755 (executable)
@@ -9,11 +9,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
 }
 
@@ -56,7 +58,8 @@ $SUPERVISOR $here/../src/pspp --testing-mode $TEMPDIR/casefile.stat > $TEMPDIR/c
 if [ $? -ne 0 ] ; then no_result ; fi
 
 activity="compare results"
-diff -b -B $TEMPDIR/casefile.out - <<EOF
+perl -pi -e 's/^\s*$//g' $TEMPDIR/casefile.out
+diff -b $TEMPDIR/casefile.out - <<EOF |perl -e 's/^\s*$//g'
 Casefile tests succeeded.
 EOF