diff options
author | 06kellyjac <dev@j-k.io> | 2023-04-05 10:47:26 +0100 |
---|---|---|
committer | 06kellyjac <dev@j-k.io> | 2023-04-05 10:47:26 +0100 |
commit | 27f407b4bbaf29a3c5b9daa0a69f01bb9659e74c (patch) | |
tree | e40b023fda9b340ea128fb8d9ca37b6d40da3d17 /nixos | |
parent | 6b53f55ddd07eca1ed9149eef5ae81d6ecf72054 (diff) |
tracee: 0.11.0 -> 0.13.0
Also split out into separate outputs and dropped tracee-* binaries due to the new single tracee binary Mark aarch64-linux as officially supported
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/tests/tracee.nix | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/nixos/tests/tracee.nix b/nixos/tests/tracee.nix index 1609d3abc69fd..8ec86ef091ef7 100644 --- a/nixos/tests/tracee.nix +++ b/nixos/tests/tracee.nix @@ -1,5 +1,7 @@ import ./make-test-python.nix ({ pkgs, ... }: { name = "tracee-integration"; + meta.maintainers = pkgs.tracee.meta.maintainers; + nodes = { machine = { config, pkgs, ... }: { # EventFilters/trace_only_events_from_new_containers and @@ -7,11 +9,11 @@ import ./make-test-python.nix ({ pkgs, ... }: { # require docker/dockerd virtualisation.docker.enable = true; - environment.systemPackages = [ + environment.systemPackages = with pkgs; [ # required by Test_EventFilters/trace_events_from_ls_and_which_binary_in_separate_scopes - pkgs.which + which # build the go integration tests as a binary - (pkgs.tracee.overrideAttrs (oa: { + (tracee.overrideAttrs (oa: { pname = oa.pname + "-integration"; postPatch = oa.postPatch or "" + '' # prepare tester.sh (which will be embedded in the test binary) @@ -20,10 +22,11 @@ import ./make-test-python.nix ({ pkgs, ... }: { # fix the test to look at nixos paths for running programs substituteInPlace tests/integration/integration_test.go \ --replace "bin=/usr/bin/" "comm=" \ + --replace "binary=/usr/bin/" "comm=" \ --replace "/usr/bin/dockerd" "dockerd" \ --replace "/usr/bin" "/run/current-system/sw/bin" ''; - nativeBuildInputs = oa.nativeBuildInputs or [ ] ++ [ pkgs.makeWrapper ]; + nativeBuildInputs = oa.nativeBuildInputs or [ ] ++ [ makeWrapper ]; buildPhase = '' runHook preBuild # just build the static lib we need for the go test binary @@ -34,6 +37,7 @@ import ./make-test-python.nix ({ pkgs, ... }: { runHook postBuild ''; doCheck = false; + outputs = [ "out" ]; installPhase = '' mkdir -p $out/bin mv $GOPATH/tracee-integration $out/bin/ |