Update sed branch tests
This commit is contained in:
parent
8a0b59fb82
commit
7bf8f5bc5e
@ -1,15 +1 @@
|
|||||||
busybox sed 's/a/1/;t one;p;: one;p'>output <<EOF
|
test "$(echo foo | busybox sed 'b one;p;: one')" = foo
|
||||||
a
|
|
||||||
b
|
|
||||||
c
|
|
||||||
EOF
|
|
||||||
cmp -s output - <<EOF
|
|
||||||
1
|
|
||||||
1
|
|
||||||
b
|
|
||||||
b
|
|
||||||
b
|
|
||||||
c
|
|
||||||
c
|
|
||||||
c
|
|
||||||
EOF
|
|
||||||
|
15
testsuite/sed/sed-branch-conditional
Normal file
15
testsuite/sed/sed-branch-conditional
Normal file
@ -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
|
1
testsuite/sed/sed-branch-no-label
Normal file
1
testsuite/sed/sed-branch-no-label
Normal file
@ -0,0 +1 @@
|
|||||||
|
test "$(echo foo | busybox sed 'b;p')" = foo
|
Loading…
x
Reference in New Issue
Block a user