mirror of
https://github.com/sheumann/hush.git
synced 2024-12-25 18:33:06 +00:00
Add two new tests, sed-recurses-properly should always work
This commit is contained in:
parent
edc388cf4e
commit
8a0b59fb82
15
testsuite/sed/sed-branch
Normal file
15
testsuite/sed/sed-branch
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-chains-substs2
Normal file
1
testsuite/sed/sed-chains-substs2
Normal file
@ -0,0 +1 @@
|
||||
test x"$(echo foo | busybox -n sed -e s/foo/bar/ -e s/foo/baz/)" = x
|
@ -1,2 +1 @@
|
||||
# XFAIL
|
||||
test "`echo '12345' | busybox sed -e 's/[[:space:]]*/,/g')` = ',1,2,3,4,5,'"
|
||||
|
Loading…
Reference in New Issue
Block a user