Skip to content

Commit

Permalink
actually run regression tests against git version of apparmor (on the…
Browse files Browse the repository at this point in the history
… full stack)
  • Loading branch information
LordGrimmauld committed Dec 20, 2024
1 parent 3325e1d commit 9012b47
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,19 @@
in
{
packages = aa_pkgs;
checks = aa_pkgs // {
apparmor-nixpkgs-test = (pkgs.extend self.overlays.default).nixosTests.apparmor;
checks = let
overlayed = pkgs.extend self.overlays.default;
in aa_pkgs // {
apparmor-nixpkgs-test = overlayed.nixosTests.apparmor // { nodes.machine.nixpkgs.overlays = [ self.overlays.default ]; }; # fixme: figure out overlay here
apparmor-regression-test = nixos-lib.runTest {
hostPkgs = pkgs.extend self.overlays.default;
hostPkgs = overlayed;
imports = lib.singleton {
name = "appaarmor-regression-test-vm";
nodes.test = {
security.apparmor.enable = true;
security.apparmor.enableCache = true; # e2e tess expects caches
security.auditd.enable = true;
nixpkgs.overlays = [ self.overlays.default ];
};
};
testScript = ''
Expand Down

0 comments on commit 9012b47

Please sign in to comment.