diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-02-23 18:48:01 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-02-23 18:48:01 +0900 |
| commit | b6af8caffec91db14dfe3c1e095fd1fc84ecfd9e (patch) | |
| tree | 94b55fda497cfd43e258047933cb5e8869bd0d0d | |
| parent | e1a3549ea0ed7bfaed77f59e04bab70d7049750e (diff) | |
nix: clean up directory structure
Tests for fpkg is going to be in ./cmd/fpkg, so this central tests directory is no longer necessary.
Signed-off-by: Ophestra <cat@gensokyo.uk>
| -rw-r--r-- | flake.nix | 12 | ||||
| -rw-r--r-- | test/configuration.nix (renamed from tests/fortify/configuration.nix) | 0 | ||||
| -rw-r--r-- | test/default.nix (renamed from tests/fortify/default.nix) | 2 | ||||
| -rw-r--r-- | test/test.py (renamed from tests/fortify/test.py) | 0 |
4 files changed, 7 insertions, 7 deletions
@@ -57,6 +57,12 @@ ; in { + fortify = callPackage ./test { inherit system self; }; + race = callPackage ./test { + inherit system self; + withRace = true; + }; + formatting = runCommandLocal "check-formatting" { nativeBuildInputs = [ nixfmt-rfc-style ]; } '' cd ${./.} @@ -85,12 +91,6 @@ touch $out ''; - - fortify = callPackage ./tests/fortify { inherit system self; }; - race = callPackage ./tests/fortify { - inherit system self; - withRace = true; - }; } ); diff --git a/tests/fortify/configuration.nix b/test/configuration.nix index 0ac867af..0ac867af 100644 --- a/tests/fortify/configuration.nix +++ b/test/configuration.nix diff --git a/tests/fortify/default.nix b/test/default.nix index 4342567f..d803a235 100644 --- a/tests/fortify/default.nix +++ b/test/default.nix @@ -22,7 +22,7 @@ nixosTest { # Run with Go race detector: environment.fortify = lib.mkIf withRace rec { # race detector does not support static linking - package = (pkgs.callPackage ../../package.nix { }).overrideAttrs (previousAttrs: { + package = (pkgs.callPackage ../package.nix { }).overrideAttrs (previousAttrs: { GOFLAGS = previousAttrs.GOFLAGS ++ [ "-race" ]; }); fsuPackage = options.environment.fortify.fsuPackage.default.override { fortify = package; }; diff --git a/tests/fortify/test.py b/test/test.py index 4a7de1ee..4a7de1ee 100644 --- a/tests/fortify/test.py +++ b/test/test.py |
