From bcfc52cb8591de159070e2c89108d2c677f96359 Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Sun, 8 Dec 2019 21:39:45 +0100 Subject: [PATCH] tests: move git and files tests to directories --- tests/default.nix | 9 ++------- tests/modules/files/default.nix | 6 ++++++ tests/modules/programs/git/default.nix | 5 +++++ tests/modules/programs/{ => git}/git-expected.conf | 0 .../programs/{ => git}/git-with-email-expected.conf | 0 tests/modules/programs/{ => git}/git-with-email.nix | 2 +- .../{ => git}/git-with-str-extra-config-expected.conf | 0 .../programs/{ => git}/git-with-str-extra-config.nix | 0 tests/modules/programs/{ => git}/git.nix | 0 9 files changed, 14 insertions(+), 8 deletions(-) create mode 100644 tests/modules/files/default.nix create mode 100644 tests/modules/programs/git/default.nix rename tests/modules/programs/{ => git}/git-expected.conf (100%) rename tests/modules/programs/{ => git}/git-with-email-expected.conf (100%) rename tests/modules/programs/{ => git}/git-with-email.nix (93%) rename tests/modules/programs/{ => git}/git-with-str-extra-config-expected.conf (100%) rename tests/modules/programs/{ => git}/git-with-str-extra-config.nix (100%) rename tests/modules/programs/{ => git}/git.nix (100%) diff --git a/tests/default.nix b/tests/default.nix index 318e549b..95a0f16b 100644 --- a/tests/default.nix +++ b/tests/default.nix @@ -17,13 +17,6 @@ import nmt { testedAttrPath = [ "home" "activationPackage" ]; tests = { browserpass = ./modules/programs/browserpass.nix; - files-executable = ./modules/files/executable.nix; - files-hidden-source = ./modules/files/hidden-source.nix; - files-source-with-spaces = ./modules/files/source-with-spaces.nix; - files-text = ./modules/files/text.nix; - git-with-email = ./modules/programs/git-with-email.nix; - git-with-most-options = ./modules/programs/git.nix; - git-with-str-extra-config = ./modules/programs/git-with-str-extra-config.nix; mbsync = ./modules/programs/mbsync.nix; texlive-minimal = ./modules/programs/texlive-minimal.nix; xresources = ./modules/xresources.nix; @@ -41,10 +34,12 @@ import nmt { // import ./modules/services/sxhkd // import ./modules/systemd ) + // import ./modules/files // import ./modules/home-environment // import ./modules/misc/fontconfig // import ./modules/programs/alacritty // import ./modules/programs/bash + // import ./modules/programs/git // import ./modules/programs/gpg // import ./modules/programs/newsboat // import ./modules/programs/readline diff --git a/tests/modules/files/default.nix b/tests/modules/files/default.nix new file mode 100644 index 00000000..04c61d3b --- /dev/null +++ b/tests/modules/files/default.nix @@ -0,0 +1,6 @@ +{ + files-executable = ./executable.nix; + files-hidden-source = ./hidden-source.nix; + files-source-with-spaces = ./source-with-spaces.nix; + files-text = ./text.nix; +} diff --git a/tests/modules/programs/git/default.nix b/tests/modules/programs/git/default.nix new file mode 100644 index 00000000..45aface8 --- /dev/null +++ b/tests/modules/programs/git/default.nix @@ -0,0 +1,5 @@ +{ + git-with-email = ./git-with-email.nix; + git-with-most-options = ./git.nix; + git-with-str-extra-config = ./git-with-str-extra-config.nix; +} diff --git a/tests/modules/programs/git-expected.conf b/tests/modules/programs/git/git-expected.conf similarity index 100% rename from tests/modules/programs/git-expected.conf rename to tests/modules/programs/git/git-expected.conf diff --git a/tests/modules/programs/git-with-email-expected.conf b/tests/modules/programs/git/git-with-email-expected.conf similarity index 100% rename from tests/modules/programs/git-with-email-expected.conf rename to tests/modules/programs/git/git-with-email-expected.conf diff --git a/tests/modules/programs/git-with-email.nix b/tests/modules/programs/git/git-with-email.nix similarity index 93% rename from tests/modules/programs/git-with-email.nix rename to tests/modules/programs/git/git-with-email.nix index a7107aa8..35092198 100644 --- a/tests/modules/programs/git-with-email.nix +++ b/tests/modules/programs/git/git-with-email.nix @@ -3,7 +3,7 @@ with lib; { - imports = [ ../accounts/email-test-accounts.nix ]; + imports = [ ../../accounts/email-test-accounts.nix ]; config = { programs.git = { diff --git a/tests/modules/programs/git-with-str-extra-config-expected.conf b/tests/modules/programs/git/git-with-str-extra-config-expected.conf similarity index 100% rename from tests/modules/programs/git-with-str-extra-config-expected.conf rename to tests/modules/programs/git/git-with-str-extra-config-expected.conf diff --git a/tests/modules/programs/git-with-str-extra-config.nix b/tests/modules/programs/git/git-with-str-extra-config.nix similarity index 100% rename from tests/modules/programs/git-with-str-extra-config.nix rename to tests/modules/programs/git/git-with-str-extra-config.nix diff --git a/tests/modules/programs/git.nix b/tests/modules/programs/git/git.nix similarity index 100% rename from tests/modules/programs/git.nix rename to tests/modules/programs/git/git.nix