From 7d5691f0e58970e85126c06c6617bec026618b10 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Wed, 10 Aug 2022 19:18:01 +0300 Subject: 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 --- tvix/eval/Cargo.toml | 5 +++++ tvix/eval/src/tests/mod.rs | 1 + 2 files changed, 6 insertions(+) (limited to 'tvix/eval') 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 -- cgit 1.4.1