From a7126d84c66c2a0461d07561b209864ea497faf0 Mon Sep 17 00:00:00 2001 From: Ashley Yakeley Date: Fri, 19 Apr 2024 15:56:05 -0700 Subject: [PATCH] fullcheck: check unsupported version gets deselected --- fullcheck | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/fullcheck b/fullcheck index 9b47e2c6..1e235495 100755 --- a/fullcheck +++ b/fullcheck @@ -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