Sat Jul 30 21:54:23 2005 Ben Pfaff <blp@gnu.org>
authorBen Pfaff <blp@gnu.org>
Sun, 31 Jul 2005 04:55:58 +0000 (04:55 +0000)
committerBen Pfaff <blp@gnu.org>
Sun, 31 Jul 2005 04:55:58 +0000 (04:55 +0000)
* command/sys-info.sh: Removed.  (This was not actually in TESTS
in Makefile.am, so it was never called.
tests/command/sysfile-info.sh does what it was trying to do, but
better.)

Sat Jul 30 21:50:33 2005  Ben Pfaff  <blp@gnu.org>

Fixes for Solaris.

* Most tests: Add `cd /' before `rm -rf $TEMPDIR' because some
OSes do not allow the current working directory to be removed.

* bugs/big-input-2.sh: Use perl instead of a shell loop, because
the shell loop was very slow on Solaris.

* command/sort.sh: Use `printf' instead of `echo -n' for
portability.

95 files changed:
tests/ChangeLog
tests/bugs/agg-crash-2.sh
tests/bugs/agg_crash.sh
tests/bugs/alpha-freq.sh
tests/bugs/big-input-2.sh
tests/bugs/big-input.sh
tests/bugs/comment-at-eof.sh
tests/bugs/compute-fmt.sh
tests/bugs/compute-lv.sh
tests/bugs/computebug.sh
tests/bugs/crosstabs-crash.sh
tests/bugs/crosstabs.sh
tests/bugs/curtailed.sh
tests/bugs/data-crash.sh
tests/bugs/double-frequency.sh
tests/bugs/examine-1sample.sh
tests/bugs/get-no-file.sh
tests/bugs/get.sh
tests/bugs/html-frequency.sh
tests/bugs/if_crash.sh
tests/bugs/input-crash.sh
tests/bugs/lag_crash.sh
tests/bugs/match-files-scratch.sh
tests/bugs/multipass.sh
tests/bugs/random.sh
tests/bugs/recode-copy-bug.sh
tests/bugs/t-test-alpha.sh
tests/bugs/t-test-alpha2.sh
tests/bugs/t-test-with-temp.sh
tests/bugs/t-test.sh
tests/bugs/temp-freq.sh
tests/bugs/temporary.sh
tests/bugs/terminate.sh
tests/bugs/val-labs-trailing-slash.sh
tests/bugs/val-labs.sh
tests/command/aggregate.sh
tests/command/autorecod.sh
tests/command/beg-data.sh
tests/command/bignum.sh
tests/command/count.sh
tests/command/data-list.sh
tests/command/erase.sh
tests/command/examine-extremes.sh
tests/command/examine-percentiles.sh
tests/command/examine.sh
tests/command/file-label.sh
tests/command/filter.sh
tests/command/flip.sh
tests/command/import-export.sh
tests/command/lag.sh
tests/command/list.sh
tests/command/longvars.sh
tests/command/loop.sh
tests/command/match-files.sh
tests/command/no_case_size.sh
tests/command/oneway-missing.sh
tests/command/oneway-with-splits.sh
tests/command/oneway.sh
tests/command/permissions.sh
tests/command/print.sh
tests/command/rename.sh
tests/command/sample.sh
tests/command/sort.sh
tests/command/split-file.sh
tests/command/sys-info.sh [deleted file]
tests/command/sysfile-info.sh
tests/command/sysfiles-old.sh
tests/command/sysfiles.sh
tests/command/t-test-1-indep-val.sh
tests/command/t-test-1-sample-missing-anal.sh
tests/command/t-test-1-sample-missing-list.sh
tests/command/t-test-1s.sh
tests/command/t-test-groups.sh
tests/command/t-test-indep-missing-anal.sh
tests/command/t-test-indep-missing-list.sh
tests/command/t-test-paired-missing-anal.sh
tests/command/t-test-paired-missing-list.sh
tests/command/t-test-pairs.sh
tests/command/tabs.sh
tests/command/trimmed-mean.sh
tests/command/use.sh
tests/command/weight.sh
tests/expressions/epoch.sh
tests/expressions/expressions.sh
tests/expressions/randist.sh
tests/expressions/variables.sh
tests/expressions/vectors.sh
tests/stats/descript-basic.sh
tests/stats/descript-mean-bug.sh
tests/stats/descript-missing.sh
tests/stats/moments.sh
tests/stats/ntiles.sh
tests/stats/percentiles-compatible.sh
tests/stats/percentiles-enhanced.sh
tests/xforms/casefile.sh

