5b7dcb3005
Fixes https://git.lix.systems/lix-project/lix/issues/268 Change-Id: I3f1b0ddf064f891cca8b53229c5c31c74cea3d9f
15 lines
490 B
Nix
15 lines
490 B
Nix
let
|
|
inherit (import ../util.nix) mkNixBuildTest;
|
|
in mkNixBuildTest rec {
|
|
name = "coredumps";
|
|
extraMachineConfig = { pkgs, ... }: {
|
|
boot.kernel.sysctl."kernel.core_pattern" = "core";
|
|
};
|
|
|
|
expressionFile = ./package.nix;
|
|
|
|
testScriptPost = ''
|
|
# do a test, but this time with coredumps enabled.
|
|
machine.succeed('nix-build --option enable-core-dumps true --expr "let pkgs = import <nixpkgs> {}; in pkgs.callPackage ${expressionFile} { shouldBePresent = true; }"')
|
|
'';
|
|
}
|