diff options
author | Glenn L McGrath <bug1@ihug.co.nz> | 2003-09-14 11:10:08 +0000 |
---|---|---|
committer | Glenn L McGrath <bug1@ihug.co.nz> | 2003-09-14 11:10:08 +0000 |
commit | 7bf8f5bc5e2b4e506936f482a5b55f4e0d044c68 (patch) | |
tree | 0002e49ed11fe960c3762931a0917cf79f8ee068 | |
parent | 8a0b59fb82790e6eea25ed8048b18670c0ea6e79 (diff) | |
download | busybox-w32-7bf8f5bc5e2b4e506936f482a5b55f4e0d044c68.tar.gz busybox-w32-7bf8f5bc5e2b4e506936f482a5b55f4e0d044c68.tar.bz2 busybox-w32-7bf8f5bc5e2b4e506936f482a5b55f4e0d044c68.zip |
Update sed branch tests
-rw-r--r-- | testsuite/sed/sed-branch | 16 | ||||
-rw-r--r-- | testsuite/sed/sed-branch-conditional | 15 | ||||
-rw-r--r-- | testsuite/sed/sed-branch-no-label | 1 |
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 @@ | |||
1 | busybox sed 's/a/1/;t one;p;: one;p'>output <<EOF | test "$(echo foo | busybox sed 'b one;p;: one')" = foo | |
2 | a | ||
3 | b | ||
4 | c | ||
5 | EOF | ||
6 | cmp -s output - <<EOF | ||
7 | 1 | ||
8 | 1 | ||
9 | b | ||
10 | b | ||
11 | b | ||
12 | c | ||
13 | c | ||
14 | c | ||
15 | EOF | ||
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 @@ | |||
1 | busybox sed 's/a/1/;t one;p;: one;p'>output <<EOF | ||
2 | a | ||
3 | b | ||
4 | c | ||
5 | EOF | ||
6 | cmp -s output - <<EOF | ||
7 | 1 | ||
8 | 1 | ||
9 | b | ||
10 | b | ||
11 | b | ||
12 | c | ||
13 | c | ||
14 | c | ||
15 | EOF | ||
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 | |||