index 19646bf35a4d2fc9533081509e59b9386e9e69ac..9fd3fdbfbfebdde938ea3afdd970c5af5b5419c0 100644 (file)
@@ -1,3 +1,23 @@
+Sat Jul 30 21:54:23 2005  Ben Pfaff  <blp@gnu.org>
+
+       * command/sys-info.sh: Removed.  (This was not actually in TESTS
+       in Makefile.am, so it was never called.
+       tests/command/sysfile-info.sh does what it was trying to do, but
+       better.)
+       
+Sat Jul 30 21:50:33 2005  Ben Pfaff  <blp@gnu.org>
+
+       Fixes for Solaris.
+
+       * Most tests: Add `cd /' before `rm -rf $TEMPDIR' because some
+       OSes do not allow the current working directory to be removed.
+
+       * bugs/big-input-2.sh: Use perl instead of a shell loop, because
+       the shell loop was very slow on Solaris.
+
+       * command/sort.sh: Use `printf' instead of `echo -n' for
+       portability. 
+       
 Sat Jul 30 21:48:37 2005  Ben Pfaff  <blp@gnu.org>
 
        * Makefile.am: Add coverage.sh, temp_template to EXTRA_DIST.
index 17818161d4dbdd3dd63fc2f9191ea1278697ced2..cd2fd1e34a550e372a99c6ee40bb8c3c2e35426b 100755 (executable)
@@ -17,6 +17,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index de2b1989f03f352789f1e38915ce45732f33e98e..fb2556f9cca3e54f06cc86d16337f46b00bb15f9 100755 (executable)
@@ -17,6 +17,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index b3a9d09ad55236179fe9f1e1be5ba1294e9d479e..2889a063e18e1829ed58c80f8bdeec2f65711d04 100755 (executable)
@@ -17,6 +17,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index 0fea4abab773478415d6dbd94b36b84bb3e10981..5a3c6da02dff2a633dbb1d3822e9ebdb8d24f09f 100755 (executable)
@@ -19,6 +19,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
@@ -56,16 +57,10 @@ if [ $? -ne 0 ] ; then no_result ; fi
 
 printf "Creating input data.  Please wait"
 activity="create data"
-( while true ; do 
-       echo AB12;
-done )  | head -100000 >> $TEMPDIR/large.dat
+$PERL -e 'print "AB12\n" foreach 1...100000;
+          print "AB04\n" foreach 1...100000;' > $TEMPDIR/large.dat
 if [ $? -ne 0 ] ; then no_result ; fi
-printf '.'
-( while true ; do 
-       echo AB04;
-done )  | head -100000 >> $TEMPDIR/large.dat
-if [ $? -ne 0 ] ; then no_result ; fi
-printf "\n";
+printf ".\n";
 
 activity="create program"
 cat > $TESTFILE <<EOF
@@ -85,10 +80,7 @@ if [ $? -ne 0 ] ; then fail ; fi
 
 activity="appending to data"
 # Put another 100,000 cases into large.dat
-( while true ; do 
-       echo AB04 
-       echo AB12 
-done )  | head -50000 >> $TEMPDIR/large.dat
+$PERL -e 'print "AB04\nAB12\n" foreach 1...25000' >> $TEMPDIR/large.dat
 if [ $? -ne 0 ] ; then no_result ; fi
 
 activity="run program"
