diff --git a/runtest.sh b/runtest.sh index 93af1ff..b0f07f7 100755 --- a/runtest.sh +++ b/runtest.sh @@ -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!" \ No newline at end of file