Skip to content

Commit

Permalink
test: log test groups
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Feb 7, 2023
1 parent 7c4af21 commit bdde8bb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions runtest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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!"

0 comments on commit bdde8bb

Please sign in to comment.