Initial version
[pspp] / tests / command / aggregate.sh
index fd14d66ddce3f762680c30f6882a4d328cec4272..534c93b4cc275b22bc6fdab0561b30a3bc8de753 100755 (executable)
@@ -12,10 +12,12 @@ here=`pwd`;
 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
 }
 
@@ -202,7 +204,8 @@ for outfile in active external; do
            if [ $? -ne 0 ] ; then no_result ; fi
 
            activity="check $name output"
-           diff -b -w -B pspp.list agg-$missing.out
+           perl -pi -e 's/^\s*$//g' pspp.list agg-$missing.out
+           diff -b -w pspp.list agg-$missing.out
            if [ $? -ne 0 ] ; then fail ; fi
        done
     done