3 # This program tests the IMPORT and EXPORT commands
5 TEMPDIR=/tmp/pspp-tst-$$
9 # ensure that top_srcdir is absolute
10 cd $top_srcdir; top_srcdir=`pwd`
12 export STAT_CONFIG_PATH=$top_srcdir/config
48 activity="create program"
49 cat > $TEMPDIR/prog.stat <<EOF
50 DATA LIST LIST /x * y *.
57 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 $TEMPDIR/prog.stat
70 if [ $? -ne 0 ] ; then no_result ; fi
72 activity="compare output"
73 diff $TEMPDIR/pspp.list - << EOF
74 1.1 DATA LIST. Reading free-form data from the command file.
95 if [ $? -ne 0 ] ; then fail ; fi