index 84fc288bda1dfa615d30a92ca6165f3796260280..2d1ade753174523590aa6414c44020ccbe373b92 100755 (executable)
@@ -18,6 +18,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index c1e2aae63dd44f57c8db4d0bb66184dd98ad37c2..0388146d149284192d584d5753347ee8da0f65db 100755 (executable)
@@ -17,6 +17,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index eada06b7b463967236c2ca4e3e0b99429fc04766..e9b8617c707a98b818dbe514fc093157d04448c7 100755 (executable)
@@ -18,6 +18,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index e310cfb0dda67bafaad92721a4fa15f5904b6f0c..2be6b0210caebb5fa4c07df596ada2d602a61b28 100755 (executable)
@@ -16,6 +16,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index 24e7fedaa7f9951c52df293729cc4b2cc0192e48..e29fa29c8e5727194a68beb10f8a05fe439280b0 100755 (executable)
@@ -16,6 +16,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index 18902db1b237e0ab8070cd8170019e3286247384..f77ce50bfa395158fe3c8b2bd8c7ba5350241e70 100755 (executable)
@@ -17,6 +17,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index 0125d7e7b14d1c9a6fd535291f1aa4d8fc36e073..902ed256388d4dfda75154b7246628358863da09 100755 (executable)
@@ -16,6 +16,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index 7b060a586c527853003f9a263726dfc7655bee56..05d774702faa92060968b9ebb91169f8c5a9ea15 100755 (executable)
@@ -17,6 +17,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index 66b67f76e49f8d442234d2b8027823839357f712..1c55bca48b77cca89d13a1db30ed0ddc1162af59 100755 (executable)
@@ -17,6 +17,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index 77895ffee1a983d3332ff6047581e5a6144e17a6..c97521ba2c671e031bfd403cc6a0907ec357ea72 100755 (executable)
@@ -18,6 +18,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index c34657b9a8250ecaeb9dcfcf1fcb6651286b243e..8e0ec7bda49336389ddfd0b6ddf26acfa17afaab 100755 (executable)
@@ -17,6 +17,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index 814e3228ecb83eb2ce9c3f3a7278ac9ff96ddc93..b9da9fa1afb1da51c48de347b23a771350cbb249 100755 (executable)
@@ -17,6 +17,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index 1a1bcb320be252e6a06d9c5244c5b62ce9dbcd42..4fddea75d746bc368c6c34e090b6261cc6f6173c 100755 (executable)
@@ -18,6 +18,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index 5d8c2bf059fed74ccbbcd0e1b2af4ca0fb6d9f8f..e3df6fdeddc10d0a1ae6741cdb40c01aa77dacf1 100755 (executable)
@@ -18,6 +18,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index fc3417b72b706ba2d53021bc0da940db44b77a90..c2f3798040ac85d4c65af05b7d71c1a2f51f7f42 100755 (executable)
@@ -17,6 +17,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index d76528811903e9c62fa2ede0fa6ce41ecf937a1f..16d15a00208b11c3684d5e5c9e6449299b7241a1 100755 (executable)
@@ -21,6 +21,7 @@ cleanup()
        echo "NOT cleaning $TEMPDIR"
        return ; 
      fi
+     cd /
      rm -rf $TEMPDIR
 }
 
