mirror of
https://github.com/NixOS/nix.git
synced 2025-11-28 13:11:00 +01:00
Turn derivation unit tests into unit characterization tests
The brings a number of advantages, including: - Easier to update test data if design changes (and I do think our derivation JSON is not yet complaint with the guidelines). - Easier to reuse test data in other implementations, inching closer to compliance tests for Nix *the concept* rather than any one implementation.
This commit is contained in:
parent
232e236672
commit
a419b61497
17 changed files with 228 additions and 155 deletions
|
|
@ -29,7 +29,7 @@ public:
|
|||
{
|
||||
if (testAccept())
|
||||
{
|
||||
GTEST_SKIP() << "Cannot read golden master because another test is also updating it";
|
||||
GTEST_SKIP() << cannotReadGoldenMaster;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -70,7 +70,7 @@ public:
|
|||
{
|
||||
createDirs(dirOf(file));
|
||||
writeFile(file, to.s);
|
||||
GTEST_SKIP() << "Updating golden master";
|
||||
GTEST_SKIP() << updatingGoldenMaster;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue