aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-09-14 11:10:08 +0000
committerbug1 <bug1@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-09-14 11:10:08 +0000
commit3382611340ba71891f84f87fc38af326f309b268 (patch)
tree0002e49ed11fe960c3762931a0917cf79f8ee068
parent3a8e3b7ae3d7de2f6a854ba10b4eb0ec17ae4bfd (diff)
downloadbusybox-w32-3382611340ba71891f84f87fc38af326f309b268.tar.gz
busybox-w32-3382611340ba71891f84f87fc38af326f309b268.tar.bz2
busybox-w32-3382611340ba71891f84f87fc38af326f309b268.zip
Update sed branch tests
git-svn-id: svn://busybox.net/trunk/busybox@7506 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--testsuite/sed/sed-branch16
-rw-r--r--testsuite/sed/sed-branch-conditional15
-rw-r--r--testsuite/sed/sed-branch-no-label1
3 files changed, 17 insertions, 15 deletions
diff --git a/testsuite/sed/sed-branch b/testsuite/sed/sed-branch
index 47d0a5ff2..4167569ad 100644
--- a/testsuite/sed/sed-branch
+++ b/testsuite/sed/sed-branch
@@ -1,15 +1 @@
1busybox sed 's/a/1/;t one;p;: one;p'>output <<EOF test "$(echo foo | busybox sed 'b one;p;: one')" = foo
2a
3b
4c
5EOF
6cmp -s output - <<EOF
71
81
9b
10b
11b
12c
13c
14c
15EOF
diff --git a/testsuite/sed/sed-branch-conditional b/testsuite/sed/sed-branch-conditional
new file mode 100644
index 000000000..47d0a5ff2
--- /dev/null
+++ b/testsuite/sed/sed-branch-conditional
@@ -0,0 +1,15 @@
1busybox sed 's/a/1/;t one;p;: one;p'>output <<EOF
2a
3b
4c
5EOF
6cmp -s output - <<EOF
71
81
9b
10b
11b
12c
13c
14c
15EOF
diff --git a/testsuite/sed/sed-branch-no-label b/testsuite/sed/sed-branch-no-label
new file mode 100644
index 000000000..446c1bcd9
--- /dev/null
+++ b/testsuite/sed/sed-branch-no-label
@@ -0,0 +1 @@
test "$(echo foo | busybox sed 'b;p')" = foo