mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01: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:
parent
9fa2ad30c5
commit
7a02711a61
2 changed files with 6 additions and 3 deletions
|
|
@ -34,7 +34,10 @@
|
||||||
|
|
||||||
integrationTestPackages =
|
integrationTestPackages =
|
||||||
let
|
let
|
||||||
tests = import ./integration { inherit pkgs; };
|
tests = import ./integration {
|
||||||
|
inherit pkgs;
|
||||||
|
inherit (pkgs) lib;
|
||||||
|
};
|
||||||
renameTestPkg = n: lib.nameValuePair "integration-test-${n}";
|
renameTestPkg = n: lib.nameValuePair "integration-test-${n}";
|
||||||
in
|
in
|
||||||
lib.mapAttrs' renameTestPkg tests;
|
lib.mapAttrs' renameTestPkg tests;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs }:
|
{ lib, pkgs }:
|
||||||
|
|
||||||
let
|
let
|
||||||
nixosLib = import "${pkgs.path}/nixos/lib" { };
|
nixosLib = import "${pkgs.path}/nixos/lib" { };
|
||||||
|
|
@ -13,7 +13,7 @@ let
|
||||||
hostPkgs = pkgs; # the Nixpkgs package set used outside the VMs
|
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;
|
home-with-symbols = runTest ./standalone/home-with-symbols.nix;
|
||||||
kitty = runTest ./standalone/kitty.nix;
|
kitty = runTest ./standalone/kitty.nix;
|
||||||
mu = runTest ./standalone/mu;
|
mu = runTest ./standalone/mu;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue