/[pspp]/pspp/tests/command/import-export.sh
ViewVC logotype

Diff of /pspp/tests/command/import-export.sh

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

revision 1.6 by blp, Sun Jul 31 04:55:59 2005 UTC revision 1.7 by blp, Sun Aug 21 07:21:06 2005 UTC
# Line 50  cd $TEMPDIR Line 50  cd $TEMPDIR
50    
51  activity="create program"  activity="create program"
52  cat > $TESTFILE <<EOF  cat > $TESTFILE <<EOF
53  DATA LIST LIST /X * Y *.  DATA LIST LIST NOTABLE /X Y.
54  BEGIN DATA.  BEGIN DATA.
55  1 2  1 2
56  3 4  3 4
# Line 58  BEGIN DATA. Line 58  BEGIN DATA.
58  END DATA.  END DATA.
59    
60  EXPORT /OUTFILE='wiz.por'.  EXPORT /OUTFILE='wiz.por'.
   
 LIST.  
   
61  IMPORT /FILE='wiz.por'.  IMPORT /FILE='wiz.por'.
62    
63  LIST.  LIST.
# Line 74  if [ $? -ne 0 ] ; then no_result ; fi Line 71  if [ $? -ne 0 ] ; then no_result ; fi
71    
72  activity="compare output"  activity="compare output"
73  diff -b -B $TEMPDIR/pspp.list - << EOF  diff -b -B $TEMPDIR/pspp.list - << EOF
 1.1 DATA LIST.  Reading free-form data from the command file.  
 +--------+------+  
 |Variable|Format|  
 #========#======#  
 |X       |F8.0  |  
 |Y       |F8.0  |  
 +--------+------+  
   
74         X        Y         X        Y
75  -------- --------  -------- --------
76      1.00     2.00      1.00     2.00
77      3.00     4.00      3.00     4.00
78      5.00     6.00      5.00     6.00
   
        X        Y  
 -------- --------  
     1.00     2.00  
     3.00     4.00  
     5.00     6.00  
   
79  EOF  EOF
80  if [ $? -ne 0 ] ; then fail ; fi  if [ $? -ne 0 ] ; then fail ; fi
81    

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