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
50 activity="create program"
52 DATA LIST LIST /X * Y *.
59 EXPORT /OUTFILE='wiz.por'.
63 IMPORT /FILE='wiz.por'.
67 if [ $? -ne 0 ] ; then no_result ; fi
70 activity="run program"
71 $SUPERVISOR $here/../src/pspp --testing-mode -o raw-ascii $TESTFILE
72 if [ $? -ne 0 ] ; then no_result ; fi
74 activity="compare output"
75 diff -b -B $TEMPDIR/pspp.list - << EOF
76 1.1 DATA LIST. Reading free-form data from the command file.
97 if [ $? -ne 0 ] ; then fail ; fi