6d55ee536e
Test / Create distribution (push) Successful in 56s
Test / Sandbox (push) Successful in 2m53s
Test / ShareFS (push) Successful in 3m51s
Test / Hakurei (push) Successful in 4m11s
Test / Sandbox (race detector) (push) Successful in 5m29s
Test / Hakurei (race detector) (push) Successful in 6m41s
Test / Flake checks (push) Successful in 1m11s
These are too much clutter. Move them to test directory until the test suite replacement is upstreamed. Signed-off-by: Ophestra <cat@gensokyo.uk>
42 lines
1.1 KiB
Nix
42 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
testers,
|
|
|
|
self,
|
|
withRace ? false,
|
|
}:
|
|
|
|
testers.nixosTest {
|
|
name = "hakurei-sandbox" + (if withRace then "-race" else "");
|
|
nodes.machine =
|
|
{ options, pkgs, ... }:
|
|
{
|
|
# Run with Go race detector:
|
|
environment.hakurei = lib.mkIf withRace rec {
|
|
# race detector does not support static linking
|
|
package = (pkgs.callPackage ../package.nix { }).overrideAttrs (previousAttrs: {
|
|
env = previousAttrs.env // {
|
|
GOFLAGS = previousAttrs.env.GOFLAGS + " -race";
|
|
};
|
|
});
|
|
hsuPackage = options.environment.hakurei.hsuPackage.default.override { hakurei = package; };
|
|
};
|
|
|
|
imports = [
|
|
./configuration.nix
|
|
|
|
self.nixosModules.hakurei
|
|
self.inputs.home-manager.nixosModules.home-manager
|
|
];
|
|
};
|
|
|
|
# adapted from nixos sway integration tests
|
|
|
|
# testScriptWithTypes:49: error: Cannot call function of unknown type
|
|
# (machine.succeed if succeed else machine.execute)(
|
|
# ^
|
|
# Found 1 error in 1 file (checked 1 source file)
|
|
skipTypeCheck = true;
|
|
testScript = builtins.readFile ./test.py;
|
|
}
|