This commit changes "diff" invocations to ignore changes in white space to
avoid spurious test failures due to differences in line endings.
if [ $? -ne 0 ] ; then no_result ; fi
activity="compare output 1"
if [ $? -ne 0 ] ; then no_result ; fi
activity="compare output 1"
-diff -c - $TEMPDIR/pspp.csv <<EOF
+diff -b -c - $TEMPDIR/pspp.csv <<EOF
Table: Frequencies
,,N
height - age,Negative Differences,1
Table: Frequencies
,,N
height - age,Negative Differences,1
activity="compare output 1"
activity="compare output 1"
-diff -c pspp.csv $TEMPDIR/results.csv
+diff -b -c pspp.csv $TEMPDIR/results.csv
if [ $? -ne 0 ] ; then fail ; fi
if [ $? -ne 0 ] ; then fail ; fi
if [ $? -ne 0 ] ; then no_result ; fi
activity="compare output 2"
if [ $? -ne 0 ] ; then no_result ; fi
activity="compare output 2"
-diff pspp.csv $TEMPDIR/results.csv
+diff -b pspp.csv $TEMPDIR/results.csv
if [ $? -ne 0 ] ; then fail ; fi
if [ $? -ne 0 ] ; then fail ; fi
if [ $? -ne 0 ] ; then fail ; fi
activity="compare print.out"
if [ $? -ne 0 ] ; then fail ; fi
activity="compare print.out"
-diff $TEMPDIR/print.out - <<EOF
+diff -b $TEMPDIR/print.out - <<EOF
if [ $? -ne 0 ] ; then fail ; fi
activity="compare write.out"
if [ $? -ne 0 ] ; then fail ; fi
activity="compare write.out"
-diff $TEMPDIR/write.out - <<EOF
+diff -b $TEMPDIR/write.out - <<EOF
if [ $? -ne 0 ] ; then fail ; fi
activity="compare output"
if [ $? -ne 0 ] ; then fail ; fi
activity="compare output"
-diff $TEMPDIR/pspp.csv - << EOF
+diff -b $TEMPDIR/pspp.csv - << EOF
if [ $? -ne 0 ] ; then no_result ; fi
activity="compare output"
if [ $? -ne 0 ] ; then no_result ; fi
activity="compare output"
-diff -c pspp.csv - << EOF
+diff -c -b pspp.csv - << EOF
Scale: Everything
Table: Case Processing Summary
Scale: Everything
Table: Case Processing Summary