summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorKlaus Aehlig <klaus.aehlig@huawei.com>2025-05-16 13:39:09 +0200
committerKlaus Aehlig <klaus.aehlig@huawei.com>2025-05-16 13:57:11 +0200
commit4dfd1796bd36994dc72f3674349b0476f150cb7d (patch)
treea208ef630d72e5c74f7bd0c004d6170088a4421b /test
parent8d05d92557697d46fbc92c246ac9226fd49cabec (diff)
downloadjustbuild-4dfd1796bd36994dc72f3674349b0476f150cb7d.tar.gz
profile test: also verify --dump-plain-graph is handled correctly
Diffstat (limited to 'test')
-rw-r--r--test/end-to-end/profile/basic.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/end-to-end/profile/basic.sh b/test/end-to-end/profile/basic.sh
index cb253138..5bd602c0 100644
--- a/test/end-to-end/profile/basic.sh
+++ b/test/end-to-end/profile/basic.sh
@@ -36,6 +36,7 @@ cat > "${RC}" <<EOF
, "--dump-artifacts": "artifacts.json"
, "--dump-artifacts-to-build": "to-build.json"
, "--dump-graph": "graph.json"
+ , "--dump-plain-graph": "plain.json"
}
, "rc files": [{"root": "workspace", "path": "rc.json"}]
, "just": {"root": "system", "path": "${JUST#/}"}
@@ -116,6 +117,14 @@ cat "${GRAPH}"
echo
[ $(jq -r '.actions."'"${ACTION_ID}"'".input."data.txt".type' "${GRAPH}") = "LOCAL" ]
[ $(jq -r '.actions."'"${ACTION_ID}"'".output | .[0]' "${GRAPH}") = "upper.txt" ]
+[ $(jq -r '.actions."'"${ACTION_ID}"'".origins | .[0] | .target | .[3]' "${GRAPH}") = "upper" ]
+
+PLAIN="${INVOCATION_DIR}/plain.json"
+cat "${PLAIN}"
+echo
+[ $(jq -r '.actions."'"${ACTION_ID}"'".input."data.txt".type' "${PLAIN}") = "LOCAL" ]
+[ $(jq -r '.actions."'"${ACTION_ID}"'".output | .[0]' "${PLAIN}") = "upper.txt" ]
+[ $(jq -r '.actions."'"${ACTION_ID}"'".origins' "${PLAIN}") = "null" ]
echo