From 177f01ced088d909170ea015e7db78c210001096 Mon Sep 17 00:00:00 2001 From: Pacman99 Date: Wed, 26 May 2021 08:32:11 -0700 Subject: [PATCH] tests: add proper check for rakeLeaves also drop mkSuites test, which is now deprecated --- tests/lib.nix | 19 +++++++------------ tests/profiles/t/{default.nix => bar.nix} | 0 2 files changed, 7 insertions(+), 12 deletions(-) rename tests/profiles/t/{default.nix => bar.nix} (100%) diff --git a/tests/lib.nix b/tests/lib.nix index dd2d002..c924d48 100644 --- a/tests/lib.nix +++ b/tests/lib.nix @@ -43,19 +43,14 @@ lib.runTests { }; }; - testSuites = { - expr = mkSuites { - suites = { profiles, ... }: with profiles; { - bar = [ foo f ]; + testRakeLeaves = { + expr = importers.rakeLeaves ./profiles; + expected = { + f = toString ./profiles/f.nix; + foo = toString ./profiles/foo; + t = { + bar = toString ./profiles/t/bar.nix; }; - profiles = [ (./profiles) ]; - }; - expected = { - bar = [ (toString ./profiles/foo) (toString ./profiles/f.nix) ]; - allProfiles = [ - (toString ./profiles/foo) - (toString ./profiles/f.nix) - ]; }; }; } diff --git a/tests/profiles/t/default.nix b/tests/profiles/t/bar.nix similarity index 100% rename from tests/profiles/t/default.nix rename to tests/profiles/t/bar.nix