mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:59:37 +08:00
tests: integration tests only run on linux
Using dependencies that require linux. Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
@@ -34,7 +34,10 @@
|
||||
|
||||
integrationTestPackages =
|
||||
let
|
||||
tests = import ./integration { inherit pkgs; };
|
||||
tests = import ./integration {
|
||||
inherit pkgs;
|
||||
inherit (pkgs) lib;
|
||||
};
|
||||
renameTestPkg = n: lib.nameValuePair "integration-test-${n}";
|
||||
in
|
||||
lib.mapAttrs' renameTestPkg tests;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ pkgs }:
|
||||
{ lib, pkgs }:
|
||||
|
||||
let
|
||||
nixosLib = import "${pkgs.path}/nixos/lib" { };
|
||||
@@ -13,7 +13,7 @@ let
|
||||
hostPkgs = pkgs; # the Nixpkgs package set used outside the VMs
|
||||
};
|
||||
|
||||
tests = {
|
||||
tests = lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
|
||||
home-with-symbols = runTest ./standalone/home-with-symbols.nix;
|
||||
kitty = runTest ./standalone/kitty.nix;
|
||||
mu = runTest ./standalone/mu;
|
||||
|
||||
Reference in New Issue
Block a user