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 "$@"