From bb763d6a2613f2295077ee5e1619ba04deba0382 Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Sun, 27 Sep 2020 12:43:34 +0200 Subject: [PATCH] run-tests: add 'eval' command --- test/run-tests.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/run-tests.sh b/test/run-tests.sh index 8608318..5f99609 100755 --- a/test/run-tests.sh +++ b/test/run-tests.sh @@ -119,6 +119,11 @@ debug() { run --interactive } +evalTest() { + nix eval --raw "($(vmTestNixExpr)).outPath" + echo # nix eval doesn't print a newline +} + container() { . "$testDir/lib/make-container.sh" "$@" } @@ -174,4 +179,7 @@ fi command="${1:-build}" shift || true +if [[ $command == eval ]]; then + command=evalTest +fi $command "$@"