+4
doc/stdenv/meta.chapter.md
+4
doc/stdenv/meta.chapter.md
···A timeout (in seconds) for building the derivation. If the derivation takes longer than this time to build, it can fail due to breaking the timeout. However, all computers do not have the same computing power, hence some builders may decide to apply a multiplicative factor to this value. When filling this value in, try to keep it approximately consistent with other values already present in `nixpkgs`.+To be effective, it must be presented directly to an evaluation process that handles the `meta.timeout` attribute.The list of Nix platform types for which the Hydra instance at `hydra.nixos.org` will build the package. (Hydra is the Nix-based continuous build system.) It defaults to the value of `meta.platforms`. Thus, the only reason to set `meta.hydraPlatforms` is if you want `hydra.nixos.org` to build the package on a subset of `meta.platforms`, or not at all, e.g.
+2
lib/default.nix
+2
lib/default.nix
······
+101
lib/derivations.nix
+101
lib/derivations.nix
···+"The derivation ${derivation.name or "<unknown>"} has multiple outputs. This is not supported by lazySimpleDerivation yet. Support could be added, and be useful as long as the set of outputs is known in advance, without evaluating the actual derivation."
+2
-1
lib/modules.nix
+2
-1
lib/modules.nix
···-config = addFreeformType (addMeta (removeAttrs m ["_file" "key" "disabledModules" "require" "imports" "freeformType"]));+config = addFreeformType (removeAttrs m ["_file" "key" "disabledModules" "require" "imports" "freeformType"]);
+53
lib/tests/misc.nix
+53
lib/tests/misc.nix
···+expected = [ "drvPath" "meta" "name" "out" "outPath" "outputName" "outputs" "system" "type" ];
+3
lib/tests/modules.sh
+3
lib/tests/modules.sh
···
+19
lib/tests/modules/shorthand-meta.nix
+19
lib/tests/modules/shorthand-meta.nix
···
+30
nixos/doc/manual/default.nix
+30
nixos/doc/manual/default.nix
·········
+14
nixos/doc/manual/development/running-nixos-tests-interactively.section.md
+14
nixos/doc/manual/development/running-nixos-tests-interactively.section.md
······
+3
-14
nixos/doc/manual/development/running-nixos-tests.section.md
+3
-14
nixos/doc/manual/development/running-nixos-tests.section.md
···
+68
-11
nixos/doc/manual/development/writing-nixos-tests.section.md
+68
-11
nixos/doc/manual/development/writing-nixos-tests.section.md
·········+Tests are invoked differently depending on whether the test is part of NixOS or lives in a different project.+Tests that are part of NixOS are added to [`nixos/tests/all-tests.nix`](https://github.com/NixOS/nixpkgs/blob/master/nixos/tests/all-tests.nix).+Outside the `nixpkgs` repository, you can instantiate the test by first importing the NixOS library,·····················
+34
-9
nixos/doc/manual/from_md/development/running-nixos-tests-interactively.section.xml
+34
-9
nixos/doc/manual/from_md/development/running-nixos-tests-interactively.section.xml
···
+3
-14
nixos/doc/manual/from_md/development/running-nixos-tests.section.xml
+3
-14
nixos/doc/manual/from_md/development/running-nixos-tests.section.xml
···<link xlink:href="https://github.com/NixOS/nixpkgs/blob/master/nixos/tests/login.nix"><literal>login.nix</literal></link>,
+158
-81
nixos/doc/manual/from_md/development/writing-nixos-tests.section.xml
+158
-81
nixos/doc/manual/from_md/development/writing-nixos-tests.section.xml
···-<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="sec-writing-nixos-tests">+<section xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude" xml:id="sec-writing-nixos-tests">······-<link xlink:href="https://github.com/NixOS/nixpkgs/blob/master/nixos/tests/nat.nix"><literal>nat.nix</literal></link>-<link xlink:href="https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/virtualisation/qemu-vm.nix"><literal>qemu-vm.nix</literal></link>.+<link xlink:href="https://github.com/NixOS/nixpkgs/blob/master/nixos/tests/all-tests.nix"><literal>nixos/tests/all-tests.nix</literal></link>.+<link xlink:href="https://github.com/NixOS/nixpkgs/blob/master/nixos/tests/nat.nix"><literal>nat.nix</literal></link>+<link xlink:href="https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/virtualisation/qemu-vm.nix"><literal>qemu-vm.nix</literal></link>.·····················
-113
nixos/lib/build-vms.nix
-113
nixos/lib/build-vms.nix
···-../modules/testing/test-instrumentation.nix # !!! should only get added for automated test runs
+8
nixos/lib/default.nix
+8
nixos/lib/default.nix
······
+2
nixos/lib/eval-config.nix
+2
nixos/lib/eval-config.nix
···
+21
-229
nixos/lib/testing-python.nix
+21
-229
nixos/lib/testing-python.nix
···-in nodesList ++ lib.optional (lib.length nodesList == 1 && !lib.elem "machine" nodesList) "machine";···-lib.warnIf (t?machine) "In test `${name}': The `machine' attribute in NixOS tests (pkgs.nixosTest / make-test-python.nix / testing-python.nix / makeTest) is deprecated. Please use the equivalent `nodes.machine'."
+16
nixos/lib/testing/call-test.nix
+16
nixos/lib/testing/call-test.nix
+24
nixos/lib/testing/default.nix
+24
nixos/lib/testing/default.nix
···
+188
nixos/lib/testing/driver.nix
+188
nixos/lib/testing/driver.nix
···+nodesList ++ lib.optional (lib.length nodesList == 1 && !lib.elem "machine" nodesList) "machine";+description = mdDoc "Which qemu package to use for the virtualisation of [{option}`nodes`](#opt-nodes).";+Do not run the linters. This may speed up your iteration cycle, but it is not something you should commit.+This may speed up your iteration cycle, unless you're working on the [{option}`testScript`](#opt-testScript).
+45
nixos/lib/testing/interactive.nix
+45
nixos/lib/testing/interactive.nix
···+For details, see the section about [running tests interactively](#sec-running-nixos-tests-interactively).
+25
nixos/lib/testing/legacy.nix
+25
nixos/lib/testing/legacy.nix
···+"In test `${config.name}': The `machine' attribute in NixOS tests (pkgs.nixosTest / make-test-python.nix / testing-python.nix / makeTest) is deprecated. Please set the equivalent `nodes.machine'."
+42
nixos/lib/testing/meta.nix
+42
nixos/lib/testing/meta.nix
···+The [`meta`](https://nixos.org/manual/nixpkgs/stable/#chap-meta) attributes that will be set on the returned derivations.+Not all [`meta`](https://nixos.org/manual/nixpkgs/stable/#chap-meta) attributes are supported, but more can be added as desired.+The [list of maintainers](https://nixos.org/manual/nixpkgs/stable/#var-meta-maintainers) for this test.+The [{option}`test`](#opt-test)'s [`meta.timeout`](https://nixos.org/manual/nixpkgs/stable/#var-meta-timeout) in seconds.+Sets the [`meta.broken`](https://nixos.org/manual/nixpkgs/stable/#var-meta-broken) attribute on the [{option}`test`](#opt-test) derivation.
+14
nixos/lib/testing/name.nix
+14
nixos/lib/testing/name.nix
···+This is used in the derivation names of the [{option}`driver`](#opt-driver) and [{option}`test`](#opt-test) runner.
+117
nixos/lib/testing/network.nix
+117
nixos/lib/testing/network.nix
···
+23
nixos/lib/testing/nixos-test-base.nix
+23
nixos/lib/testing/nixos-test-base.nix
···+../../modules/testing/test-instrumentation.nix # !!! should only get added for automated test runs
+112
nixos/lib/testing/nodes.nix
+112
nixos/lib/testing/nodes.nix
···+A few special options are available, that aren't in a plain NixOS configuration. See [Configuring the nodes](#sec-nixos-test-nodes)+NixOS configuration that, like [{option}`defaults`](#opt-defaults), is applied to all [{option}`nodes`](#opt-nodes) and can not be undone with [`specialisation.<name>.inheritParentConfig`](https://search.nixos.org/options?show=specialisation.%3Cname%3E.inheritParentConfig&from=0&size=50&sort=relevance&type=packages&query=specialisation).+An attribute set of arbitrary values that will be made available as module arguments during the resolution of module `imports`.+Note that it is not possible to override these from within the NixOS configurations. If you argument is not relevant to `imports`, consider setting {option}`defaults._module.args.<name>` instead.
+11
nixos/lib/testing/pkgs.nix
+11
nixos/lib/testing/pkgs.nix
+57
nixos/lib/testing/run.nix
+57
nixos/lib/testing/run.nix
···+test = lib.lazyDerivation { # lazyDerivation improves performance when only passthru items and/or meta are used.
+84
nixos/lib/testing/testScript.nix
+84
nixos/lib/testing/testScript.nix
···+(config.virtualisation.useNixStoreImage && builtins.hasContext testModuleArgs.config.testScriptString && testModuleArgs.config.includeTestScriptReferences)
+1
-1
nixos/modules/installer/tools/nixos-build-vms/build-vms.nix
+1
-1
nixos/modules/installer/tools/nixos-build-vms/build-vms.nix
···-interactiveDriver = (testing.makeTest { inherit nodes; testScript = "start_all(); join_all();"; }).driverInteractive;+interactiveDriver = (testing.makeTest { inherit nodes; name = "network"; testScript = "start_all(); join_all();"; }).driverInteractive;
+4
-4
nixos/release.nix
+4
-4
nixos/release.nix
······
+4
-4
nixos/tests/3proxy.nix
+4
-4
nixos/tests/3proxy.nix
·········"${pkgs.wget}/bin/wget -e use_proxy=yes -e http_proxy=http://192.168.0.4:3128 -S -O /dev/null http://127.0.0.1:9999"
+7
-7
nixos/tests/acme.nix
+7
-7
nixos/tests/acme.nix
······-ExecStart = "${pkgs.pebble}/bin/pebble-challtestsrv -dns01 ':53' -defaultIPv6 '' -defaultIPv4 '${nodes.webserver.config.networking.primaryIPAddress}'";+ExecStart = "${pkgs.pebble}/bin/pebble-challtestsrv -dns01 ':53' -defaultIPv6 '' -defaultIPv4 '${nodes.webserver.networking.primaryIPAddress}'";·········-'curl --data \'{"host": "${caDomain}", "addresses": ["${nodes.acme.config.networking.primaryIPAddress}"]}\' http://${dnsServerIP nodes}:8055/add-a'+'curl --data \'{"host": "${caDomain}", "addresses": ["${nodes.acme.networking.primaryIPAddress}"]}\' http://${dnsServerIP nodes}:8055/add-a'···
+1
-1
nixos/tests/adguardhome.nix
+1
-1
nixos/tests/adguardhome.nix
+2
-2
nixos/tests/aesmd.nix
+2
-2
nixos/tests/aesmd.nix
······assert aesmd_config == "whitelist url = http://nixos.org\nproxy type = direct\ndefault quoting type = ecdsa_256\n", "aesmd.conf differs"
+47
-9
nixos/tests/all-tests.nix
+47
-9
nixos/tests/all-tests.nix
·········
+2
-2
nixos/tests/common/acme/client/default.nix
+2
-2
nixos/tests/common/acme/client/default.nix
+3
-3
nixos/tests/common/acme/server/default.nix
+3
-3
nixos/tests/common/acme/server/default.nix
······
+1
nixos/tests/corerad.nix
+1
nixos/tests/corerad.nix
+1
-1
nixos/tests/cri-o.nix
+1
-1
nixos/tests/cri-o.nix
+1
nixos/tests/ghostunnel.nix
+1
nixos/tests/ghostunnel.nix
+1
-1
nixos/tests/installed-tests/default.nix
+1
-1
nixos/tests/installed-tests/default.nix
+10
nixos/tests/installer.nix
+10
nixos/tests/installer.nix
······
+2
nixos/tests/lorri/default.nix
+2
nixos/tests/lorri/default.nix
+2
nixos/tests/matomo.nix
+2
nixos/tests/matomo.nix
+2
nixos/tests/matrix/conduit.nix
+2
nixos/tests/matrix/conduit.nix
+1
nixos/tests/nixops/default.nix
+1
nixos/tests/nixops/default.nix
+1
nixos/tests/pam/pam-file-contents.nix
+1
nixos/tests/pam/pam-file-contents.nix
+2
nixos/tests/pppd.nix
+2
nixos/tests/pppd.nix
+2
nixos/tests/thelounge.nix
+2
nixos/tests/thelounge.nix
+22
-24
nixos/tests/web-servers/agate.nix
+22
-24
nixos/tests/web-servers/agate.nix
···
+2
nixos/tests/zrepl.nix
+2
nixos/tests/zrepl.nix
+2
-2
pkgs/top-level/all-packages.nix
+2
-2
pkgs/top-level/all-packages.nix
···