mirror of
https://github.com/GaloisInc/cryptol.git
synced 2024-11-24 15:08:58 +03:00
Use version of GHC that is match what's in the path.
This commit is contained in:
parent
c1c80ce316
commit
c6d93043e1
@ -14,7 +14,14 @@ else
|
||||
TESTS=("$@")
|
||||
fi
|
||||
|
||||
CRY=$(find dist-newstyle -name cryptol -type f)
|
||||
GHC_VERSION=$(ghc --numeric-version)
|
||||
|
||||
if [ ${GHC_VERSION}x == "x" ]; then
|
||||
echo Failed to guess version of GHC.
|
||||
exit 1
|
||||
fi
|
||||
|
||||
CRY=$(find dist-newstyle -name cryptol -type f | grep $GHC_VERSION)
|
||||
|
||||
cabal new-run cryptol-test-runner -- -c $CRY --ignore-expected ${TESTS[*]}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user