diff options
Diffstat (limited to 'test/end-to-end/cli/analyse.sh')
-rwxr-xr-x | test/end-to-end/cli/analyse.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/end-to-end/cli/analyse.sh b/test/end-to-end/cli/analyse.sh index 69ffd4b8..b09a3ac8 100755 --- a/test/end-to-end/cli/analyse.sh +++ b/test/end-to-end/cli/analyse.sh @@ -49,6 +49,12 @@ cat > TARGETS <<'EOF' {"provides": {"type": "provides"}} EOF +"${TOOL}" analyse --local-build-root "${BUILDROOT}" \ + --dump-result "${OUT}/result.json" 2>&1 +cat "${OUT}/result.json" +[ "$(jq 'has("artifacts")' "${OUT}/result.json")" = true ] +[ "$(jq 'has("provides")' "${OUT}/result.json")" = true ] +[ "$(jq 'has("runfiles")' "${OUT}/result.json")" = true ] "${TOOL}" analyse --local-build-root "${BUILDROOT}" \ --dump-provides "${OUT}/plain.json" 2>&1 |