aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/sharefs/default.nix
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-10-01 17:00:46 +0900
committerOphestra <cat@gensokyo.uk>2026-10-01 21:44:30 +0900
commit6a144f780ab62a5e6936d8f551dd03f51b11a153 (patch)
treed3bb149739945becd2d0330d678f7ada620953f4 /test/sharefs/default.nix
parenta356dceedf0be29ae584866e540872ec1c048f59 (diff)
test/sharefs: migrate tests
This runs tests directly in the container, significantly reducing overhead introduced by virtualisation. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'test/sharefs/default.nix')
-rw-r--r--test/sharefs/default.nix44
1 files changed, 0 insertions, 44 deletions
diff --git a/test/sharefs/default.nix b/test/sharefs/default.nix
deleted file mode 100644
index e963eaa6..00000000
--- a/test/sharefs/default.nix
+++ /dev/null
@@ -1,44 +0,0 @@
-{
- testers,
-
- system,
- self,
-}:
-testers.nixosTest {
- name = "sharefs";
- nodes.machine =
- { options, pkgs, ... }:
- let
- fhs =
- let
- hakurei = options.environment.hakurei.package.default;
- in
- pkgs.buildFHSEnv {
- pname = "hakurei-fhs";
- inherit (hakurei) version;
- targetPkgs = _: hakurei.targetPkgs;
- extraOutputsToInstall = [ "dev" ];
- profile = ''
- export PKG_CONFIG_PATH="/usr/share/pkgconfig:$PKG_CONFIG_PATH"
- '';
- };
- in
- {
- environment.systemPackages = [
- # For go tests:
- (pkgs.writeShellScriptBin "sharefs-workload-hakurei-tests" ''
- cp -r "${self.packages.${system}.hakurei.src}" "/sdcard/hakurei" && cd "/sdcard/hakurei"
- ${fhs}/bin/hakurei-fhs -c 'ROSA_SKIP_BINFMT=1 CC="clang -O3 -Werror" go test ./...'
- '')
- ];
-
- imports = [
- ./configuration.nix
-
- self.nixosModules.hakurei
- self.inputs.home-manager.nixosModules.home-manager
- ];
- };
-
- testScript = builtins.readFile ./test.py;
-}