mirror of
https://github.com/vgough/encfs.git
synced 2025-01-25 07:08:36 +01:00
5f0806c5cc
git-vendor-name: easylogging git-vendor-dir: vendor/github.com/muflihun/easyloggingpp git-vendor-repository: https://github.com/muflihun/easyloggingpp git-vendor-ref: master
19 lines
456 B
C++
19 lines
456 B
C++
#ifndef OS_UTILS_TEST_H
|
|
#define OS_UTILS_TEST_H
|
|
|
|
#include "test.h"
|
|
|
|
#if ELPP_OS_UNIX
|
|
TEST(OSUtilsTest, GetBashOutput) {
|
|
const char* bashCommand = "echo 'test'";
|
|
std::string bashResult = OS::getBashOutput(bashCommand);
|
|
EXPECT_EQ("test", bashResult);
|
|
}
|
|
#endif
|
|
|
|
TEST(OSUtilsTest, GetEnvironmentVariable) {
|
|
std::string variable = OS::getEnvironmentVariable("PATH", "pathResult");
|
|
EXPECT_FALSE(variable.empty());
|
|
}
|
|
#endif // OS_UTILS_TEST_H
|