diff options
Diffstat (limited to 'testsuite/dd')
-rw-r--r-- | testsuite/dd/dd-accepts-if | 2 | ||||
-rw-r--r-- | testsuite/dd/dd-accepts-of | 2 | ||||
-rw-r--r-- | testsuite/dd/dd-copies-from-standard-input-to-standard-output | 1 | ||||
-rw-r--r-- | testsuite/dd/dd-prints-count-to-standard-error | 2 |
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 @@ | |||
1 | echo I WANT >foo | ||
2 | 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 000000000..84405e622 --- /dev/null +++ b/testsuite/dd/dd-accepts-of | |||
@@ -0,0 +1,2 @@ | |||
1 | echo I WANT | busybox dd of=foo 2>/dev/null | ||
2 | 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 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 @@ | |||
1 | echo I WANT | busybox dd of=foo >/dev/null 2>bar | ||
2 | grep -q records bar | ||