3 # This program tests the SYSFILE INFO command
5 TEMPDIR=/tmp/pspp-tst-$$
6 TESTFILE=$TEMPDIR/`basename $0`.sps
10 # ensure that top_srcdir is absolute
11 cd $top_srcdir; top_srcdir=`pwd`
13 export STAT_CONFIG_PATH=$top_srcdir/config
49 activity="create program 1"
50 cat > $TEMPDIR/save.stat << EOF
62 if [ $? -ne 0 ] ; then no_result ; fi
64 activity="run program 1"
65 $SUPERVISOR $here/../src/pspp --testing-mode -o raw-ascii $TEMPDIR/save.stat
66 if [ $? -ne 0 ] ; then no_result ; fi
68 activity="create program 2"
69 cat > $TEMPDIR/read.stat << EOF
70 sysfile info file='foo.save'.
74 if [ $? -ne 0 ] ; then no_result ; fi
76 activity="run program 2"
77 $SUPERVISOR $here/../src/pspp --testing-mode -o raw-ascii $TEMPDIR/read.stat
78 if [ $? -ne 0 ] ; then no_result ; fi
81 activity="compare output"
82 diff -B -b $TEMPDIR/pspp.list - << EOF
84 File: $TEMPDIR/foo.save
86 Created: 18 Dec 03 09:05:20 by GNU pspp 0.3.1 - i686-pc-cygwin
93 +--------+-------------+---+
94 |Variable|Description |Pos|
97 #========#=============#===#
99 +--------+-------------+---+
101 if [ $? -ne 0 ] ; then fail ; fi