1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-05 02:39:45 +01:00
home-manager/tests/modules
Andrew Marshall cc58d31953
flake: Expose tests to allow running purely (#3412)
* flake: Expose tests to allow running purely

The existing way to run tests with `nix-shell` relies on impure usage of
`<nixpkgs>`. This can lead to failures when the local nixpkgs is
incompatible with the locked one. I.e., where CI is passing but a
contributor may experience a failure.

So, expose tests as `devShells.tests` to use the locked nixpkgs and
allow easy invocation via `nix develop`.

* tests: Remove impure path

With Nix 2.10+ and pure evaluation mode e.g.

```
nix run nixpkgs/nixos-unstable#nixVersions.nix_2_10 -- develop -i .#tests.zplug-modules
```

this test would fail with:

> error: the path '~/.customZplugHome' can not be resolved in pure mode

Since the test only cares that it is a path, rather than anything about
its contents, use a dummy empty directory.
2022-11-27 01:37:24 +01:00
..
accounts tests: allow testing assertions 2021-02-07 22:48:22 +01:00
config/i18n i18n: set the appropriate LOCALE_ARCHIVE_x_xx variable (#1659) 2021-01-23 15:56:38 +01:00
files files: assert that target files are unique 2021-06-27 17:10:45 +02:00
home-environment treewide: apply nixfmt to a few more files 2022-02-27 02:19:44 +01:00
i18n/input-method kime: Fix kime systemd service broken (#2621) 2022-01-17 13:53:42 -05:00
launchd launchd: initial support for LaunchAgents 2022-02-26 10:32:19 +01:00
misc xdg-user-dirs: allow setting to null to skip setting 2022-11-13 10:38:54 +01:00
programs flake: Expose tests to allow running purely (#3412) 2022-11-27 01:37:24 +01:00
services polybar: don't generate config if no options are set (#3383) 2022-11-27 01:17:28 +01:00
systemd systemd: name slice unit correctly 2022-10-07 16:07:53 +11:00
targets-darwin darwin: use full path to commands in activation script 2022-11-05 12:14:08 +09:00
targets-linux xdg.systemDirs: init module (#1797) 2021-05-10 20:14:42 -04:00
xresources xresources: add missing test file 2020-06-28 11:23:34 +02:00