index 5636784d923deef359a024805a6eff8d86f578c7..09f6bc78dc6a2ab1632353479565725c60463392 100755 (executable)
@@ -16,6 +16,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index 9646b0038940229dea174d81b6d15334b5f07bee..ce562c75b2ea239e9360fc6f77d897f6c3254d40 100755 (executable)
@@ -18,6 +18,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index 50161af6e0f3024e899261971dbe183029c63a72..524b7160382b7b28129509365dc8bc3421f98f6b 100755 (executable)
@@ -17,6 +17,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index a2db6391bdf4d98fc25a7ecdad09e768c38e1743..659b6935d66fde2ff1e34b3862113ee4a0cde5c8 100755 (executable)
@@ -17,6 +17,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index 9fc88dea9cb769a4928ff38d528c1c21535a8e40..1959831e006b4517a47e5b762ee535a4f8ebb923 100755 (executable)
@@ -16,6 +16,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index db8c5a1f9794e7556271ec665e0c1154d9a5bf8d..befc9eb9ac709970e0e60ebf7a416de35be75610 100755 (executable)
@@ -18,6 +18,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index 74e1eb00920c1f12ad5c0a75b39733fcd84f4c7e..7ff29b2d5a07a846e7af3a909ab1fde825e3dbf6 100755 (executable)
@@ -17,6 +17,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index 520804d69f167acb79a70e4c81bd1fef8508f787..65b669e11720e3d4662745b9334431d74ba8a68d 100755 (executable)
@@ -17,6 +17,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index e2d0d12accf3555ba121ea9e24984839e669c9bc..86cb7f10b6f00ae0c2d00fe2fa3831772457f3ea 100755 (executable)
@@ -18,6 +18,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index 537c5e0b509db2e44fb1edbede69d63a3de5e0e6..63ac638de16cc8431e522a62258719a95cda292f 100755 (executable)
@@ -17,6 +17,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index b0b4e3c38801f592d04d6eb26add9121f89e7213..7f7afb312d7df13ea17bb147e73852204580e578 100755 (executable)
@@ -17,6 +17,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index f96ba66970cf368b2144ea17a2e868cde0a24695..669a308d3f9ac8cbc3f949be823c9f18d74d1b3d 100755 (executable)
@@ -19,6 +19,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index 88a174877477dfea7caf0f8ff430462d9378049f..ac1e9def178baadb1862bcff31e959a445442f0f 100755 (executable)
@@ -17,6 +17,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index e0597f461b0cfde8aa5d20286431ee6928fb6af3..719a67350cba0723c045e7cf24b4f26568a07313 100755 (executable)
@@ -18,6 +18,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index c6f48ae913e30f49604296441f2ffc239fcb8f77..9c7f4c12aeb8fa20f7c1b6dd20a4d2b1427b3423 100755 (executable)
@@ -17,6 +17,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index 6f3c8e15e76f496944ada0a290ea6c14cec13e88..d29a9577f6d398e0daf2524c6e9c5b5fdcc391d6 100755 (executable)
@@ -17,6 +17,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index 66ef60cc043ecf57ce099db524ffd5771781329f..846d936ca73b6b08eca136561ea6eee31041400b 100755 (executable)
@@ -16,6 +16,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index d69223e3a6d58f3d82215ca8779bea517eb50f1c..6ab82a866a4abe39515bada943a0fc6cdf147b02 100755 (executable)
@@ -16,6 +16,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index 052acb3b1ac55b5151714a2d94216d7f6cca1a8b..0b5b751e09f66bc6069c9d894071b876445a7180 100755 (executable)
@@ -16,6 +16,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index bbcd589a546eeed1589b4c07ae00b8fa90494438..4206e498a98d7e5ddce09b33088e53f8bf0f57ba 100755 (executable)
@@ -16,6 +16,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index 64d63a8e056604447f3c064d144c2fd9da36d320..1c010d8c0c3b441647325e79ffa1803fe0f3c028 100755 (executable)
@@ -16,6 +16,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index 55d6ca7b48bc98dfcee12f3f65ff5467df1091a6..b10fdbca5afc0fa8821f0f296eb4da4e896dc4bd 100755 (executable)
@@ -16,6 +16,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index 37a33379a4e17ee582a9f3f6bbb7553b88825378..0d23b41feb03334f7f7c6194c9f4eb09ac55d024 100755 (executable)
@@ -18,6 +18,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index f8d3ccad3573113c13c30dcbcf28ef5edde29fe6..445e1dfc2b75e96be5519258be26d60eb1df7972 100755 (executable)
@@ -16,6 +16,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index 99a3f6fd2dd56866e2454f5492732035f135095c..aaf404f412d9991e2b76354de3bbdd33a8b76473 100755 (executable)
@@ -16,6 +16,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index 0745d932063af32a086fa5cd8e57b977ad906f10..4e9559135197a89deac79a169ed1fa5c2d6d6a1f 100755 (executable)
@@ -16,6 +16,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index 2face72119c7f777e62c6e65efe095d347184f37..60de8395cc1f3e7f42bd086d5c23bf47a6785426 100755 (executable)
@@ -16,6 +16,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index 41b8b13d78e6a8bde2b60a8a72ce7368866c50ef..4476fa7df4cee45b675509311a4e5302761792aa 100755 (executable)
@@ -16,6 +16,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index e1a16993ac071bbabbe637d092c97ddffc913f33..579fd5af8c297506e503485d47f7c9b87aba4c9d 100755 (executable)
@@ -16,6 +16,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index 894b44f80f7ac204464246ef59ea0ea8370c041a..13801abcbe42d256e2debfed94c8aad7151519ce 100755 (executable)
@@ -16,6 +16,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index 7a8a33f7d1607e9a549523901bb2330559c6f4da..063ad6bb82df935324c124bb1170f0f5f3430f7b 100755 (executable)
@@ -16,6 +16,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index 7cb5e2fb71faf988d4bc22d0a8c802b830b1a73f..f06f61a8a72123095369ff94168d7009e239d8ea 100755 (executable)
@@ -16,6 +16,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index e3827383c2eef3dc364beb4b35daa3b4963bd1b8..ef2714bddfd4fef1d1cd170ef1f96a0043519e6e 100755 (executable)
@@ -17,6 +17,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+    cd /
     rm -rf $TEMPDIR
     :
 }
