From 4134802747a8d3102c605109b33eacbe3537848d Mon Sep 17 00:00:00 2001 From: David Chen Date: Thu, 4 Feb 2016 10:26:29 +0000 Subject: Add support for downloading .tar.xz files to http_archive rules. Fixes #845 RELNOTES: Add support for .tar.xz archives to http_archive rules. -- MOS_MIGRATED_REVID=113829042 --- src/test/shell/bazel/external_integration_test.sh | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/test/shell') diff --git a/src/test/shell/bazel/external_integration_test.sh b/src/test/shell/bazel/external_integration_test.sh index 50c04c8a7b..7b50c6a4c8 100755 --- a/src/test/shell/bazel/external_integration_test.sh +++ b/src/test/shell/bazel/external_integration_test.sh @@ -57,6 +57,11 @@ function tar_gz_up() { tar czf $repo2_zip WORKSPACE fox } +function tar_xz_up() { + repo2_zip=$TEST_TMPDIR/fox.tar.xz + tar cJf $repo2_zip WORKSPACE fox +} + # Test downloading a file from a repository. # This creates a simple repository containing: # @@ -187,6 +192,10 @@ function test_http_archive_tgz() { http_archive_helper tar_gz_up "do_symlink" } +function test_http_archive_tar_xz() { + http_archive_helper tar_xz_up "do_symlink" +} + function test_http_archive_no_server() { nc_port=$(pick_random_unused_tcp_port) || exit 1 cat > WORKSPACE <