summaryrefslogtreecommitdiff
path: root/test/script/artifact.et
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2025-05-22 21:45:38 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2025-05-24 15:37:06 +0200
commit64669c18992339fa632bfea0bf13691844252777 (patch)
tree65e9d51d5f24e18f22fcb511bbdf9e9aff784a19 /test/script/artifact.et
parent50526acfb2251d1076c3486dceecae08f44d8a64 (diff)
Extract command
Changelog: Added `extract` command to extract artifacts
Diffstat (limited to 'test/script/artifact.et')
-rw-r--r--test/script/artifact.et27
1 files changed, 27 insertions, 0 deletions
diff --git a/test/script/artifact.et b/test/script/artifact.et
new file mode 100644
index 0000000..f1fc74e
--- /dev/null
+++ b/test/script/artifact.et
@@ -0,0 +1,27 @@
+module artifact
+
+asset scripts:
+ path: ../asset/artifact
+
+
+test ExtractArtifact:
+ node n
+ local:
+ spawn on n as p args [ "${scripts.path}/minici.yaml", "run", "generate" ]
+ expect /job-finish generate done/ from p
+
+ local:
+ spawn on n as p args [ "${scripts.path}/minici.yaml", "extract", "generate.first", "extracted" ]
+ local:
+ shell on n as s:
+ cat ./extracted
+ expect /content 1/ from s
+
+ local:
+ spawn on n as p args [ "${scripts.path}/minici.yaml", "extract", "generate.second", "generate.third", "." ]
+ local:
+ shell on n as s:
+ cat ./f2
+ cat ./f3
+ expect /content 2/ from s
+ expect /content 3/ from s