X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Fxforms%2Frecode.sh;h=ae29cc4d1d48cc0bf962facc9072cc2ceb93628b;hb=388fb23b17cd58ec28964cca517fcd79dea92197;hp=46586bdba0ec020c30d08e242a023f0f04ea0962;hpb=9aff19b717bcc242e16d04c34f348fd79ebdd685;p=pspp-builds.git diff --git a/tests/xforms/recode.sh b/tests/xforms/recode.sh index 46586bdb..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). @@ -164,97 +170,96 @@ perl -pi -e 's/^\s*$//g' $TEMPDIR/pspp.list diff -bu $TEMPDIR/pspp.list - <