aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/configuration.nix
diff options
context:
space:
mode:
Diffstat (limited to 'test/configuration.nix')
-rw-r--r--test/configuration.nix32
1 files changed, 1 insertions, 31 deletions
diff --git a/test/configuration.nix b/test/configuration.nix
index 93f1b39c..96b87a9d 100644
--- a/test/configuration.nix
+++ b/test/configuration.nix
@@ -5,37 +5,7 @@
...
}:
let
- testProgram =
- let
- inherit (pkgs)
- buildGoModule
- pkg-config
- util-linux
- ;
- in
- buildGoModule rec {
- pname = "check-sandbox";
- inherit (config.environment.fortify.package) version;
-
- src = builtins.path {
- name = "${pname}-src";
- path = lib.cleanSource ./.;
- filter = path: type: (type == "directory" && lib.hasSuffix "sandbox" path) || (type == "regular" && lib.hasSuffix ".go" path);
- };
- vendorHash = null;
-
- buildInputs = [ util-linux ];
- nativeBuildInputs = [ pkg-config ];
-
- preBuild = ''
- go mod init git.gensokyo.uk/security/fortify/test >& /dev/null
- '';
-
- postInstall = ''
- mv $out/bin/test $out/bin/fortify-test
- '';
- };
-
+ testProgram = pkgs.callPackage ./sandbox/tool/package.nix { inherit (config.environment.fortify.package) version; };
testCases = import ./sandbox/case lib testProgram;
in
{