summaryrefslogtreecommitdiff
path: root/testsuite/dd
diff options
context:
space:
mode:
authorMatt Kraai2001-10-30 23:11:20 +0000
committerMatt Kraai2001-10-30 23:11:20 +0000
commit3889078dbe09a9d85b359e9c0c0c225e0bbea343 (patch)
treee258582c0f14f06750e480e2c244260e79860fd0 /testsuite/dd
parent999623e9736d21177d1f437679b334e0347a6e0f (diff)
downloadbusybox-3889078dbe09a9d85b359e9c0c0c225e0bbea343.zip
busybox-3889078dbe09a9d85b359e9c0c0c225e0bbea343.tar.gz
Merge test suite.
Diffstat (limited to 'testsuite/dd')
-rw-r--r--testsuite/dd/dd-accepts-if2
-rw-r--r--testsuite/dd/dd-accepts-of2
-rw-r--r--testsuite/dd/dd-copies-from-standard-input-to-standard-output1
-rw-r--r--testsuite/dd/dd-prints-count-to-standard-error2
4 files changed, 7 insertions, 0 deletions
diff --git a/testsuite/dd/dd-accepts-if b/testsuite/dd/dd-accepts-if
new file mode 100644
index 0000000..03d1af8
--- /dev/null
+++ b/testsuite/dd/dd-accepts-if
@@ -0,0 +1,2 @@
+echo I WANT >foo
+test "$(busybox dd if=foo 2>/dev/null)" = "I WANT"
diff --git a/testsuite/dd/dd-accepts-of b/testsuite/dd/dd-accepts-of
new file mode 100644
index 0000000..84405e6
--- /dev/null
+++ b/testsuite/dd/dd-accepts-of
@@ -0,0 +1,2 @@
+echo I WANT | busybox dd of=foo 2>/dev/null
+echo I WANT | cmp foo -
diff --git a/testsuite/dd/dd-copies-from-standard-input-to-standard-output b/testsuite/dd/dd-copies-from-standard-input-to-standard-output
new file mode 100644
index 0000000..d890eb0
--- /dev/null
+++ b/testsuite/dd/dd-copies-from-standard-input-to-standard-output
@@ -0,0 +1 @@
+test "$(echo I WANT | busybox dd 2>/dev/null)" = "I WANT"
diff --git a/testsuite/dd/dd-prints-count-to-standard-error b/testsuite/dd/dd-prints-count-to-standard-error
new file mode 100644
index 0000000..2187dc0
--- /dev/null
+++ b/testsuite/dd/dd-prints-count-to-standard-error
@@ -0,0 +1,2 @@
+echo I WANT | busybox dd of=foo >/dev/null 2>bar
+grep -q records bar