test: log test groups

This commit is contained in:
Sridhar Ratnakumar 2023-02-07 17:30:05 -05:00
parent 7c4af21238
commit bdde8bb68b

View File

@ -2,11 +2,17 @@ set -e
FLAKE=$(pwd)
cd ./test
# First, build the flake.
echo "\n||| Testing nix build"
nix build --override-input haskell-flake path:${FLAKE}
# Run the devshell test script in a nix develop shell.
echo "\n||| Testing nix devshell"
nix develop --override-input haskell-flake path:${FLAKE} -c ./test.sh
# Test non-devshell features:
# Checks
echo "\n||| Testing nix flake checks"
nix --option sandbox false \
build --override-input haskell-flake path:${FLAKE} -L .#check
echo "\n||| All tests passed!"