index 7f155b03d21e56df37eefe50faab618e83cb3859..9e4ac2400ca5cdf280cfbbfa8fe2521dd62cfb99 100755 (executable)
@@ -22,6 +22,7 @@ cleanup()
        echo "NOT cleaning $TEMPDIR"
        return ; 
      fi
+     cd /
      rm -rf $TEMPDIR
 }
 
index 661a1c004f3f37a8767022286f15f2e77635d927..533a90a8c67e2be657a2f2b8cfadad8d741e2429 100755 (executable)
@@ -16,6 +16,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index c3bd703829d649175550670ab5098451e25c4ec9..333c66b321fbfd946612ff2e215a43d9eb2f946d 100755 (executable)
@@ -21,6 +21,7 @@ cleanup()
        echo Not cleaning $TEMPDIR;
        return ; 
     fi
+    cd /
     rm -rf $TEMPDIR
 }
 
index c86860900042366c805c272659d3ca20f63e5420..91a72af6a7556f5277901ca247ee68f8832cee53 100755 (executable)
@@ -20,6 +20,7 @@ cleanup()
        echo Not cleaning $TEMPDIR;
        return ; 
     fi
+    cd /
     rm -rf $TEMPDIR
 }
 
index 73f9325be7321eb7d90e7ade6f9236b801d53496..5283b209288a531378b08db31c13a080271f4a19 100755 (executable)
@@ -16,6 +16,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index 51e0d8eb33172a065aae614c059137e5a917d5c6..ca34602344b5e41dd38251a1883db1f2dda7a79a 100755 (executable)
@@ -16,6 +16,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index 2295a1215ee1082d6e0355d7701218b529c2162a..c5d3ecfc4eaec05153aaaf725d8587ee6c59de16 100755 (executable)
@@ -16,6 +16,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index fc5641f26973d04d43c74b6c1d34011c476e6d0f..39d1b8dcfdd9dff5a986c23372bf973c5559311f 100755 (executable)
@@ -16,6 +16,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index c627967d14365244b5c85fdb13a9b68895ab9492..c619ca25799bf4233d78518f304de9bdad8e7ccc 100755 (executable)
@@ -16,6 +16,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
@@ -92,7 +93,7 @@ for count_repeat_buffers in \
   repeat=$2
   buffers=$3
 
-  echo -n .
+  printf .
 
   activity="generate data for $count_repeat_buffers run"
   $PERL gen-data.pl $count $repeat > sort.data
