diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2025-05-16 13:39:09 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2025-05-16 13:57:11 +0200 |
commit | 4dfd1796bd36994dc72f3674349b0476f150cb7d (patch) | |
tree | a208ef630d72e5c74f7bd0c004d6170088a4421b | |
parent | 8d05d92557697d46fbc92c246ac9226fd49cabec (diff) | |
download | justbuild-4dfd1796bd36994dc72f3674349b0476f150cb7d.tar.gz |
profile test: also verify --dump-plain-graph is handled correctly
-rw-r--r-- | test/end-to-end/profile/basic.sh | 9 |
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 |