about summary refs log tree commit diff
path: root/e2e-tests/tools/pass-stdin.scm
diff options
context:
space:
mode:
Diffstat (limited to 'e2e-tests/tools/pass-stdin.scm')
-rw-r--r--e2e-tests/tools/pass-stdin.scm8
1 files changed, 8 insertions, 0 deletions
diff --git a/e2e-tests/tools/pass-stdin.scm b/e2e-tests/tools/pass-stdin.scm
new file mode 100644
index 0000000..4ba251c
--- /dev/null
+++ b/e2e-tests/tools/pass-stdin.scm
@@ -0,0 +1,8 @@
+(define count-bytes
+  (command #:inputs (file #:type File)
+           #:run "wc" "-c"
+           #:outputs (bytes #:type stdout)
+           #:stdin file))
+
+(workflow ((file #:type File))
+  (count-bytes #:file file))