index 2c2d57378dfc306dacf7e4c302575207e45e83a9..f9ae79abab3e93923a86e42701fa9c2229605118 100755 (executable)
@@ -16,6 +16,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
diff --git a/tests/command/sys-info.sh b/tests/command/sys-info.sh
deleted file mode 100755 (executable)
index ab5ab8d..0000000
+++ /dev/null
@@ -1,105 +0,0 @@
-#!/bin/sh
-
-# This program tests the SYSFILE INFO command
-
-TEMPDIR=/tmp/pspp-tst-$$
-TESTFILE=$TEMPDIR/`basename $0`.sps
-
-here=`pwd`;
-
-# ensure that top_srcdir is absolute
-cd $top_srcdir; top_srcdir=`pwd`
-
-STAT_CONFIG_PATH=$top_srcdir/config
-export STAT_CONFIG_PATH
-
-
-cleanup()
-{
-     rm -rf $TEMPDIR
-}
-
-
-fail()
-{
-    echo $activity
-    echo FAILED
-    cleanup;
-    exit 1;
-}
-
-
-no_result()
-{
-    echo $activity
-    echo NO RESULT;
-    cleanup;
-    exit 2;
-}
-
-pass()
-{
-    cleanup;
-    exit 0;
-}
-
-mkdir -p $TEMPDIR
-
-cd $TEMPDIR
-
-activity="create program 1"
-cat > $TEMPDIR/save.stat << EOF
-data list /x 1-2.
-begin data.
-3
-34
-2
-98
-end data.
-save 'foo.save'.
-display $JDATE.
-finish.
-EOF
-if [ $? -ne 0 ] ; then no_result ; fi
-
-activity="run program 1"
-$SUPERVISOR $here/../src/pspp --testing-mode -o raw-ascii $TEMPDIR/save.stat
-if [ $? -ne 0 ] ; then no_result ; fi
-
-activity="create program 2"
-cat > $TEMPDIR/read.stat << EOF
-sysfile info file='foo.save'.
-
-finish.
-EOF
-if [ $? -ne 0 ] ; then no_result ; fi
-
-activity="run program 2"
-$SUPERVISOR $here/../src/pspp --testing-mode -o raw-ascii $TEMPDIR/read.stat
-if [ $? -ne 0 ] ; then no_result ; fi
-
-
-activity="compare output"
-diff -B -b $TEMPDIR/pspp.list - << EOF
-1.1 SYSFILE INFO.  
-File:      $TEMPDIR/foo.save
-Label:     No label.
-Created:   18 Dec 03 09:05:20 by GNU pspp 0.3.1 - i686-pc-cygwin        
-Endian:    Little.
-Variables: 1
-Cases:     4
-Type:      System File.
-Weight:    Not weighted.
-Mode:      Compression on.
-+--------+-------------+---+
-|Variable|Description  |Pos|
-|        |             |iti|
-|        |             |on |
-#========#=============#===#
-|X       |Format: F2.0 |  1|
-+--------+-------------+---+
-EOF
-if [ $? -ne 0 ] ; then fail ; fi
-
-
-pass;
index ffa00c35528fb823ca01ddf9ef18f2343234724b..097a9c831761ce8f32e2d5f290d3b74ec03eab1f 100755 (executable)
@@ -20,6 +20,7 @@ cleanup()
        echo "NOT cleaning $TEMPDIR"
        return ; 
      fi
+     cd /
      rm -rf $TEMPDIR
 }
 
index c842b3399e613948104116b0a7f83e0d9f041611..85b915ad958af316c81b817a657e07db1cf1938b 100755 (executable)
@@ -18,6 +18,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index b504cdec06128517d33fec8dfb6410bf5b09d641..48f561bc795ece3b881e9c85343e2a78d75c2a8f 100755 (executable)
@@ -18,6 +18,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index ea4caff1aba832b710f96b90063d2a163c4bffaa..e149ac7995509997a0e406f94bce33fce78d66f4 100755 (executable)
@@ -17,6 +17,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index 9782386e282ea49e927c260367ad21692648098f..42101af2f5a33353b024a003dc9db242a9776b28 100755 (executable)
@@ -17,6 +17,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index e53adafdb10a7dd3ede948c6955b573777f748ed..7526ef9d4d2b2ed58beb97bba7157a0bfc0b4108 100755 (executable)
@@ -17,6 +17,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index 2cc67c59c7c5b9617993aa9466b72391367a5794..2e18365c8e3eaa67de064138fb747b83d02eef0b 100755 (executable)
@@ -16,6 +16,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index aedded1a4025df38b8c8cfbe6127d5220520b8f6..ca0cca4577e92c32a45d5cdb5ee6535ca905cfeb 100755 (executable)
@@ -16,6 +16,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index fdcccda1795f651b2164ae0712739971ff0c7b6a..2f43310874f21e99977c8b1cc38e1b68df4ea975 100755 (executable)
@@ -17,6 +17,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index 6e473d91ec1408fae739bdaf655252f95a261a1a..0deb1e3194789500e294f712af54a10327c98a8e 100755 (executable)
@@ -17,6 +17,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index 51415cc5d044c7e841bc43c8d73b1e340aae5e4e..eb345401d7719a6f3c363856856b25ff90228c6c 100755 (executable)
@@ -17,6 +17,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index d6623f7f6f7d92e333923e5bdefa9ca5be59749c..01e4fbea6b998bed29a76e8fd88b27a14df6b3f2 100755 (executable)
@@ -17,6 +17,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index 3d7015f280ed6bd305e29f777a4b0e41e42bc0b9..b3ef8415b03efd06a5ce76c5dfad37e5949f159d 100755 (executable)
@@ -16,6 +16,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index 5f77f9c2087d146e70130afbb2647111d4f4dd14..606c0a4c148c4922f2f6d07b956c1933f34a7e50 100755 (executable)
@@ -16,6 +16,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index 70b79918e0858873ecc4cbd44442d11368df0e0a..a5d74e1251338f04293d1991dae0305050a95818 100755 (executable)
@@ -17,6 +17,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index 95af52b07d7f473cc36ba973b08c596bb90ebc6e..bbbb7b44fefeb82617065afdbd2c9a09b1a4bff7 100755 (executable)
@@ -16,6 +16,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index 3793028d1088889af4534665f519d1cc4db3d1bc..d2840edd807b65f7035e7fc2c9d7b68badf692c8 100755 (executable)
@@ -17,6 +17,7 @@ export STAT_CONFIG_PATH
 cleanup()
 {
      if [ x"$PSPP_TEST_NO_CLEANUP" != x ] ; then return ; fi
+     cd /
      rm -rf $TEMPDIR
 }
 
