From 51b4cd0974737665e899ad570877d456d7293223 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Sun, 22 Nov 2026 15:04:51 +0100 Subject: [PATCH] nixos/test-driver: expose 'qa' attribute in passthru The idea is to have test-cases in here which are either directly related to the nixos test driver or test other fundamental parts of the testing framework, e.g. the shared directory integration. --- nixos/lib/test-driver/default.nix | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/nixos/lib/test-driver/default.nix b/nixos/lib/test-driver/default.nix index fdb946e28dc5..2a1493eb11c0 100644 --- a/nixos/lib/test-driver/default.nix +++ b/nixos/lib/test-driver/default.nix @@ -73,10 +73,27 @@ buildPythonApplication { ]; # containers tests require extra nix features that are not available in ofborg. - passthru.tests = removeAttrs nixosTests.nixos-test-driver [ - "containers" - "nspawn-interactive" - ]; + passthru = { + tests = removeAttrs nixosTests.nixos-test-driver [ + "containers" + "nspawn-interactive" + ]; + + # Not only test-driver specific things, but also tests verifying + # correct integration with other components of the test-driver stack, most + # notably virtualisation.qemu. + # Intended to have a simple way as maintainer to verify that features didn't regress + # without intimate knowledge which tests make use of which features. + qa = lib.recurseIntoAttrs { + inherit (nixosTests) + credentials-smbios + qemu-vm-shared-directories + qemu-vm-external-disk-image + ; + + nixos-test-driver = lib.recurseIntoAttrs nixosTests.nixos-test-driver; + }; + }; doCheck = true;