/[pspp]/pspp/tests/bugs/big-input-2.sh
ViewVC logotype

Diff of /pspp/tests/bugs/big-input-2.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by blp, Tue Jul 26 03:51:29 2005 UTC revision 1.7 by blp, Sun Jul 31 04:55:58 2005 UTC
# Line 19  export STAT_CONFIG_PATH Line 19  export STAT_CONFIG_PATH
19    
20  cleanup()  cleanup()
21  {  {
22         cd /
23       rm -rf $TEMPDIR       rm -rf $TEMPDIR
24  }  }
25    
# Line 56  if [ $? -ne 0 ] ; then no_result ; fi Line 57  if [ $? -ne 0 ] ; then no_result ; fi
57    
58  printf "Creating input data.  Please wait"  printf "Creating input data.  Please wait"
59  activity="create data"  activity="create data"
60  ( while true ; do  $PERL -e 'print "AB12\n" foreach 1...100000;
61          echo AB12;            print "AB04\n" foreach 1...100000;' > $TEMPDIR/large.dat
 done )  | head -100000 >> $TEMPDIR/large.dat  
62  if [ $? -ne 0 ] ; then no_result ; fi  if [ $? -ne 0 ] ; then no_result ; fi
63  printf '.'  printf ".\n";
 ( while true ; do  
         echo AB04;  
 done )  | head -100000 >> $TEMPDIR/large.dat  
 if [ $? -ne 0 ] ; then no_result ; fi  
 printf "\n";  
64    
65  activity="create program"  activity="create program"
66  cat > $TESTFILE <<EOF  cat > $TESTFILE <<EOF
# Line 85  if [ $? -ne 0 ] ; then fail ; fi Line 80  if [ $? -ne 0 ] ; then fail ; fi
80    
81  activity="appending to data"  activity="appending to data"
82  # Put another 100,000 cases into large.dat  # Put another 100,000 cases into large.dat
83  ( while true ; do  $PERL -e 'print "AB04\nAB12\n" foreach 1...25000' >> $TEMPDIR/large.dat
         echo AB04  
         echo AB12  
 done )  | head -50000 >> $TEMPDIR/large.dat  
84  if [ $? -ne 0 ] ; then no_result ; fi  if [ $? -ne 0 ] ; then no_result ; fi
85    
86  activity="run program"  activity="run program"

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26