services-flake/test.sh
Sridhar Ratnakumar b364792c33 Finish the example
.. which was accidentally commited, partially, in parent commit.

Pending a FIXME in tests.
2023-06-21 15:47:10 -04:00

13 lines
310 B
Bash
Executable File

set -euxo pipefail
cd "$(dirname "$0")"
# On NixOS, run the VM tests to test runtime behaviour
if command -v nixos-rebuild &> /dev/null; then
# example test
nix flake check -L ./example --override-input services-flake .
# service tests
nix flake check -L ./test --override-input services-flake .
fi