index 7bfced01daabcadc17e036219f2fce26ac7a436a..914de328e14d42d565769f11889948cc6aa10b64 100755 (executable)
@@ -15,6 +15,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index a280988082a5128d25f89f938cc15cdb952534f1..f1ff5050f6db8630e097d361704c37613d067cfe 100755 (executable)
@@ -15,8 +15,8 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
-     :
 }
 
 
@@ -1298,7 +1298,6 @@ set mxerr 1000.' > $TEMPDIR/expr-opt.stat
 sed < $TEMPDIR/expr-list >> $TEMPDIR/expr-opt.stat \
        -e 's#^\(\(.*\); \)*\(.*\) => .*$#DEBUG EVALUATE\2/\3.#'
 if [ $? -ne 0 ] ; then no_result ; fi
-cp $TEMPDIR/expr-opt.stat ~/foo
 
 activity="run optimizing program"
 $SUPERVISOR $here/../src/pspp --testing-mode -o raw-ascii \
index 9c1ed925c688e013c1ccd2e22aa1a385f8eb7c88..8954338ed96a35b75212896491f3393a73b66aa2 100755 (executable)
@@ -19,6 +19,7 @@ cleanup()
         echo NOT removing directory $TEMPDIR
        return ; 
      fi
+     cd /
      rm -rf $TEMPDIR
 }
 
index d67a9c4cd52e3b68b5869f332f6efec413148185..0d32df42c58a9faf76658e058a791684eec58a58 100755 (executable)
@@ -15,6 +15,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index 8dc563be8496c6924bbaa2c9256b4655c70859cb..07f7c31b1250164733cc23def44836ec0c474a67 100755 (executable)
@@ -15,6 +15,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index c86e06040275d68722cf0cf33dacfe06bd6677b9..8ce119e0975d1732b21bb189d8dd9c771d679ac9 100755 (executable)
@@ -15,6 +15,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index 8588c761175d405b95c0e70b32ac1be1f3040342..16c6d3aecaae41cfaf0478a231db1cf40b85dc3f 100755 (executable)
@@ -16,6 +16,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index ae8bc5a0c9d4f72aa5b70057f171cb14b073010d..77fa374cfbb9f4a62639cb9f8478135bcee8638e 100755 (executable)
@@ -15,6 +15,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }
 
index 8c98bb638e01753dafba22dda6814fb2260b29af..0c6806ab027c19f463344f95d37be9e78185c169 100755 (executable)
@@ -15,6 +15,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
      :
 }
index 7cea4f24415278d757c163a2e6b14b188c7f7925..fb2ac6dc138972ad4f64d6386825ceeb8d45d814 100755 (executable)
@@ -15,6 +15,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
      :
 }
index c9858bdc61e78dcc513c3686ef0c3f100601265b..b3d997db478b501267fae0cc76c700bf0cb9f49f 100755 (executable)
@@ -16,6 +16,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
      :
 }
index 13b24c29913f9dfcaf994a2a08e5c62a17fb2858..083834968441f86353770b97d3ce9ef26e9b8628 100755 (executable)
@@ -16,6 +16,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
      :
 }
index a3a6df0e28473a0e8e43306ae7251ac5cab4a139..f471dcff82a23d8e572f155c2dde4cfb7f3f3950 100755 (executable)
@@ -15,6 +15,7 @@ export STAT_CONFIG_PATH
 
 cleanup()
 {
+     cd /
      rm -rf $TEMPDIR
 }