3 # This program tests the IMPORT and EXPORT commands
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"
51 DATA LIST LIST /X * Y *.
58 EXPORT /OUTFILE='wiz.por'.
62 IMPORT /FILE='wiz.por'.
66 if [ $? -ne 0 ] ; then no_result ; fi
69 activity="run program"
70 $SUPERVISOR $here/../src/pspp --testing-mode -o raw-ascii $TESTFILE
71 if [ $? -ne 0 ] ; then no_result ; fi
73 activity="compare output"
74 diff -b -B $TEMPDIR/pspp.list - << EOF
75 1.1 DATA LIST. Reading free-form data from the command file.
96 if [ $? -ne 0 ] ; then fail ; fi