generated from LizardByte/template-base
-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: make system tests skipable via env (#37)
- Loading branch information
1 parent
f7804cc
commit 7db4252
Showing
6 changed files
with
107 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,29 @@ | ||
#pragma once | ||
|
||
// system includes | ||
#include <optional> | ||
#include <string> | ||
|
||
/** | ||
* @brief Test regular expression against string. | ||
* @return True if string matches the regex, false otherwise | ||
* @return True if string matches the regex, false otherwise. | ||
*/ | ||
bool | ||
testRegex(const std::string &test_pattern, const std::string ®ex_pattern); | ||
|
||
/** | ||
* @brief Set an environment variable. | ||
* @param name Name of the environment variable | ||
* @param value Value of the environment variable | ||
* @return 0 on success, non-zero error code on failure | ||
* @param name Name of the environment variable. | ||
* @param value Value of the environment variable. | ||
* @return 0 on success, non-zero error code on failure. | ||
*/ | ||
int | ||
setEnv(const std::string &name, const std::string &value); | ||
|
||
/** | ||
* @brief Get an environment variable. | ||
* @param name Name of the environment variable. | ||
* @return String value of the variable or an empty optional otherwise. | ||
*/ | ||
std::optional<std::string> | ||
getEnv(const std::string &name); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters