forked from lix-project/lix
eldritch horrors
7ff1dca1fa
Turn derivation unit tests into unit characterization tests
(cherry picked from commit a6e587923c9d5d716fe0f0049bed96d1cc210bff)
Change-Id: Ia2a2e65aabfee8d5d52142b8fdaacbae4a27242c
29 lines
690 B
C++
29 lines
690 B
C++
#pragma once
|
|
///@file
|
|
|
|
namespace nix {
|
|
|
|
/**
|
|
* The path to the `unit-test-data` directory. See the contributing
|
|
* guide in the manual for further details.
|
|
*/
|
|
static Path getUnitTestData() {
|
|
return getEnv("_NIX_TEST_UNIT_DATA").value();
|
|
}
|
|
|
|
/**
|
|
* Whether we should update "golden masters" instead of running tests
|
|
* against them. See the contributing guide in the manual for further
|
|
* details.
|
|
*/
|
|
static bool testAccept() {
|
|
return getEnv("_NIX_TEST_ACCEPT") == "1";
|
|
}
|
|
|
|
constexpr std::string_view cannotReadGoldenMaster =
|
|
"Cannot read golden master because another test is also updating it";
|
|
|
|
constexpr std::string_view updatingGoldenMaster =
|
|
"Updating golden master";
|
|
}
|