All checks were successful
Test / Create distribution (push) Successful in 46s
Test / Sandbox (push) Successful in 2m40s
Test / Hakurei (push) Successful in 3m41s
Test / Hpkg (push) Successful in 4m42s
Test / Sandbox (race detector) (push) Successful in 4m53s
Test / Hakurei (race detector) (push) Successful in 5m53s
Test / ShareFS (push) Successful in 38m10s
Test / Flake checks (push) Successful in 1m46s
This is for passing files between applications, similar to android /sdcard. Signed-off-by: Ophestra <cat@gensokyo.uk>
45 lines
1.1 KiB
Nix
45 lines
1.1 KiB
Nix
{
|
|
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 'CC="clang -O3 -Werror" go test ./...'
|
|
'')
|
|
];
|
|
|
|
imports = [
|
|
./configuration.nix
|
|
|
|
self.nixosModules.hakurei
|
|
self.inputs.home-manager.nixosModules.home-manager
|
|
];
|
|
};
|
|
|
|
testScript = builtins.readFile ./test.py;
|
|
}
|