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 STAT_CONFIG_PATH=$top_srcdir/config
14 export STAT_CONFIG_PATH
51 activity="create program"
53 DATA LIST LIST /X * Y *.
60 EXPORT /OUTFILE='wiz.por'.
64 IMPORT /FILE='wiz.por'.
68 if [ $? -ne 0 ] ; then no_result ; fi
71 activity="run program"
72 $SUPERVISOR $here/../src/pspp --testing-mode -o raw-ascii $TESTFILE
73 if [ $? -ne 0 ] ; then no_result ; fi
75 activity="compare output"
76 diff -b -B $TEMPDIR/pspp.list - << EOF
77 1.1 DATA LIST. Reading free-form data from the command file.
98 if [ $? -ne 0 ] ; then fail ; fi