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
1 changed files with 8 additions and 0 deletions

View File

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