summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/asset/repo/checkout.yaml6
-rw-r--r--test/script/repo.et34
2 files changed, 40 insertions, 0 deletions
diff --git a/test/asset/repo/checkout.yaml b/test/asset/repo/checkout.yaml
index cc06691..05e0e99 100644
--- a/test/asset/repo/checkout.yaml
+++ b/test/asset/repo/checkout.yaml
@@ -97,3 +97,9 @@ job combined_all:
- checkout_common_root.out
- checkout_common_subtree.out
- checkout_common_subtree2.out
+
+ shell:
+ - find \! -name 'list6' -type f > list6
+
+ artifact out:
+ path: list6
diff --git a/test/script/repo.et b/test/script/repo.et
index 7685aa7..1ac05a2 100644
--- a/test/script/repo.et
+++ b/test/script/repo.et
@@ -291,3 +291,37 @@ test CheckoutSubtree:
/\.\/list4/
/(.*)/ capture done
guard (done == "DONE")
+
+ local:
+ spawn on n as p args [ "--storage=minici", "--repo=r1:./dir_r1", "--repo=r2:./dir_r2", "--repo=r3:./dir_r3", "./main", "run", "--rerun-all", "combined_all" ]
+ expect_success from p of "$mt.checkout_subtree.$r1t.$r2s1"
+ expect_success from p of "$mt.checkout_common_root.$r1t.$r2t"
+ expect_success from p of "$mt.checkout_common_subtree.$r3ab"
+ expect_success from p of "$mt.checkout_common_subtree2.$r1t.$r2s1.$r3abc"
+ expect_success from p of "$mt.combined_all.$r1t.$r2t.$r3ab"
+ expect /(.*)/ from p capture done
+ guard (done == "run-finish")
+ local:
+ spawn on n as p args [ "--storage=minici", "--repo=r1:./dir_r1", "--repo=r2:./dir_r2", "--repo=r3:./dir_r3", "./main", "run", "--rerun-all", "$mt.combined_all.$r1t.$r2t.$r3ab" ]
+ expect_success from p of "$mt.checkout_subtree.$r1t.$r2s1"
+ expect_success from p of "$mt.checkout_common_root.$r1t.$r2t"
+ expect_success from p of "$mt.checkout_common_subtree.$r3ab"
+ expect_success from p of "$mt.checkout_common_subtree2.$r1t.$r2s1.$r3abc"
+ expect_success from p of "$mt.combined_all.$r1t.$r2t.$r3ab"
+ expect /(.*)/ from p capture done
+ guard (done == "run-finish")
+ local:
+ spawn on n as p args [ "--storage=minici", "--repo=r1:./dir_r1", "--repo=r2:./dir_r2", "--repo=r3:./dir_r3", "./main", "extract", "$mt.combined_all.$r1t.$r2t.$r3ab.out", "list" ]
+ local:
+ shell on n as list:
+ cat list
+ rm list
+ echo DONE
+ expect from list:
+ /\.\/minici.yaml/
+ /\.\/list1/
+ /\.\/list2/
+ /\.\/list3/
+ /\.\/list4/
+ /(.*)/ capture done
+ guard (done == "DONE")