mirror of
https://github.com/NixOS/nix.git
synced 2024-10-29 21:30:51 +00:00
a61e42adb5
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 91b6833686
)
147 lines
2.6 KiB
Plaintext
147 lines
2.6 KiB
Plaintext
Makefile.config
|
|
perl/Makefile.config
|
|
|
|
# /
|
|
/aclocal.m4
|
|
/autom4te.cache
|
|
/precompiled-headers.h.gch
|
|
/config.*
|
|
/configure
|
|
/stamp-h1
|
|
/svn-revision
|
|
/libtool
|
|
|
|
# /doc/manual/
|
|
/doc/manual/*.1
|
|
/doc/manual/*.5
|
|
/doc/manual/*.8
|
|
/doc/manual/generated/*
|
|
/doc/manual/nix.json
|
|
/doc/manual/conf-file.json
|
|
/doc/manual/language.json
|
|
/doc/manual/xp-features.json
|
|
/doc/manual/src/SUMMARY.md
|
|
/doc/manual/src/command-ref/new-cli
|
|
/doc/manual/src/command-ref/conf-file.md
|
|
/doc/manual/src/command-ref/experimental-features-shortlist.md
|
|
/doc/manual/src/contributing/experimental-feature-descriptions.md
|
|
/doc/manual/src/language/builtins.md
|
|
/doc/manual/src/language/builtin-constants.md
|
|
|
|
# /scripts/
|
|
/scripts/nix-profile.sh
|
|
/scripts/nix-profile-daemon.sh
|
|
/scripts/nix-profile.fish
|
|
/scripts/nix-profile-daemon.fish
|
|
|
|
# /src/libexpr/
|
|
/src/libexpr/lexer-tab.cc
|
|
/src/libexpr/lexer-tab.hh
|
|
/src/libexpr/parser-tab.cc
|
|
/src/libexpr/parser-tab.hh
|
|
/src/libexpr/parser-tab.output
|
|
/src/libexpr/nix.tbl
|
|
/tests/unit/libexpr/libnixexpr-tests
|
|
|
|
# /src/libstore/
|
|
*.gen.*
|
|
/tests/unit/libstore/libnixstore-tests
|
|
|
|
# /src/libutil/
|
|
/tests/unit/libutil/libnixutil-tests
|
|
|
|
/src/nix/nix
|
|
|
|
/src/nix/doc
|
|
|
|
# /src/nix-env/
|
|
/src/nix-env/nix-env
|
|
|
|
# /src/nix-instantiate/
|
|
/src/nix-instantiate/nix-instantiate
|
|
|
|
# /src/nix-store/
|
|
/src/nix-store/nix-store
|
|
|
|
/src/nix-prefetch-url/nix-prefetch-url
|
|
|
|
/src/nix-collect-garbage/nix-collect-garbage
|
|
|
|
# /src/nix-channel/
|
|
/src/nix-channel/nix-channel
|
|
|
|
# /src/nix-build/
|
|
/src/nix-build/nix-build
|
|
|
|
/src/nix-copy-closure/nix-copy-closure
|
|
|
|
/src/error-demo/error-demo
|
|
|
|
/src/build-remote/build-remote
|
|
|
|
# /tests/functional/
|
|
/tests/functional/test-tmp
|
|
/tests/functional/common/vars-and-functions.sh
|
|
/tests/functional/result*
|
|
/tests/functional/restricted-innocent
|
|
/tests/functional/shell
|
|
/tests/functional/shell.drv
|
|
/tests/functional/config.nix
|
|
/tests/functional/ca/config.nix
|
|
/tests/functional/dyn-drv/config.nix
|
|
/tests/functional/repl-result-out
|
|
/tests/functional/test-libstoreconsumer/test-libstoreconsumer
|
|
|
|
# /tests/functional/lang/
|
|
/tests/functional/lang/*.out
|
|
/tests/functional/lang/*.out.xml
|
|
/tests/functional/lang/*.err
|
|
/tests/functional/lang/*.ast
|
|
|
|
/perl/lib/Nix/Config.pm
|
|
/perl/lib/Nix/Store.cc
|
|
|
|
/misc/systemd/nix-daemon.service
|
|
/misc/systemd/nix-daemon.socket
|
|
/misc/systemd/nix-daemon.conf
|
|
/misc/upstart/nix-daemon.conf
|
|
|
|
/src/resolve-system-dependencies/resolve-system-dependencies
|
|
|
|
outputs/
|
|
|
|
*.a
|
|
*.o
|
|
*.o.tmp
|
|
*.so
|
|
*.dylib
|
|
*.dll
|
|
*.exe
|
|
*.dep
|
|
*~
|
|
*.pc
|
|
*.plist
|
|
|
|
# GNU Global
|
|
GPATH
|
|
GRTAGS
|
|
GSYMS
|
|
GTAGS
|
|
|
|
# ccls
|
|
/.ccls-cache
|
|
|
|
# auto-generated compilation database
|
|
compile_commands.json
|
|
|
|
nix-rust/target
|
|
|
|
result
|
|
|
|
# IDE
|
|
.vscode/
|
|
.idea/
|
|
|
|
# clangd and possibly more
|
|
.cache/
|