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 NOTABLE /X Y.
60 EXPORT /OUTFILE='wiz.por'.
61 IMPORT /FILE='wiz.por'.
65 if [ $? -ne 0 ] ; then no_result ; fi
68 activity="run program"
69 $SUPERVISOR $here/../src/pspp --testing-mode -o raw-ascii $TESTFILE
70 if [ $? -ne 0 ] ; then no_result ; fi
72 activity="compare output"
73 perl -pi -e s/^\s*\$//g $TEMPDIR/pspp.list
74 diff -b $TEMPDIR/pspp.list - << EOF | perl -e 's/^\s*$//g'
81 if [ $? -ne 0 ] ; then fail ; fi