aboutsummaryrefslogtreecommitdiff
path: root/tests/nixos/containers/id-test.nix
diff options
context:
space:
mode:
authorThéophane Hufschmitt <7226587+thufschmitt@users.noreply.github.com>2023-01-27 15:11:48 +0100
committerGitHub <noreply@github.com>2023-01-27 15:11:48 +0100
commitccaadc957593522e9b46336eb5afa45ff876f13f (patch)
tree092377073700d884fceffcd1c1453023369f5647 /tests/nixos/containers/id-test.nix
parented479aafdc03f2e7428f182549cedab947824300 (diff)
parent3c08a3e6b68135af126a05e9e3be417b604edded (diff)
Merge pull request #7648 from hercules-ci/move-nixos-tests
Move nixos tests
Diffstat (limited to 'tests/nixos/containers/id-test.nix')
-rw-r--r--tests/nixos/containers/id-test.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/nixos/containers/id-test.nix b/tests/nixos/containers/id-test.nix
new file mode 100644
index 000000000..8eb9d38f9
--- /dev/null
+++ b/tests/nixos/containers/id-test.nix
@@ -0,0 +1,8 @@
+{ name, uidRange ? false }:
+
+with import <nixpkgs> {};
+
+runCommand name
+ { requiredSystemFeatures = if uidRange then ["uid-range"] else [];
+ }
+ "id; id > $out"