1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 11:40:45 +00:00
nixpkgs/nixos/lib
Robert Hensing b3de22483c nixos/testing-python.nix: Add evalTest
This is a decomposition of the testing-python.nix and build-vms.nix
files into modules.

By refactoring the glue, we accomplish the following:

 - NixOS tests can now use `imports` and other module system features.
    - Network-wide test setup can now be reusable; example:
       - A setup with all VMs configured to use a DNS server
       - Split long, slow tests into multiple tests that import a
         common module that has most of the setup.
    - Type checking for the test arguments
    - (TBD) "generated" options reference docs
 - Aspects that had to be wired through all the glue are now in their
   own files.
    - Chief example: interactive.nix.
    - Also: network.nix

In rewriting this, I've generally stuck as close as possible to the
existing code; copying pieces of logic and rewiring them, without
changing the logic itself.

I've made two exceptions to this rule

 - Introduction of `extraDriverArgs` instead of hardcoded
   interactivity logic.

 - Incorporation of https://github.com/NixOS/nixpkgs/pull/144110
   in testScript.nix.

I might revert the latter and split it into a new commit.
2022-09-21 10:55:11 +01:00
..
make-options-doc lib/options: deprecate docbook text and literalDocBook 2022-09-10 18:23:13 +02:00
test-driver Merge pull request #189999 from sbruder/test-driver-formatting-closed-port 2022-09-06 14:48:13 +02:00
testing nixos/testing-python.nix: Add evalTest 2022-09-21 10:55:11 +01:00
build-vms.nix treewide: nixosTest -> testers.nixosTest 2022-05-09 14:16:06 +02:00
default.nix
eval-cacheable-options.nix
eval-config-minimal.nix
eval-config.nix nixos/eval-config: Allow system to be set modularly when arg is null 2022-07-10 13:35:54 +02:00
from-env.nix
make-channel.nix
make-disk-image.nix make-disk-image: add systemdMinimal to PATH 2022-04-05 11:57:53 +02:00
make-ext4-fs.nix
make-iso9660-image.nix
make-iso9660-image.sh
make-multi-disk-zfs-image.nix treewide: don't use utillinux alias 2022-06-27 04:55:23 +00:00
make-single-disk-zfs-image.nix treewide: don't use utillinux alias 2022-06-27 04:55:23 +00:00
make-squashfs.nix
make-system-tarball.nix
make-system-tarball.sh
qemu-common.nix nixos/qemu: Add QEMU arguments for HVF on Darwin 2022-08-25 17:00:14 +04:00
systemd-lib.nix nixos/systemd: Add onSuccess module option for units 2022-04-07 13:25:52 +02:00
systemd-types.nix nixos/*: automatically convert option descriptions 2022-08-31 16:32:53 +02:00
systemd-unit-options.nix nixos/*: convert internal option descriptions to MD 2022-08-31 16:32:54 +02:00
test-script-prepend.py nixos/test-driver: Typecheck TestScript 2022-06-02 10:05:45 +02:00
testing-python.nix nixos/testing-python.nix: Add evalTest 2022-09-21 10:55:11 +01:00
utils.nix nixos: Fix up systemd shutdown ramfs 2022-04-28 14:12:14 -04:00