mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-01 02:41:48 +00:00
Enable unit tests.
This commit is contained in:
@@ -126,10 +126,9 @@ project(':native') {
|
||||
|
||||
apply from: "${rootDir}/toolchains/native.gradle"
|
||||
|
||||
// TODO
|
||||
//if (!project.hasProperty("withoutTests")) {
|
||||
// apply from: "${rootDir}/test/tests.gradle"
|
||||
//}
|
||||
if (!project.hasProperty("withoutTests")) {
|
||||
apply from: "${rootDir}/test/tests.gradle"
|
||||
}
|
||||
|
||||
if (includeJava) {
|
||||
apply from: "${rootDir}/java/java.gradle"
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
#include "cameraserver.h"
|
||||
|
||||
namespace cs {
|
||||
|
||||
class CameraSourceTest : public ::testing::Test {
|
||||
@@ -15,8 +17,8 @@ class CameraSourceTest : public ::testing::Test {
|
||||
}
|
||||
};
|
||||
|
||||
TEST_F(CameraSourceTest, CreateHTTP) {
|
||||
auto source = CameraSource::CreateHTTP("http", "http://localhost:8000");
|
||||
TEST_F(CameraSourceTest, HTTPCamera) {
|
||||
auto source = HTTPCamera("axis", "http://localhost:8000");
|
||||
}
|
||||
|
||||
} // namespace cs
|
||||
|
||||
Reference in New Issue
Block a user