lix/src
John Ericson f7f37035c8 Move tests to separate directories, and document
Today, with the tests inside a `tests` intermingled with the
corresponding library's source code, we have a few problems:

- We have to be careful that wildcards don't end up with tests being
  built as part of Nix proper, or test headers being installed as part
  of Nix proper.

- Tests in libraries but not executables is not right:

  - It means each executable runs the previous unit tests again, because
    it needs the libraries.

  - It doesn't work right on Windows, which doesn't want you to load a
    DLL just for the side global variable . It could be made to work
    with the dlopen equivalent, but that's gross!

This reorg solves these problems.

There is a remaining problem which is that sibbling headers (like
`hash.hh` the test header vs `hash.hh` the main `libnixutil` header) end
up shadowing each other. This PR doesn't solve that. That is left as
future work for a future PR.

Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>

(cherry picked from commit 91b6833686a6a6d9eac7f3f66393ec89ef1d3b57)
(cherry picked from commit a61e42adb528b3d40ce43e07c79368d779a8b624)
2023-12-01 13:05:03 -05:00
..
build-remote Allow dynamic derivation deps in inputDrvs 2023-09-07 10:39:37 -04:00
libcmd Merge pull request #7661 from henrik-ch/repl-doc 2023-09-14 16:43:02 +02:00
libexpr Move tests to separate directories, and document 2023-12-01 13:05:03 -05:00
libfetchers Tarball trees: Propagate lastModified 2023-08-22 21:51:26 +02:00
libmain Prevent overriding virtual methods that are called in a destructor 2023-08-11 11:58:33 +02:00
libstore Move tests to separate directories, and document 2023-12-01 13:05:03 -05:00
libutil Move tests to separate directories, and document 2023-12-01 13:05:03 -05:00
nix backport fix for the --help output 2023-11-10 19:22:42 +01:00
nix-build Allow dynamic derivation deps in inputDrvs 2023-09-07 10:39:37 -04:00
nix-channel Factor out nix-defexpr path computation 2023-08-02 12:54:48 -04:00
nix-collect-garbage Clean up a few things related to profiles (#8526) 2023-06-19 04:04:59 +00:00
nix-copy-closure Remove FormatOrString and remaining uses of format() 2023-03-02 15:57:54 +01:00
nix-env Merge pull request #8735 from obsidiansystems/defexpr 2023-08-11 20:32:03 +02:00
nix-instantiate nix: Support the --repair flag 2023-04-28 17:03:04 +02:00
nix-store add nix-store --query --valid-derivers command 2023-08-24 11:37:24 +02:00
resolve-system-dependencies Remove FormatOrString and remaining uses of format() 2023-03-02 15:57:54 +01:00
toml11 Replace cpptoml with toml11 2021-12-17 22:03:33 +01:00