Merge changes Ib27cb43d,I03687b8b into main
* changes: testsuite: override NIX_CONF_DIR and NIX_USER_CONF_FILES Remove some outdated `make test` invocation suggestions
This commit is contained in:
commit
7f7a38f278
|
@ -133,7 +133,7 @@ static std::string indent(std::string_view indentFirst, std::string_view indentR
|
|||
/**
|
||||
* A development aid for finding missing positions, to improve error messages. Example use:
|
||||
*
|
||||
* NIX_DEVELOPER_SHOW_UNKNOWN_LOCATIONS=1 _NIX_TEST_ACCEPT=1 make tests/lang.sh.test
|
||||
* NIX_DEVELOPER_SHOW_UNKNOWN_LOCATIONS=1 _NIX_TEST_ACCEPT=1 just test --suite installcheck -v functional-lang
|
||||
* git diff -U20 tests
|
||||
*
|
||||
*/
|
||||
|
|
|
@ -155,7 +155,7 @@ else
|
|||
echo ''
|
||||
echo 'You can rerun this test with:'
|
||||
echo ''
|
||||
echo ' _NIX_TEST_ACCEPT=1 make tests/functional/lang.sh.test'
|
||||
echo ' _NIX_TEST_ACCEPT=1 just test --suite installcheck -v functional-lang'
|
||||
echo ''
|
||||
echo 'to regenerate the files containing the expected output,'
|
||||
echo 'and then view the git diff to decide whether a change is'
|
||||
|
|
|
@ -12,7 +12,11 @@
|
|||
# It's only ~200 lines; better to just refactor the tests themselves which we'll want to do anyway.
|
||||
|
||||
default_test_env = {
|
||||
'ASAN_OPTIONS': 'detect_leaks=0:halt_on_error=1:abort_on_error=1:print_summary=1:dump_instruction_bytes=1'
|
||||
'ASAN_OPTIONS': 'detect_leaks=0:halt_on_error=1:abort_on_error=1:print_summary=1:dump_instruction_bytes=1',
|
||||
# Prevents loading global configuration file in /etc/nix/nix.conf in tests 😱
|
||||
'NIX_CONF_DIR': '/var/empty',
|
||||
# Prevent loading user configuration files in tests
|
||||
'NIX_USER_CONF_FILES': '',
|
||||
}
|
||||
|
||||
libutil_test_support_sources = files(
|
||||
|
|
Loading…
Reference in a new issue