Merge test suite.

This commit is contained in:
Matt Kraai
2001-10-30 23:11:20 +00:00
parent 999623e973
commit 3889078dbe
73 changed files with 660 additions and 0 deletions

View File

@@ -0,0 +1 @@
test "$(echo foo | busybox sed -e s/foo/bar/ -e s/bar/baz/)" = baz

View File

@@ -0,0 +1 @@
test "$(echo fu/bar | busybox sed -e 's/[/]//')" = fubar

View File

@@ -0,0 +1 @@
test `echo | busybox sed -e 's/$/@/'` = @

View 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

View 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 -