X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=tests%2Fcommand%2Fsysfile-info.sh;h=097a9c831761ce8f32e2d5f290d3b74ec03eab1f;hb=f62700038e9edd7d8002242015a900a15626bceb;hp=4f08b16627fd1f31177910c72c462c2a0afd657b;hpb=4d5ed89b7cdcb9dc2ea761cef3f04df3d2599436;p=pspp diff --git a/tests/command/sysfile-info.sh b/tests/command/sysfile-info.sh index 4f08b16627..097a9c8317 100755 --- a/tests/command/sysfile-info.sh +++ b/tests/command/sysfile-info.sh @@ -10,7 +10,8 @@ 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() @@ -19,6 +20,7 @@ cleanup() echo "NOT cleaning $TEMPDIR" return ; fi + cd / rm -rf $TEMPDIR } @@ -70,11 +72,11 @@ $SUPERVISOR $here/../src/pspp --testing-mode -o raw-ascii $TESTFILE if [ $? -ne 0 ] ; then no_result ; fi activity="filter output" -grep -v '^Created: ' $TEMPDIR/pspp.list > $TEMPDIR/out-filtered +egrep -v '^(Created|Endian): ' $TEMPDIR/pspp.list > $TEMPDIR/out-filtered if [ $? -ne 0 ] ; then no_result ; fi activity="compare output" -diff $TEMPDIR/out-filtered - << EOF +diff -b -B -w $TEMPDIR/out-filtered - << EOF 1.1 DATA LIST. Reading free-form data from the command file. +--------+------+ |Variable|Format| @@ -86,7 +88,6 @@ diff $TEMPDIR/out-filtered - << EOF 2.1 SYSFILE INFO. File: pro.sav Label: No label. -Endian: Little. Variables: 2 Cases: 3 Type: System File.