/[pspp]/pspp/tests/bugs/get.sh
ViewVC logotype

Diff of /pspp/tests/bugs/get.sh

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

revision 1.2 by jmd, Fri Jan 21 11:59:40 2005 UTC revision 1.3 by jmd, Wed Apr 13 10:09:59 2005 UTC
# Line 1  Line 1 
1  #!/bin/sh  #!/bin/sh
2    
3  # This program tests for a bug which caused  # This program tests for a bug which caused
4  # the second procedure after GET FILE to corrupt it's output  # the second procedure after GET FILE to corrupt its output
5    
6    
7  TEMPDIR=/tmp/pspp-tst-$$  TEMPDIR=/tmp/pspp-tst-$$
# Line 49  mkdir -p $TEMPDIR Line 49  mkdir -p $TEMPDIR
49  cd $TEMPDIR  cd $TEMPDIR
50    
51  activity="create program"  activity="create program"
52  cat > $TEMPDIR/prog.sps <<EOF  cat > $TESTFILE <<EOF
53  DATA LIST LIST NOTABLE /location * editor * shell * freq * .  DATA LIST LIST NOTABLE /location * editor * shell * freq * .
54  BEGIN DATA.  BEGIN DATA.
55      1.00     1.00    1.0     2.00      1.00     1.00    1.0     2.00
# Line 75  LIST. Line 75  LIST.
75  EOF  EOF
76  if [ $? -ne 0 ] ; then no_result ; fi  if [ $? -ne 0 ] ; then no_result ; fi
77    
78    
79  activity="run program"  activity="run program"
80  $SUPERVISOR $here/../src/pspp -o raw-ascii $TEMPDIR/prog.sps  $SUPERVISOR $here/../src/pspp -o raw-ascii $TESTFILE
81  if [ $? -ne 0 ] ; then no_result ; fi  if [ $? -ne 0 ] ; then no_result ; fi
82    
83    
84    
85    
86  activity="compare output"  activity="compare output"
87  diff -b -B -w $TEMPDIR/pspp.list - << EOF  diff -b -B -w $TEMPDIR/pspp.list - << EOF
88  LOCATION   EDITOR    SHELL     FREQ  LOCATION   EDITOR    SHELL     FREQ

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

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