From a2c91c000e025fc481a48356777c45e4696553a7 Mon Sep 17 00:00:00 2001 From: rootile Date: Mon, 9 Feb 2026 18:29:56 +0100 Subject: [PATCH] f2: migrate build-delete.sh Change-Id: I457620a33514477eccb449d4a6237a5ea43fe73d --- tests/functional/build-delete.sh | 52 ---------- tests/functional/meson.build | 1 - tests/functional2/build/test_delete.py | 131 +++++++++++++++++++++++++ 3 files changed, 131 insertions(+), 53 deletions(-) delete mode 100644 tests/functional/build-delete.sh create mode 100644 tests/functional2/build/test_delete.py diff --git a/tests/functional/build-delete.sh b/tests/functional/build-delete.sh deleted file mode 100644 index 87c979980..000000000 --- a/tests/functional/build-delete.sh +++ /dev/null @@ -1,52 +0,0 @@ -source common.sh - -clearStore - -# https://github.com/NixOS/nix/issues/6572 -issue_6572_independent_outputs() { - nix build -f multiple-outputs.nix --json independent --no-link > $TEST_ROOT/independent.json - - # Make sure that 'nix build' can build a derivation that depends on both outputs of another derivation. - p=$(nix build -f multiple-outputs.nix use-independent --no-link --print-out-paths) - nix-store --delete "$p" # Clean up for next test - - # Make sure that 'nix build' tracks input-outputs correctly when a single output is already present. - nix-store --delete "$(jq -r <$TEST_ROOT/independent.json .[0].outputs.first)" - p=$(nix build -f multiple-outputs.nix use-independent --no-link --print-out-paths) - cmp $p < $TEST_ROOT/a.json - - # # Make sure that 'nix build' can build a derivation that depends on both outputs of another derivation. - p=$(nix build -f multiple-outputs.nix use-a --no-link --print-out-paths) - nix-store --delete "$p" # Clean up for next test - - # Make sure that 'nix build' tracks input-outputs correctly when a single output is already present. - nix-store --delete "$(jq -r <$TEST_ROOT/a.json .[0].outputs.second)" - p=$(nix build -f multiple-outputs.nix use-a --no-link --print-out-paths) - cmp $p <