Magellan Linux

Diff of /trunk/mkinitrd-magellan/busybox/testsuite/sed.tests

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

revision 992 by niro, Sun May 30 11:43:19 2010 UTC revision 1123 by niro, Wed Aug 18 21:56:57 2010 UTC
# Line 110  testing "sed embedded NUL" "sed -e 's/wo Line 110  testing "sed embedded NUL" "sed -e 's/wo
110  testing "sed embedded NUL g" "sed -e 's/woo/bang/g'" "bang\0bang\0" "" \  testing "sed embedded NUL g" "sed -e 's/woo/bang/g'" "bang\0bang\0" "" \
111   "woo\0woo\0"   "woo\0woo\0"
112  test x"$SKIP_KNOWN_BUGS" = x"" && {  test x"$SKIP_KNOWN_BUGS" = x"" && {
113  echo -e "/woo/a he\0llo" > sed.commands  $ECHO -e "/woo/a he\0llo" > sed.commands
114  testing "sed NUL in command" "sed -f sed.commands" "woo\nhe\0llo\n" "" "woo"  testing "sed NUL in command" "sed -f sed.commands" "woo\nhe\0llo\n" "" "woo"
115  rm sed.commands  rm sed.commands
116  }  }
# Line 153  testing "sed clusternewline" \ Line 153  testing "sed clusternewline" \
153   "one\none\n111\n222\ntwo\ntwo" "one" "two"   "one\none\n111\n222\ntwo\ntwo" "one" "two"
154  }  }
155  testing "sed subst+write" \  testing "sed subst+write" \
156   "sed -e 's/i/z/' -e 'woutputw' input -; echo -n X; cat outputw" \   "sed -e 's/i/z/' -e 'woutputw' input -; $ECHO -n X; cat outputw" \
157   "thzngy\nagaznXthzngy\nagazn" "thingy" "again"   "thzngy\nagaznXthzngy\nagazn" "thingy" "again"
158  rm outputw  rm outputw
159  testing "sed trailing NUL" \  testing "sed trailing NUL" \
# Line 270  testing "sed a cmd ended by double backs Line 270  testing "sed a cmd ended by double backs
270   | two \\   | two \\
271  '  '
272    
273    # fisrt three lines are deleted; 4th line is matched and printed by "2,3" and by "4" ranges
274    testing "sed with N skipping lines past ranges on next cmds" \
275     "sed -n '1{N;N;d};1p;2,3p;3p;4p'" \
276     "4\n4\n" "" "1\n2\n3\n4\n"
277    
278  # testing "description" "arguments" "result" "infile" "stdin"  # testing "description" "arguments" "result" "infile" "stdin"
279    
280  exit $FAILCOUNT  exit $FAILCOUNT

Legend:
Removed from v.992  
changed lines
  Added in v.1123