diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-11-13 16:48:10 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-11-13 16:48:10 +0000 |
commit | 40276648ab31822068c3408ae43a5ecaafd03a5c (patch) | |
tree | a10fa0510807ec1d784aae112c512ef40b1922ac /testsuite | |
parent | 6df9e3c9a38095c0c56728a81926aca53d28733f (diff) | |
download | busybox-w32-40276648ab31822068c3408ae43a5ecaafd03a5c.tar.gz busybox-w32-40276648ab31822068c3408ae43a5ecaafd03a5c.tar.bz2 busybox-w32-40276648ab31822068c3408ae43a5ecaafd03a5c.zip |
sed: support GNU-like '\t' escape in substitutions
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/README | 4 | ||||
-rwxr-xr-x | testsuite/sed.tests | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/testsuite/README b/testsuite/README index 377f20ef8..a44846dbb 100644 --- a/testsuite/README +++ b/testsuite/README | |||
@@ -4,7 +4,9 @@ Update: doesn't work as described. Try "make check" from parent dir... | |||
4 | To run the test suite, change to this directory and run "./runtest". It will | 4 | To run the test suite, change to this directory and run "./runtest". It will |
5 | run all of the test cases, and list those with unexpected outcomes. Adding the | 5 | run all of the test cases, and list those with unexpected outcomes. Adding the |
6 | -v option will cause it to show expected outcomes as well. To only run the test | 6 | -v option will cause it to show expected outcomes as well. To only run the test |
7 | cases for particular applets, specify them as parameters to runtest. | 7 | cases for particular applets: |
8 | |||
9 | ./runtest <applet1> <applet2>... | ||
8 | 10 | ||
9 | The test cases for an applet reside in the subdirectory of the applet name. The | 11 | The test cases for an applet reside in the subdirectory of the applet name. The |
10 | name of the test case should be the assertion that is tested. The test case | 12 | name of the test case should be the assertion that is tested. The test case |
diff --git a/testsuite/sed.tests b/testsuite/sed.tests index a054de6d7..7471ed5fc 100755 --- a/testsuite/sed.tests +++ b/testsuite/sed.tests | |||
@@ -57,6 +57,7 @@ testing "sed s arbitrary delimiter" "sed -e 's woo boing '" "boing\n" "" "woo\n" | |||
57 | testing "sed s chains" "sed -e s/foo/bar/ -e s/bar/baz/" "baz\n" "" "foo\n" | 57 | testing "sed s chains" "sed -e s/foo/bar/ -e s/bar/baz/" "baz\n" "" "foo\n" |
58 | testing "sed s chains2" "sed -e s/foo/bar/ -e s/baz/nee/" "bar\n" "" "foo\n" | 58 | testing "sed s chains2" "sed -e s/foo/bar/ -e s/baz/nee/" "bar\n" "" "foo\n" |
59 | testing "sed s [delimiter]" "sed -e 's@[@]@@'" "onetwo" "" "one@two" | 59 | testing "sed s [delimiter]" "sed -e 's@[@]@@'" "onetwo" "" "one@two" |
60 | testing "sed s with \\t (GNU ext)" "sed 's/\t/ /'" "one two" "" "one\ttwo" | ||
60 | 61 | ||
61 | # branch | 62 | # branch |
62 | testing "sed b (branch)" "sed -e 'b one;p;: one'" "foo\n" "" "foo\n" | 63 | testing "sed b (branch)" "sed -e 'b one;p;: one'" "foo\n" "" "foo\n" |