Changeset 3232 in MondoRescue for branches/3.2/mindi-busybox/testsuite/sed.tests
- Timestamp:
- Jan 1, 2014, 12:47:38 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi-busybox/testsuite/sed.tests
r2725 r3232 7 7 . ./testing.sh 8 8 9 # testing "description" " arguments" "result" "infile" "stdin"9 # testing "description" "commands" "result" "infile" "stdin" 10 10 11 11 # Corner cases … … 49 49 # substitutions 50 50 testing "sed -n" "sed -n -e s/foo/bar/ -e s/bar/baz/" "" "" "foo\n" 51 testing "sed with empty match" "sed 's/z*//g'" "string\n" "" "string\n" 51 52 testing "sed s//p" "sed -e s/foo/bar/p -e s/bar/baz/p" "bar\nbaz\nbaz\n" \ 52 53 "" "foo\n" 53 54 testing "sed -n s//p" "sed -ne s/abc/def/p" "def\n" "" "abc\n" 54 test x"$SKIP_KNOWN_BUGS" = x"" && {55 55 testing "sed s//g (exhaustive)" "sed -e 's/[[:space:]]*/,/g'" ",1,2,3,4,5,\n" \ 56 56 "" "12345\n" 57 }58 57 testing "sed s arbitrary delimiter" "sed -e 's woo boing '" "boing\n" "" "woo\n" 59 58 testing "sed s chains" "sed -e s/foo/bar/ -e s/bar/baz/" "baz\n" "" "foo\n" … … 226 225 # "" "12345" 227 226 228 # testing "description" " arguments" "result" "infile" "stdin"227 # testing "description" "commands" "result" "infile" "stdin" 229 228 230 229 testing "sed n command must reset 'substituted' bit" \ … … 288 287 "bar\nbar\n" "foo\n" "" 289 288 290 291 # testing "description" "arguments" "result" "infile" "stdin" 289 testing "sed understands \r" \ 290 "sed 's/r/\r/'" \ 291 "\rrr\n" "" "rrr\n" 292 293 testing "sed -i finishes ranges correctly" \ 294 "sed '1,2d' -i input; echo \$?; cat input" \ 295 "0\n3\n4\n" "1\n2\n3\n4\n" "" 296 297 testing "sed zero chars match/replace advances correctly 1" \ 298 "sed 's/l*/@/g'" \ 299 "@h@e@o@\n" "" "helllo\n" 300 301 testing "sed zero chars match/replace advances correctly 2" \ 302 "sed 's [^ .]* x g'" \ 303 "x x.x\n" "" " a.b\n" 304 305 testing "sed zero chars match/replace logic must not falsely trigger here 1" \ 306 "sed 's/a/A/g'" \ 307 "_AAA1AA\n" "" "_aaa1aa\n" 308 309 testing "sed zero chars match/replace logic must not falsely trigger here 2" \ 310 "sed 's/ *$/_/g'" \ 311 "qwerty_\n" "" "qwerty\n" 312 313 # testing "description" "commands" "result" "infile" "stdin" 292 314 293 315 exit $FAILCOUNT
Note:
See TracChangeset
for help on using the changeset viewer.