home-manager/tests
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
..
lib/types lib: add two new gvariant types 2022-09-29 13:05:51 +02:00
modules flake: Expose tests to allow running purely (#3412) 2022-11-27 01:37:24 +01:00
asserts.nix tests: fix test.assert.assertions.enable not working 2021-10-13 01:29:23 +02:00
big-test.nix tests: make enableBig an option 2022-01-02 10:36:52 +01:00
default.nix thunderbird: add module 2022-11-04 16:12:12 +01:00
stubs.nix tests.stubs: set pname 2022-08-12 20:49:49 +02:00