diff options
author | Glenn L McGrath | 2003-09-14 09:38:24 +0000 |
---|---|---|
committer | Glenn L McGrath | 2003-09-14 09:38:24 +0000 |
commit | 8a0b59fb82790e6eea25ed8048b18670c0ea6e79 (patch) | |
tree | 1b96f2034df077a23b9d9b251e3b040770bcbd92 /testsuite/sed | |
parent | edc388cf4ef381282d13e2873694e3c9032214e4 (diff) | |
download | busybox-8a0b59fb82790e6eea25ed8048b18670c0ea6e79.zip busybox-8a0b59fb82790e6eea25ed8048b18670c0ea6e79.tar.gz |
Add two new tests, sed-recurses-properly should always work
Diffstat (limited to 'testsuite/sed')
-rw-r--r-- | testsuite/sed/sed-branch | 15 | ||||
-rw-r--r-- | testsuite/sed/sed-chains-substs2 | 1 | ||||
-rw-r--r-- | testsuite/sed/sed-recurses-properly | 1 |
3 files changed, 16 insertions, 1 deletions
diff --git a/testsuite/sed/sed-branch b/testsuite/sed/sed-branch new file mode 100644 index 0000000..47d0a5f --- /dev/null +++ b/testsuite/sed/sed-branch @@ -0,0 +1,15 @@ +busybox sed 's/a/1/;t one;p;: one;p'>output <<EOF +a +b +c +EOF +cmp -s output - <<EOF +1 +1 +b +b +b +c +c +c +EOF diff --git a/testsuite/sed/sed-chains-substs2 b/testsuite/sed/sed-chains-substs2 new file mode 100644 index 0000000..90568f6 --- /dev/null +++ b/testsuite/sed/sed-chains-substs2 @@ -0,0 +1 @@ +test x"$(echo foo | busybox -n sed -e s/foo/bar/ -e s/foo/baz/)" = x diff --git a/testsuite/sed/sed-recurses-properly b/testsuite/sed/sed-recurses-properly index bb70f4f..a02667b 100644 --- a/testsuite/sed/sed-recurses-properly +++ b/testsuite/sed/sed-recurses-properly @@ -1,2 +1 @@ -# XFAIL test "`echo '12345' | busybox sed -e 's/[[:space:]]*/,/g')` = ',1,2,3,4,5,'" |