diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-05-07 18:04:59 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-05-07 19:43:06 +0900 |
| commit | 8d72b9e5bd8d99cbd32ce0ebe2f5da8e9b1d88ce (patch) | |
| tree | 403a00ccd0d1ed98795a4e739b72f2de12b34102 /cmd/sharefs | |
| parent | 8a3c3d145a560b91da1d9bce9070c20289b63502 (diff) | |
internal/pkg: optionally register binfmt
This transparently supports curing foreign exec artifacts.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'cmd/sharefs')
| -rw-r--r-- | cmd/sharefs/test/configuration.nix | 5 | ||||
| -rw-r--r-- | cmd/sharefs/test/default.nix | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/cmd/sharefs/test/configuration.nix b/cmd/sharefs/test/configuration.nix index e1f43b72..05d67dcb 100644 --- a/cmd/sharefs/test/configuration.nix +++ b/cmd/sharefs/test/configuration.nix @@ -20,11 +20,14 @@ }; virtualisation = { + # Hopefully reduces spurious test failures: + memorySize = if pkgs.stdenv.hostPlatform.is32bit then 2046 else 8192; + diskSize = 6 * 1024; qemu.options = [ # Increase test performance: - "-smp 8" + "-smp 16" ]; }; diff --git a/cmd/sharefs/test/default.nix b/cmd/sharefs/test/default.nix index 53ab8fc2..e963eaa6 100644 --- a/cmd/sharefs/test/default.nix +++ b/cmd/sharefs/test/default.nix @@ -28,7 +28,7 @@ testers.nixosTest { # 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 'CC="clang -O3 -Werror" go test ./...' + ${fhs}/bin/hakurei-fhs -c 'ROSA_SKIP_BINFMT=1 CC="clang -O3 -Werror" go test ./...' '') ]; |
