run-tests: add 'eval' command

This commit is contained in:
Erik Arvstedt 2020-09-27 12:43:34 +02:00
parent 36358066e4
commit bb763d6a26
No known key found for this signature in database
GPG Key ID: 33312B944DD97846

View File

@ -119,6 +119,11 @@ debug() {
run --interactive run --interactive
} }
evalTest() {
nix eval --raw "($(vmTestNixExpr)).outPath"
echo # nix eval doesn't print a newline
}
container() { container() {
. "$testDir/lib/make-container.sh" "$@" . "$testDir/lib/make-container.sh" "$@"
} }
@ -174,4 +179,7 @@ fi
command="${1:-build}" command="${1:-build}"
shift || true shift || true
if [[ $command == eval ]]; then
command=evalTest
fi
$command "$@" $command "$@"