diff options
author | bulatman <bulatman@yandex-team.ru> | 2022-02-10 16:45:50 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:50 +0300 |
commit | 6560e4993b14d193f8c879e33a3de5e5eba6e21d (patch) | |
tree | cfd2e2baa05c3196f2caacbb63c32e1df40bc3de /library/cpp/testing/common/env.h | |
parent | 7489e4682331202b9c7d863c0898eb83d7b12c2b (diff) | |
download | ydb-6560e4993b14d193f8c879e33a3de5e5eba6e21d.tar.gz |
Restoring authorship annotation for <bulatman@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/testing/common/env.h')
-rw-r--r-- | library/cpp/testing/common/env.h | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/library/cpp/testing/common/env.h b/library/cpp/testing/common/env.h index 7b89aa1bed..6846ba3016 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 { |