Nix 2.34.6
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::DerivationAdvancedAttrsTest Class Reference
Inheritance diagram for nix::DerivationAdvancedAttrsTest:
nix::CaDerivationAdvancedAttrsTest

Public Member Functions

std::filesystem::path goldenMaster (std::string_view testStem) const override
void testRequiredSystemFeatures (const std::string &fileName, const StringSet &expectedFeatures)
void testDerivationOptions (const std::string &fileName, const DerivationOptions< SingleDerivedPath > &expected, const StringSet &expectedSystemFeatures)

Public Attributes

ExperimentalFeatureSettings mockXpSettings

Protected Attributes

std::filesystem::path unitTestData = getUnitTestData() / "derivation" / "ia"

Member Function Documentation

◆ testDerivationOptions()

void nix::DerivationAdvancedAttrsTest::testDerivationOptions ( const std::string & fileName,
const DerivationOptions< SingleDerivedPath > & expected,
const StringSet & expectedSystemFeatures )
inline

Helper function to test DerivationOptions parsing and comparison

◆ testRequiredSystemFeatures()

void nix::DerivationAdvancedAttrsTest::testRequiredSystemFeatures ( const std::string & fileName,
const StringSet & expectedFeatures )
inline

Helper function to test getRequiredSystemFeatures for a given derivation file

Member Data Documentation

◆ mockXpSettings

ExperimentalFeatureSettings nix::DerivationAdvancedAttrsTest::mockXpSettings

We set these in tests rather than the regular globals so we don't have to worry about race conditions if the tests run concurrently.


The documentation for this class was generated from the following file:
  • /builddir/build/BUILD/nix-2.34.6-build/nix-2.34.6/src/libstore-tests/derivation-advanced-attrs.cc