about summary refs log tree commit diff
path: root/tvix
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2022-08-10T16·18+0300
committertazjin <tazjin@tvl.su>2022-08-24T23·11+0000
commit7d5691f0e58970e85126c06c6617bec026618b10 (patch)
tree3bf409b2d1e007a1065f6c99a0079b1a2b1a5c00 /tvix
parent8235384d2d72514e1ef67de1782dc9f604039435 (diff)
chore(tvix/tests): gate Nix test suite behind `nix_tests` feature r/4464
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>
Diffstat (limited to 'tvix')
-rw-r--r--tvix/eval/Cargo.toml5
-rw-r--r--tvix/eval/src/tests/mod.rs1
2 files changed, 6 insertions, 0 deletions
diff --git a/tvix/eval/Cargo.toml b/tvix/eval/Cargo.toml
index 2e5643db7991..0a439a189732 100644
--- a/tvix/eval/Cargo.toml
+++ b/tvix/eval/Cargo.toml
@@ -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 = []
diff --git a/tvix/eval/src/tests/mod.rs b/tvix/eval/src/tests/mod.rs
index fa565733951a..75b3d9bb7c68 100644
--- a/tvix/eval/src/tests/mod.rs
+++ b/tvix/eval/src/tests/mod.rs
@@ -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