feat(tvix/glue): add eval-fail-* support to glue tests
Add some eval-fail-fetcht-*.nix test cases. Change-Id: Ic02beabf120d1de8df6f9c098d5a074127069f81 Reviewed-on: https://cl.tvl.fyi/c/depot/+/11880 Tested-by: BuildkiteCI Reviewed-by: Simon Hauser <simon.hauser@helsinki-systems.de>
This commit is contained in:
parent
89361b2a7f
commit
50150fa3c8
3 changed files with 10 additions and 0 deletions
|
@ -145,3 +145,11 @@ fn nix_eval_okay(#[files("src/tests/nix_tests/eval-okay-*.nix")] code_path: Path
|
|||
// ) {
|
||||
// eval_test(code_path, false)
|
||||
// }
|
||||
|
||||
// eval-fail-* tests contain a snippet of Nix code, which is
|
||||
// expected to fail evaluation. The exact type of failure
|
||||
// (assertion, parse error, etc) is not currently checked.
|
||||
#[rstest]
|
||||
fn eval_fail(#[files("src/tests/tvix_tests/eval-fail-*.nix")] code_path: PathBuf) {
|
||||
eval_test(code_path, false)
|
||||
}
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
(builtins.fetchTarball /dev/null)
|
|
@ -0,0 +1 @@
|
|||
(builtins.fetchurl /dev/null)
|
Loading…
Reference in a new issue