16 lines
249 B
C++
16 lines
249 B
C++
#include "test-data.hh"
|
|
#include "strings.hh"
|
|
|
|
namespace nix {
|
|
|
|
Path getUnitTestData()
|
|
{
|
|
return getEnv("_NIX_TEST_UNIT_DATA").value();
|
|
}
|
|
|
|
Path getUnitTestDataPath(std::string_view path)
|
|
{
|
|
return absPath(getUnitTestData() + "/" + path);
|
|
}
|
|
|
|
}
|