aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/testing/common/env.h
diff options
context:
space:
mode:
authorbulatman <bulatman@yandex-team.ru>2022-02-10 16:45:50 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:50 +0300
commit2f6ca198245aeffd5e2d82b65927c2465b68b4f5 (patch)
tree9142afc54d335ea52910662635b898e79e192e49 /library/cpp/testing/common/env.h
parent6560e4993b14d193f8c879e33a3de5e5eba6e21d (diff)
downloadydb-2f6ca198245aeffd5e2d82b65927c2465b68b4f5.tar.gz
Restoring authorship annotation for <bulatman@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/testing/common/env.h')
-rw-r--r--library/cpp/testing/common/env.h44
1 files changed, 22 insertions, 22 deletions
diff --git a/library/cpp/testing/common/env.h b/library/cpp/testing/common/env.h
index 6846ba3016..7b89aa1bed 100644
--- a/library/cpp/testing/common/env.h
+++ b/library/cpp/testing/common/env.h
@@ -4,39 +4,39 @@
#include <util/folder/path.h>
#include <util/generic/string.h>
-#include <util/generic/strbuf.h>
-#include <util/system/src_location.h>
+#include <util/generic/strbuf.h>
+#include <util/system/src_location.h>
-// @brief return full path to arcadia root
-TString ArcadiaSourceRoot();
+// @brief return full path to arcadia root
+TString ArcadiaSourceRoot();
-// @brief return full path for file or folder specified by known source location `where` and `path` which is relative to parent folder of `where`
+// @brief return full path for file or folder specified by known source location `where` and `path` which is relative to parent folder of `where`
// for the instance: there is 2 files in folder test example_ut.cpp and example.data, so full path to test/example.data can be obtained
-// from example_ut.cpp as ArcadiaFromCurrentLocation(__SOURCE_FILE__, "example.data")
-TString ArcadiaFromCurrentLocation(TStringBuf where, TStringBuf path);
+// from example_ut.cpp as ArcadiaFromCurrentLocation(__SOURCE_FILE__, "example.data")
+TString ArcadiaFromCurrentLocation(TStringBuf where, TStringBuf path);
-// @brief return build folder path
-TString BuildRoot();
+// @brief return build folder path
+TString BuildRoot();
-// @brief return full path to built artefact, where path is relative from arcadia root
-TString BinaryPath(TStringBuf path);
+// @brief return full path to built artefact, where path is relative from arcadia root
+TString BinaryPath(TStringBuf path);
-// @brief return true if environment is testenv otherwise false
-bool FromYaTest();
+// @brief return true if environment is testenv otherwise false
+bool FromYaTest();
-// @brief returns TestsData dir (from env:ARCADIA_TESTS_DATA_DIR or path to existing folder `arcadia_tests_data` within parent folders)
-TString GetArcadiaTestsData();
+// @brief returns TestsData dir (from env:ARCADIA_TESTS_DATA_DIR or path to existing folder `arcadia_tests_data` within parent folders)
+TString GetArcadiaTestsData();
-// @brief return current working dir (from env:TEST_WORK_PATH or cwd)
-TString GetWorkPath();
+// @brief return current working dir (from env:TEST_WORK_PATH or cwd)
+TString GetWorkPath();
-// @brief return tests output path (workdir + testing_out_stuff)
-TFsPath GetOutputPath();
+// @brief return tests output path (workdir + testing_out_stuff)
+TFsPath GetOutputPath();
-// @brief return path from env:YA_TEST_RAM_DRIVE_PATH
+// @brief return path from env:YA_TEST_RAM_DRIVE_PATH
const TString& GetRamDrivePath();
-// @brief return path from env:YA_TEST_OUTPUT_RAM_DRIVE_PATH
+// @brief return path from env:YA_TEST_OUTPUT_RAM_DRIVE_PATH
const TString& GetOutputRamDrivePath();
// @brief return test parameter by name. If not exists, return an empty string
@@ -54,7 +54,7 @@ void WatchProcessCore(int pid, const TFsPath& binaryPath, const TFsPath& cwd = T
// @brief mark the process as successfully completed - a test machinery won't try to recover core dump file for the process
void StopProcessCoreWatching(int pid);
-#define SRC_(path) ArcadiaFromCurrentLocation(__SOURCE_FILE__, path)
+#define SRC_(path) ArcadiaFromCurrentLocation(__SOURCE_FILE__, path)
namespace NPrivate {
class TTestEnv {