nix-super/src
John Ericson 91b6833686 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>
2023-12-01 10:48:58 -05:00
..
build-remote Allow dynamic derivation deps in inputDrvs 2023-09-07 10:39:37 -04:00
libcmd Merge pull request #6236 from obsidiansystems/store-dir-config 2023-12-01 15:38:14 +01:00
libexpr Move tests to separate directories, and document 2023-12-01 10:48:58 -05:00
libfetchers Allow user input in git commit 2023-11-24 11:45:37 +01:00
libmain Use buildprefix in a few more places 2023-11-29 19:49:07 -05:00
libstore Move tests to separate directories, and document 2023-12-01 10:48:58 -05:00
libutil Move tests to separate directories, and document 2023-12-01 10:48:58 -05:00
nix Merge pull request #9511 from obsidiansystems/add-missing-includes 2023-12-01 16:43:56 +01:00
nix-build Merge pull request #6236 from obsidiansystems/store-dir-config 2023-12-01 15:38:14 +01:00
nix-channel Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
nix-collect-garbage Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
nix-copy-closure Restrict some code to StoreDirConfig 2023-11-04 19:05:36 -04:00
nix-env Merge pull request #9257 from Artturin/nixenvjsondrvpath 2023-11-20 16:32:35 -05:00
nix-instantiate Split up util.{hh,cc} 2023-11-05 12:20:02 -05:00
nix-store Put canonicaliseTimestampAndPermissions in its own header/file 2023-11-21 12:57:59 -05: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