about summary refs log tree commit diff
path: root/e2e-tests/tools/capture-output-file.scm
diff options
context:
space:
mode:
Diffstat (limited to 'e2e-tests/tools/capture-output-file.scm')
-rw-r--r--e2e-tests/tools/capture-output-file.scm9
1 files changed, 9 insertions, 0 deletions
diff --git a/e2e-tests/tools/capture-output-file.scm b/e2e-tests/tools/capture-output-file.scm
new file mode 100644
index 0000000..80b4654
--- /dev/null
+++ b/e2e-tests/tools/capture-output-file.scm
@@ -0,0 +1,9 @@
+(define extract
+  (command #:inputs (archive #:type File)
+           #:run "tar" "--extract" "--file" archive
+           #:outputs (extracted_file
+                      #:type File
+                      #:binding ((glob . "hello.txt")))))
+
+(workflow ((archive #:type File))
+  (extract #:archive archive))