aboutsummaryrefslogtreecommitdiff
path: root/tests/id-test.nix
diff options
context:
space:
mode:
Diffstat (limited to 'tests/id-test.nix')
-rw-r--r--tests/id-test.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/id-test.nix b/tests/id-test.nix
new file mode 100644
index 000000000..8eb9d38f9
--- /dev/null
+++ b/tests/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"