From 00502b9f169f030cddc83b9b9b75a25de09a14e4 Mon Sep 17 00:00:00 2001 From: Quentin Aristote Date: Fri, 26 Nov 2021 15:45:22 +0100 Subject: add simple test script --- tests/run-tests.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/run-tests.sh (limited to 'tests') diff --git a/tests/run-tests.sh b/tests/run-tests.sh new file mode 100644 index 0000000..52f4a1e --- /dev/null +++ b/tests/run-tests.sh @@ -0,0 +1,13 @@ +#! /usr/bin/env nix-shell +#! nix-shell --packages curl + +sudo nixos-container update hermes --config-file ./vm.nix || exit 2 +sudo nixos-container start hermes || exit 2 + +IP=$(nixos-container show-ip hermes) +for PORT in 8080 8081 8082 +do + curl http://$IP:$PORT/ -i || exit 2 +done + +sudo nixos-container stop hermes -- cgit v1.2.3