27 lines
662 B
C++
27 lines
662 B
C++
#include <gtest/gtest.h>
|
|
#include "probe.h"
|
|
#include <iostream>
|
|
#include <string>
|
|
#include <vector>
|
|
#include <set>
|
|
#include <sstream>
|
|
#include <regex>
|
|
#include <source_location>
|
|
#include "config.h"
|
|
#include <chrono>
|
|
#include "quill/LogMacros.h"
|
|
|
|
std::string TEST_CONFIG = std::string(getenv("MESON_SOURCE_ROOT")) + "/tests/testsConfig.yaml";
|
|
|
|
|
|
class probeTest : public ::testing::Test {};
|
|
|
|
TEST_F(probeTest, waitTest) {
|
|
auto start = std::chrono::high_resolution_clock::now();
|
|
serif::probe::wait(1);
|
|
auto end = std::chrono::high_resolution_clock::now();
|
|
std::chrono::duration<double> elapsed = end - start;
|
|
EXPECT_LE(elapsed.count(), 1.1);
|
|
}
|
|
|