about summary refs log tree commit diff
path: root/nixos/tests/nixos-test-driver
diff options
context:
space:
mode:
authorRobert Hensing <robert@roberthensing.nl>2023-04-25 11:59:14 +0200
committerRobert Hensing <robert@roberthensing.nl>2023-04-25 12:03:15 +0200
commit3ec3d283c5c21567b2c1242fc6d3516d4ebb6e5b (patch)
treef23d0159a2e6590a6bfbc6b88fd837bc53730d90 /nixos/tests/nixos-test-driver
parentd6e84a4574a200de63e8fe86ef8574b507fd366e (diff)
nixos/tests: extra-python-packages -> nixos-test-driver/extra-python-packages
Categorizing the tests for the test driver helps with testing the test driver.
Diffstat (limited to 'nixos/tests/nixos-test-driver')
-rw-r--r--nixos/tests/nixos-test-driver/extra-python-packages.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/nixos/tests/nixos-test-driver/extra-python-packages.nix b/nixos/tests/nixos-test-driver/extra-python-packages.nix
new file mode 100644
index 0000000000000..1146bedd996f8
--- /dev/null
+++ b/nixos/tests/nixos-test-driver/extra-python-packages.nix
@@ -0,0 +1,13 @@
+import ../make-test-python.nix ({ ... }:
+  {
+    name = "extra-python-packages";
+
+    extraPythonPackages = p: [ p.numpy ];
+
+    nodes = { };
+
+    testScript = ''
+      import numpy as np
+      assert str(np.zeros(4) == "array([0., 0., 0., 0.])")
+    '';
+  })