Initial version
[pspp] / tests / command / aggregate.sh
index c6f48ae913e30f49604296441f2ffc239fcb8f77..534c93b4cc275b22bc6fdab0561b30a3bc8de753 100755 (executable)
@@ -17,6 +17,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
@@ -203,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