[GHC] #14412: Can't run tests with sdist -> bindist -> test
GHC
ghc-devs at haskell.org
Thu Nov 2 11:06:40 UTC 2017
#14412: Can't run tests with sdist -> bindist -> test
-------------------------------------+-------------------------------------
Reporter: Fuuzetsu | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone:
Component: Build System | Version: 8.2.1
Keywords: | Operating System: Unknown/Multiple
Architecture: | Type of failure: None/Unknown
Unknown/Multiple |
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Rev(s): | Wiki Page:
-------------------------------------+-------------------------------------
If you want to make source dist, compile it into bindist then run tests
with the bindist, it fails.
{{{
mk/get-win32-tarballs.sh download all
./boot
./configure "$@"
make sdist
mkdir -p sdist-build-dir
pushd sdist-build-dir
shopt -s extglob
tar xvfJ ../sdistprep/ghc-*+([[:digit:]])-src.tar.xz sdist-build-dir
cd ghc-*
./boot
./configure "$@"
make -j$THREADS
make binary-dist
popd
mkdir -p bdist-test-dir
pushd bdist-test-dir
tar xvfJ ../sdist-build-dir/ghc-*/ghc-*.tar.xz
tar xvfJ ../sdistprep/ghc*testsuite.tar.xz
cd ghc-*
./configure
make test
}}}
I do not have the failure error on hand but it had to do with Haddock
trying to read its version from .cabal file which was not included in the
bindist/sdist. I have communicated this problem to Ben at the time and
this ticket is just to track progress.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14412>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list