Nixpkgs’s pkgs/README.md file says:
Package tests
To run the main types of tests locally:
- Run package-internal tests with
nix-build --attr pkgs.PACKAGE.passthru.tests- Run NixOS tests with
nix-build --attr nixosTests.NAME, whereNAMEis the name of the test listed innixos/tests/all-tests.nix- Run global package tests with
nix-build --attr tests.PACKAGE, wherePACKAGEis the name of the test listed inpkgs/test/default.nix- See
lib/tests/NAME.nixfor instructions on running specific library tests
pkgs/build-support/vm/test.nix looks like it contains tests, but it doesn’t really fit into any of those categories. What is the correct way to run the tests that are defined in pkgs/build-support/vm/test.nix?