From b77c1ecfdb545f41fbf847681ac75f29d7998ad9 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Fri, 26 Dec 2025 05:28:45 +0900 Subject: cmd/sharefs/test: check option handling This verifies behaviour related to setuid/setgid when starting as root. Signed-off-by: Ophestra --- cmd/sharefs/test/configuration.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'cmd/sharefs/test/configuration.nix') diff --git a/cmd/sharefs/test/configuration.nix b/cmd/sharefs/test/configuration.nix index d9c011bc..388071b6 100644 --- a/cmd/sharefs/test/configuration.nix +++ b/cmd/sharefs/test/configuration.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: +{ pkgs, config, ... }: { users.users = { alice = { @@ -14,8 +14,13 @@ # Automatically login on tty1 as a normal user: services.getty.autologinUser = "alice"; - # For benchmarking sharefs: - environment.systemPackages = [ pkgs.fsmark ]; + environment = { + # For benchmarking sharefs: + systemPackages = [ pkgs.fsmark ]; + + # For sharefs option checks without adding to PATH: + etc.sharefs.source = "${config.environment.hakurei.package}/libexec/sharefs"; + }; virtualisation = { diskSize = 6 * 1024; -- cgit v1.3.1