fix(tvix/eval/tests/nix_oracle): tests are impure-only
This uses StdIO, which is only available when the `impure` feature is enabled. Change-Id: I039b1f45f6619dd099fa943e58322ff521482dfa Reviewed-on: https://cl.tvl.fyi/c/depot/+/11724 Tested-by: BuildkiteCI Autosubmit: flokli <flokli@flokli.de> Reviewed-by: Connor Brewster <cbrewster@hey.com>
This commit is contained in:
parent
2c628f6e1c
commit
c83f2e765c
1 changed files with 2 additions and 0 deletions
|
@ -56,6 +56,7 @@ fn nix_eval(expr: &str, strictness: Strictness) -> String {
|
|||
/// `NIX_INSTANTIATE_BINARY_PATH` env var to resolve the `nix-instantiate` binary) and tvix, and
|
||||
/// assert that the result is identical
|
||||
#[track_caller]
|
||||
#[cfg(feature = "impure")]
|
||||
fn compare_eval(expr: &str, strictness: Strictness) {
|
||||
let nix_result = nix_eval(expr, strictness);
|
||||
let mut eval = tvix_eval::Evaluation::new_pure();
|
||||
|
@ -76,6 +77,7 @@ fn compare_eval(expr: &str, strictness: Strictness) {
|
|||
macro_rules! compare_eval_tests {
|
||||
($strictness:expr, {}) => {};
|
||||
($strictness:expr, {$(#[$meta:meta])* $test_name: ident($expr: expr); $($rest:tt)*}) => {
|
||||
#[cfg(feature = "impure")]
|
||||
#[test]
|
||||
$(#[$meta])*
|
||||
fn $test_name() {
|
||||
|
|
Loading…
Reference in a new issue