Merge test suite.
This commit is contained in:
1
testsuite/sed/sed-chains-substs
Normal file
1
testsuite/sed/sed-chains-substs
Normal file
@@ -0,0 +1 @@
|
||||
test "$(echo foo | busybox sed -e s/foo/bar/ -e s/bar/baz/)" = baz
|
1
testsuite/sed/sed-handles-embedded-slashes
Normal file
1
testsuite/sed/sed-handles-embedded-slashes
Normal file
@@ -0,0 +1 @@
|
||||
test "$(echo fu/bar | busybox sed -e 's/[/]//')" = fubar
|
1
testsuite/sed/sed-handles-empty-lines
Normal file
1
testsuite/sed/sed-handles-empty-lines
Normal file
@@ -0,0 +1 @@
|
||||
test `echo | busybox sed -e 's/$/@/'` = @
|
6
testsuite/sed/sed-handles-unsatisfied-backrefs
Normal file
6
testsuite/sed/sed-handles-unsatisfied-backrefs
Normal file
@@ -0,0 +1,6 @@
|
||||
busybox sed -e 's/.*root=/\1/' >output <<EOF
|
||||
BOOT_IMAGE=vmlinuz root=/dev/hda5 initrd=init1
|
||||
EOF
|
||||
cmp -s output - <<EOF
|
||||
/dev/hda5 initrd=init1
|
||||
EOF
|
4
testsuite/sed/sed-prints-line-once-for-multiple-substs
Normal file
4
testsuite/sed/sed-prints-line-once-for-multiple-substs
Normal file
@@ -0,0 +1,4 @@
|
||||
busybox sed -e s/1/2/g -e s/3/4/g >output <<EOF
|
||||
1
|
||||
EOF
|
||||
echo 2 | cmp -s output -
|
Reference in New Issue
Block a user