aboutsummaryrefslogtreecommitdiff
path: root/tests/unit/libstore-support
diff options
context:
space:
mode:
authorRebecca Turner <rbt@sent.as>2024-08-26 09:28:14 -0700
committerRebecca Turner <rbt@sent.as>2024-09-01 15:52:48 -0700
commit75c0de3e3cbd972328c7d0c6fdea79abbfa204df (patch)
treefd7217cf74435eb1d9d5abfcd75df33caa02fe50 /tests/unit/libstore-support
parent02eb07cfd539c34c080cb1baf042e5e780c1fcc2 (diff)
Test including relative paths in configuration
Change-Id: If6c69a5e16d1ccd223fba392890f08f0032fb754
Diffstat (limited to 'tests/unit/libstore-support')
-rw-r--r--tests/unit/libstore-support/tests/test-data.hh25
1 files changed, 0 insertions, 25 deletions
diff --git a/tests/unit/libstore-support/tests/test-data.hh b/tests/unit/libstore-support/tests/test-data.hh
deleted file mode 100644
index 1fec6f912..000000000
--- a/tests/unit/libstore-support/tests/test-data.hh
+++ /dev/null
@@ -1,25 +0,0 @@
-#pragma once
-
-#include "environment-variables.hh"
-#include "types.hh"
-
-namespace nix {
-
-// TODO: These helpers should be available in all unit tests.
-
-/**
- * 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();
-}
-
-/**
- * Resolve a path under the unit test data directory to an absolute path.
- */
-static Path getUnitTestDataPath(std::string_view path) {
- return absPath(getUnitTestData() + "/" + path);
-}
-
-}