Skip to content

Commit

Permalink
fullcheck: check unsupported version gets deselected
Browse files Browse the repository at this point in the history
  • Loading branch information
AshleyYakeley committed Apr 19, 2024
1 parent e5c5d19 commit a7126d8
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions fullcheck
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,23 @@ PATH=$HOME/.ghcup/bin:$PATH
ghcup upgrade
ghcup install cabal latest
ghcup set cabal latest

# check unsupported versions do not select this version of time
for c in 9.2.8
do
ghcup install ghc $c
ghcup set ghc $c
cabal update
if cabal v1-configure --enable-tests;
then
echo "time incorrectly selected with unsupported GHC version $c"
exit 1
else
echo "time correctly deselected with unsupported GHC version $c"
fi
done

# check supported versions
for c in 9.4.8 9.6.4 9.8.2
do
ghcup install ghc $c
Expand Down

0 comments on commit a7126d8

Please sign in to comment.