aboutsummaryrefslogtreecommitdiff
path: root/testsuite/dd
diff options
context:
space:
mode:
authorkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-10-30 23:11:20 +0000
committerkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-10-30 23:11:20 +0000
commit6fd181afd97102bb355120d6a384a9fd5de932c8 (patch)
treee258582c0f14f06750e480e2c244260e79860fd0 /testsuite/dd
parent99f25757d3ddfdbe764f04ee037b19b748b7caec (diff)
downloadbusybox-w32-6fd181afd97102bb355120d6a384a9fd5de932c8.tar.gz
busybox-w32-6fd181afd97102bb355120d6a384a9fd5de932c8.tar.bz2
busybox-w32-6fd181afd97102bb355120d6a384a9fd5de932c8.zip
Merge test suite.
git-svn-id: svn://busybox.net/trunk/busybox@3603 69ca8d6d-28ef-0310-b511-8ec308f3f277
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 000000000..03d1af853
--- /dev/null
+++ b/testsuite/dd/dd-accepts-if
@@ -0,0 +1,2 @@
1echo I WANT >foo
2test "$(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 000000000..84405e622
--- /dev/null
+++ b/testsuite/dd/dd-accepts-of
@@ -0,0 +1,2 @@
1echo I WANT | busybox dd of=foo 2>/dev/null
2echo 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 000000000..d890eb04c
--- /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 000000000..2187dc027
--- /dev/null
+++ b/testsuite/dd/dd-prints-count-to-standard-error
@@ -0,0 +1,2 @@
1echo I WANT | busybox dd of=foo >/dev/null 2>bar
2grep -q records bar