diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2025-02-28 13:00:24 +0100 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2025-03-10 16:28:59 +0100 |
commit | a7613e80f20ff3cef7af347cbed127ad0bb3f86d (patch) | |
tree | 500309ee004e9f99940278e9085d192f2df305d5 /test/end-to-end/just-mr | |
parent | cc393dfca1bfd0fdc3fe032df5ea54e12f50cb9d (diff) | |
download | justbuild-a7613e80f20ff3cef7af347cbed127ad0bb3f86d.tar.gz |
Add basic test for profiling information
Diffstat (limited to 'test/end-to-end/just-mr')
-rw-r--r-- | test/end-to-end/just-mr/invocation-log.sh | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/end-to-end/just-mr/invocation-log.sh b/test/end-to-end/just-mr/invocation-log.sh index 1b4aea08..1e096f17 100644 --- a/test/end-to-end/just-mr/invocation-log.sh +++ b/test/end-to-end/just-mr/invocation-log.sh @@ -31,7 +31,7 @@ readonly RC="${ETC_DIR}/rc.json" cat > "${RC}" <<EOF { "invocation log": { "directory": {"root": "system", "path": "${LOG_DIR#/}"} - , "meta data": "meta.json" + , "metadata": "meta.json" , "--dump-graph": "graph.json" , "--profile": "profile.json" } @@ -71,20 +71,20 @@ echo blablabla > data.txt # As this is the first invocation, we can find the invocation-log dir by a glob INVOCATION_DIR="$(ls -d "${LOG_DIR}"/invocation-log-test/*)" -# ... this should create a meta-data file. -META_DATA_FILE="${INVOCATION_DIR}/meta.json" -echo "Meta data file ${META_DATA_FILE}" -cat "${META_DATA_FILE}" +# ... this should create a metadata file. +METADATA_FILE="${INVOCATION_DIR}/meta.json" +echo "Meta data file ${METADATA_FILE}" +cat "${METADATA_FILE}" echo # Sanity check: the local build root must occur in the command line as # it was specified in the rc file. -[ $(jq '.cmdline | contains(["'"${LBR}"'"])' "${META_DATA_FILE}") = true ] +[ $(jq '.cmdline | contains(["'"${LBR}"'"])' "${METADATA_FILE}") = true ] # Install the referenced configuration "${JUST_MR}" --rc "${RC}" install-cas -o "${REPORTED_CONFIG}" \ - $(jq -r '.configuration' "${META_DATA_FILE}") 2>&1 + $(jq -r '.configuration' "${METADATA_FILE}") 2>&1 echo cat "${REPORTED_CONFIG}" |