Fixed some changes, which didn't work with certain versions of diff
authorJohn Darrington <john@darrington.wattle.id.au>
Mon, 15 Dec 2003 23:56:49 +0000 (23:56 +0000)
committerJohn Darrington <john@darrington.wattle.id.au>
Mon, 15 Dec 2003 23:56:49 +0000 (23:56 +0000)
tests/command/aggregate.sh
tests/command/autorecod.sh
tests/command/beg-data.sh

index b84e63eb30b04b61bff1e8ad6a9799188229d9d4..597217f83e751af01f899ae95264a79017f255b6 100755 (executable)
@@ -9,6 +9,7 @@ here=`pwd`;
 # ensure that top_srcdir is absolute
 cd $top_srcdir; top_srcdir=`pwd`
 
+
 export STAT_CONFIG_PATH=$top_srcdir/config
 
 cleanup()
@@ -71,9 +72,10 @@ activity="run program"
 $here/../src/pspp    -o raw-ascii $TEMPDIR/test.sps  
 if [ $? -ne 0 ] ; then no_result ; fi
 
+cat pspp.list > /tmp/foo
 
 activity="test result"
-diff  -B $TEMPDIR/pspp.list - << EOF
+diff  -b -w -B $TEMPDIR/pspp.list - << EOF
 X        Z      FOO
 - -------- --------
 1    15.00     6.00 
index 08428c1efe4b4e56bda48808ef7e83d4645105d0..2ef03f9f25c48487268adb59335de5353cd4e762 100755 (executable)
@@ -77,7 +77,7 @@ $here/../src/pspp    -o raw-ascii $TEMPDIR/prog.sps
 if [ $? -ne 0 ] ; then no_result ; fi
 
 activity="test output"
-diff -B $TEMPDIR/pspp.list - <<EOF
+diff -b -B $TEMPDIR/pspp.list - <<EOF
 1.1 DATA LIST.  Reading 1 record from the command file.
 +--------+------+-------+------+
 |Variable|Record|Columns|Format|
index dc044bc9c61d36ff888c693bf9e46c4a4a68f332..cdbf0a6b0e24cbc5defc8cb2ae923b413bbbb7bb 100755 (executable)
@@ -88,7 +88,7 @@ $here/../src/pspp -o raw-ascii $TEMPDIR/prog.sps
 if [ $? -ne 0 ] ; then no_result ; fi
 
 activity="compare data"
-diff -B $TEMPDIR/pspp.list - << foobar
+diff -b -B $TEMPDIR/pspp.list - << foobar
 ----------------------------------------------------------------------
 First we show that we can input data with BEGIN DATA/END DATA after
 a procedure.