aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/shell
diff options
context:
space:
mode:
authorGravatar David Chen <dzc@google.com>2016-02-04 10:26:29 +0000
committerGravatar David Chen <dzc@google.com>2016-02-04 18:12:56 +0000
commit4134802747a8d3102c605109b33eacbe3537848d (patch)
tree0a60b5f8eed6c7f0c1a918de7106fa64b543a34b /src/test/shell
parent5e8e5fef6dc512e8791b43c146a1593aa8c75494 (diff)
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
Diffstat (limited to 'src/test/shell')
-rwxr-xr-xsrc/test/shell/bazel/external_integration_test.sh9
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 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 <<EOF