We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ee2879 commit bf8dfe1Copy full SHA for bf8dfe1
Tests/L2Tests/CMakeLists.txt
@@ -22,9 +22,7 @@ set(THUNDER_PORT 9998)
22
23
find_package(${NAMESPACE}Plugins REQUIRED)
24
25
-set (TEST_SRC
26
- tests/test_foo.cpp
27
-)
+set(SRC_FILES tests/test_foo.cpp)
28
29
if(PLUGIN_AVOUTPUT)
30
set(SRC_FILES ${SRC_FILES} tests/AVOutputTV_L2Test.cpp)
Tests/L2Tests/tests/test_foo.cpp
@@ -1,10 +1,11 @@
1
+#include <gtest/gtest.h>
2
#include <iostream>
3
-void foo() {
4
- std::cout << "Hello from foo()" << std::endl;
5
-}
6
7
-int main() {
8
- foo();
9
- return 0;
+class PrintTest : public ::testing::Test {
+};
+
+// Single test with print statement
+TEST_F(PrintTest, BasicOutput) {
10
+ std::cout << "this is a print statement" << std::endl;
11
}
0 commit comments