summaryrefslogtreecommitdiff
path: root/test/end-to-end/RULES
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2025-03-04 15:57:31 +0100
committerKlaus Aehlig <klaus.aehlig@huawei.com>2025-03-10 16:28:59 +0100
commit21af38d3aa8fb70172d1951d68823c11d61c5c05 (patch)
tree1132b1c40a15236d2b20c13ad23d3eed488a82ad /test/end-to-end/RULES
parent7f3bff62999f927546c6ef7ee6133a89a2bb9cd6 (diff)
downloadjustbuild-21af38d3aa8fb70172d1951d68823c11d61c5c05.tar.gz
remote test rules: support keeping directories
Diffstat (limited to 'test/end-to-end/RULES')
-rw-r--r--test/end-to-end/RULES19
1 files changed, 16 insertions, 3 deletions
diff --git a/test/end-to-end/RULES b/test/end-to-end/RULES
index c02f9f24..0e71a45f 100644
--- a/test/end-to-end/RULES
+++ b/test/end-to-end/RULES
@@ -4,7 +4,7 @@
, "implicitly assuming a remote execution in the background."
]
, "target_fields": ["deps", "test"]
- , "string_fields": ["keep", "name"]
+ , "string_fields": ["keep", "name", "keep-dirs"]
, "config_vars":
[ "ARCH"
, "HOST_ARCH"
@@ -46,6 +46,11 @@
, "the test might generate that should be kept as part of the output."
, "This might be useful for further analysis of the test"
]
+ , "keep-dirs":
+ [ "List of names (relative to the test working directory) of directories"
+ , "that the test might generate that should be kept as part of the"
+ , "output. This might be useful for further analysis of the test"
+ ]
, "deps":
[ "Any targets that should be staged (with artifacts and runfiles) into"
, "the tests working directory"
@@ -79,7 +84,8 @@
, " the respective file descriptor"
, "remotestdout/remotestderr: Any output of the remote-execution server"
, " implicit to that test"
- , "work: In this directory, all the files specified to \"keep\" are staged"
+ , "work: In this directory, all the files specified to \"keep\" and"
+ , " \"keep-dirs\" are staged"
, "time-start/time-stop: The time (decimally coded) in seconds since the"
, " epoch when the test invocation started and ended."
, "pwd: the directory in which the test was carried out"
@@ -130,6 +136,7 @@
}
]
, ["keep", {"type": "FIELD", "name": "keep"}]
+ , ["keep-dirs", {"type": "FIELD", "name": "keep-dirs"}]
, ["deps-fieldname", "deps"]
, ["transition", {"type": "CALL_EXPRESSION", "name": "host transition"}]
]
@@ -280,7 +287,7 @@
, "in the background."
]
, "target_fields": ["deps", "test", "repos"]
- , "string_fields": ["keep", "name"]
+ , "string_fields": ["keep", "keep-dirs", "name"]
, "config_vars":
[ "ARCH"
, "HOST_ARCH"
@@ -332,6 +339,11 @@
, "the test might generate that should be kept as part of the output."
, "This might be useful for further analysis of the test"
]
+ , "keep-dirs":
+ [ "List of names (relative to the test working directory) of directories"
+ , "that the test might generate that should be kept as part of the"
+ , "output. This might be useful for further analysis of the test"
+ ]
, "deps":
[ "Any targets that should be staged (with artifacts and runfiles) into"
, "the tests working directory"
@@ -418,6 +430,7 @@
}
]
, ["keep", {"type": "FIELD", "name": "keep"}]
+ , ["keep-dirs", {"type": "FIELD", "name": "keep-dirs"}]
, ["deps-fieldname", "deps"]
, ["transition", {"type": "CALL_EXPRESSION", "name": "host transition"}]
, [ "data"