Unverified Commit 4d1ce91d authored by Paul Haerle's avatar Paul Haerle Committed by GitHub
Browse files

nixos/tests/blint: init (#431761)

parents f33d8f6d 3a74dd53
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -273,6 +273,7 @@ in
  bitbox-bridge = runTest ./bitbox-bridge.nix;
  bitcoind = runTest ./bitcoind.nix;
  bittorrent = runTest ./bittorrent.nix;
  blint = runTest ./blint.nix;
  blockbook-frontend = runTest ./blockbook-frontend.nix;
  blocky = runTest ./blocky.nix;
  bookstack = runTest ./bookstack.nix;

nixos/tests/blint.nix

0 → 100644
+30 −0
Original line number Diff line number Diff line
{
  lib,
  pkgs,
  ...
}:

{
  name = "owasp blint test";

  meta.maintainers = with lib; [
    maintainers.ethancedwards8
    teams.ngi
  ];

  nodes.machine = {
    environment.systemPackages = with pkgs; [
      blint
      jq
    ];
  };

  testScript =
    { nodes, ... }:
    ''
      start_all()

      machine.succeed('blint -i ${lib.getExe pkgs.ripgrep} -o /tmp/ripgrep')
      machine.succeed('jq . /tmp/ripgrep/*.json')
    '';
}
+3 −0
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
  python3Packages,
  fetchFromGitHub,
  versionCheckHook,
  nixosTests,
}:

python3Packages.buildPythonApplication rec {
@@ -57,6 +58,8 @@ python3Packages.buildPythonApplication rec {
    "test_demangle"
  ];

  passthru.tests = { inherit (nixosTests) blint; };

  meta = {
    description = "Binary Linter to check the security properties, and capabilities in executables";
    homepage = "https://github.com/owasp-dep-scan/blint";