Commit 2fd407cd authored by Ben Gamari's avatar Ben Gamari Committed by Ben Gamari
Browse files

validate: Use gz compression during bindist check

Test Plan: validate, check that gz is used

Reviewers: hvr, austin, thomie

Reviewed By: thomie

Differential Revision: https://phabricator.haskell.org/D1788

GHC Trac Issues: #11434
parent f3a867e8
...@@ -768,7 +768,7 @@ GZIP_CMD = gzip ...@@ -768,7 +768,7 @@ GZIP_CMD = gzip
XZ_CMD = xz -9e XZ_CMD = xz -9e
# xz is default compression # xz is default compression
TAR_COMP = xz TAR_COMP ?= xz
# select compression command and .tar extension based on TAR_COMP value # select compression command and .tar extension based on TAR_COMP value
ifeq "$(TAR_COMP)" "bzip2" ifeq "$(TAR_COMP)" "bzip2"
......
...@@ -47,6 +47,10 @@ hpc=NO ...@@ -47,6 +47,10 @@ hpc=NO
speed=NORMAL speed=NORMAL
use_dph=0 use_dph=0
be_quiet=0 be_quiet=0
# Validate uses gzip compression for the binary distribution to avoid the rather
# heavy cost of xz, which is the typical default. The options are defined in
# mk/config.mk.in
tar_comp=gzip
while [ $# -gt 0 ] while [ $# -gt 0 ]
do do
...@@ -211,8 +215,8 @@ check_packages post-build ...@@ -211,8 +215,8 @@ check_packages post-build
if [ $speed != "FAST" ]; then if [ $speed != "FAST" ]; then
$make binary-dist-prep $make binary-dist-prep TAR_COMP=$tar_comp
$make test_bindist TEST_PREP=YES $make test_bindist TEST_PREP=YES TAR_COMP=$tar_comp
# #
# Install the xhtml package into the bindist. # Install the xhtml package into the bindist.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment