X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fxforms%2Frecode.sh;h=ae29cc4d1d48cc0bf962facc9072cc2ceb93628b;hb=b5c82cc9aabe7e641011130240ae1b2e84348e23;hp=9a4da5179ff1e09be8d02a54ca97afd07c90c31c;hpb=99a5b68989da0422d7bcfa5992e2670c0f284a49;p=pspp-builds.git diff --git a/tests/xforms/recode.sh b/tests/xforms/recode.sh index 9a4da517..ae29cc4d 100755 --- a/tests/xforms/recode.sh +++ b/tests/xforms/recode.sh @@ -23,6 +23,10 @@ export LANG cleanup() { + if [ x"$PSPP_TEST_NO_CLEANUP" != x ] ; then + echo "NOT cleaning $TEMPDIR" + return ; + fi cd / rm -rf $TEMPDIR } @@ -120,15 +124,17 @@ RECODE x (LOWEST THRU 5=1)(ELSE=COPY) INTO cx5. RECODE x (4 THRU HIGHEST=2)(ELSE=COPY) INTO cx6. RECODE x (LO THRU HI=3)(ELSE=COPY) INTO cx7. RECODE x (SYSMIS=4)(ELSE=COPY) INTO cx8. -LIST x cx0 TO cx8. +RECODE x (5=COPY)(ELSE=22) INTO cx9. +LIST x cx0 TO cx9. * String to string, with INTO, without COPY. -STRING s0 TO s2 (A4)/t0 TO t3 (A10). +STRING s0 TO s3 (A4)/t0 TO t3 (A10). RECODE s t ('a'='b')('ab'='bc') INTO s0 t0. RECODE s t ('abcd'='xyzw') INTO s1 t1. RECODE s t ('abc'='def')(ELSE='xyz') INTO s2 t2. RECODE t ('a'='b')('abcdefghi'='xyz')('abcdefghij'='jklmnopqr') INTO t3. -LIST s t s0 TO s2 t0 TO t3. +RECODE s (MISSING='gone') INTO s3. +LIST s t s0 TO s3 t0 TO t3. * String to string, with INTO, with COPY. STRING cs0 TO cs2 (A4)/ct0 TO ct3 (A10). @@ -156,7 +162,7 @@ EOF if [ $? -ne 0 ] ; then no_result ; fi activity="run program" -$SUPERVISOR $PSPP -o raw-ascii $TESTFILE +$SUPERVISOR $PSPP --testing-mode $TESTFILE if [ $? -ne 0 ] ; then no_result ; fi activity="test output" @@ -164,97 +170,96 @@ perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list diff -bu $TEMPDIR/pspp.list - <