diff options
author | Alberto Sartori <alberto.sartori@huawei.com> | 2023-11-16 10:03:11 +0100 |
---|---|---|
committer | Alberto Sartori <alberto.sartori@huawei.com> | 2023-11-16 10:53:55 +0100 |
commit | a170c330955206e7df9d5ce7da1d196f24e283d8 (patch) | |
tree | 8570eb8ed7d4fcdb6b22abc809cf38e13fd77224 /test/end-to-end/serve-service | |
parent | 767716edc1a2aa930dd142a42a2d664addf151c1 (diff) | |
download | justbuild-a170c330955206e7df9d5ce7da1d196f24e283d8.tar.gz |
end-to-end serve-target-cache-hit: test the failure if...
...the client and serve use two different remote execution endpoints
fixup test
Diffstat (limited to 'test/end-to-end/serve-service')
-rw-r--r-- | test/end-to-end/serve-service/serve_target_cache_hit.sh | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/test/end-to-end/serve-service/serve_target_cache_hit.sh b/test/end-to-end/serve-service/serve_target_cache_hit.sh index 7d6c118b..6b57625f 100644 --- a/test/end-to-end/serve-service/serve_target_cache_hit.sh +++ b/test/end-to-end/serve-service/serve_target_cache_hit.sh @@ -138,9 +138,20 @@ CONF=$("${JUST_MR}" --norc --local-build-root "${LBR}" setup) cat "${CONF}" echo # test that it fails without using just serve -"${JUST}" build --local-build-root "${LBR}" -C "${CONF}" main && echo "this should fail" && exit 1 +"${JUST}" analyse --local-build-root "${LBR}" -C "${CONF}" main && echo "this should fail" >&2 && exit 1 echo "failed as expected" +# test that it fails if we use a different remote execution address w.r.t. the +# one used by just-serve +"${JUST}" analyse \ + --local-build-root "${LBR}" \ + --remote-serve-address "${SERVE}" \ + -C "${CONF}" \ + -r "${SERVE}" \ + ${REMOTE_PROPERTIES} \ + ${DISPATCH} \ + main && echo "this should fail" >&2 && exit 1 + # test that we can successfully compile using just serve "${JUST}" build \ --local-build-root "${LBR}" \ |