chore(tvix/tests): gate Nix test suite behind nix_tests feature

Once we have full coverage they should be enabled by default.

Change-Id: Iace9e1ae9a9f901a0979ad336434004b8028fe8a
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6129
Tested-by: BuildkiteCI
Reviewed-by: grfn <grfn@gws.fyi>
This commit is contained in:
Vincent Ambo 2022-08-10 19:18:01 +03:00 committed by tazjin
parent 8235384d2d
commit 7d5691f0e5
2 changed files with 6 additions and 0 deletions

View file

@ -10,3 +10,8 @@ rnix = "0.10.2"
[dev-dependencies]
test-generator = "0.3.0"
[features]
# Enables running the Nix language test suite from the original C++
# Nix implementation (at version 2.3) against Tvix.
nix_tests = []

View file

@ -7,6 +7,7 @@ use test_generator::test_resources;
//
// These evaluations are always supposed to succeed, i.e. all snippets
// are guaranteed to be valid Nix code.
#[cfg(feature = "nix_tests")]
#[test_resources("src/tests/nix_tests/eval-okay-*.nix")]
fn eval_okay(code_path: &str) {
let base = code_path