# This program tests the sort command
TEMPDIR=/tmp/pspp-tst-$$
+TESTFILE=$TEMPDIR/`basename $0`.sps
here=`pwd`;
activity="generate stat program"
-cat > $TEMPDIR/sort.stat <<EOF
+cat > $TESTFILE <<EOF
title 'Test SORT procedure'.
data list file='$here/sort.data' notable /X000 to X126 1-127.
if [ $? -ne 0 ] ; then no_result ; fi
activity="run program"
-$SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/sort.stat
+$SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE
if [ $? -ne 0 ] ; then no_result ; fi
# Now there should be some sorted data in $TEMPDIR/pspp.list
activity="check sorted"
sort $TEMPDIR/pspp.list > $TEMPDIR/sortsort
-cp $TEMPDIR/pspp.list ~/pspp.list
if [ $? -ne 0 ] ; then no_result ; fi
-diff -u -B -b $TEMPDIR/sortsort $TEMPDIR/pspp.list
+diff -B -b $TEMPDIR/sortsort $TEMPDIR/pspp.list
if [ $? -ne 0 ] ; then fail ; fi
# 2. It should be six elements wide