(case_compare) Implement as delegating to case_compare_2dict().
[pspp-builds.git] / tests / command / split-file.sh
index 666f39dd3ba58f136812adb20d7bd08d398b1b4d..f9ae79abab3e93923a86e42701fa9c2229605118 100755 (executable)
@@ -3,17 +3,20 @@
 # This program tests the split file command
 
 TEMPDIR=/tmp/pspp-tst-$$
+TESTFILE=$TEMPDIR/`basename $0`.sps
 
 here=`pwd`;
 
 # ensure that top_srcdir is absolute
 cd $top_srcdir; top_srcdir=`pwd`
 
-export STAT_CONFIG_PATH=$top_srcdir/config
+STAT_CONFIG_PATH=$top_srcdir/config
+export STAT_CONFIG_PATH
 
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
@@ -49,7 +52,7 @@ activity="create program"
 cat > $TEMPDIR/split.stat <<EOF
 title 'Test SPLIT FILE utility'.
 
-data list notable /x 1 y 2.
+data list notable /X 1 Y 2.
 begin data.
 12
 16
@@ -71,7 +74,7 @@ EOF
 if [ $? -ne 0 ] ; then no_result ; fi
 
 activity="run program"
-$here/../src/pspp -o raw-ascii $TEMPDIR/split.stat
+$SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/split.stat
 if [ $? -ne 0 ] ; then no_result ; fi
 
 activity="compare results"