diff options
author | 2015-07-28 22:07:17 +0000 | |
---|---|---|
committer | 2015-07-29 16:01:33 +0000 | |
commit | 205a3d67fe5986890270ad99c87ded997a1d5cca (patch) | |
tree | 3a94f62cf0276900467a3fa55ad9b2e8746227c9 /src/test/shell | |
parent | 6ddbb6e48bf1fb389634934dcce1e251a77e50e5 (diff) |
Download from remote http repository only if zip file with correct hash doesn't already exist.
This addresses #251, but similar functionality needs to be implemented for all flavors of remote repository.
--
MOS_MIGRATED_REVID=99319885
Diffstat (limited to 'src/test/shell')
-rwxr-xr-x | src/test/shell/bazel/external_integration_test.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/shell/bazel/external_integration_test.sh b/src/test/shell/bazel/external_integration_test.sh index e799302e9b..bdccbd06af 100755 --- a/src/test/shell/bazel/external_integration_test.sh +++ b/src/test/shell/bazel/external_integration_test.sh @@ -333,6 +333,15 @@ function test_changed_zip() { [[ -s $repo_zip ]] || fail "File size was 0" } +function test_cached_across_server_restart() { + http_archive_helper zip_up + bazel shutdown >& $TEST_log || fail "Couldn't shut down" + bazel run //zoo:breeding-program >& $TEST_log --show_progress_rate_limit=0 \ + || echo "Expected build/run to succeed" + expect_log $what_does_the_fox_say + expect_not_log "Downloading from" +} + # Tests downloading a jar and using it as a Java dependency. function test_jar_download() { serve_jar |