move sf0x_test to gtest

This commit is contained in:
Daniel Agar
2015-01-07 23:17:31 -05:00
parent a4db73dad8
commit cc2d0f00d6
2 changed files with 7 additions and 14 deletions
-1
View File
@@ -69,6 +69,5 @@ add_executable(st24_test st24_test.cpp hrt.cpp ${PX_SRC}/lib/rc/st24.c)
add_gtest(st24_test)
# sf0x_test
# TODO: move to gtest
add_executable(sf0x_test sf0x_test.cpp ${PX_SRC}/drivers/sf0x/sf0x_parser.cpp)
add_gtest(sf0x_test)
+7 -13
View File
@@ -1,19 +1,15 @@
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <systemlib/err.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <drivers/drv_hrt.h>
#include <drivers/sf0x/sf0x_parser.h>
#include <systemlib/err.h>
int main(int argc, char *argv[])
{
warnx("SF0X test started");
int ret = 0;
#include "gtest/gtest.h"
TEST(SF0XTest, SF0X) {
const char LINE_MAX = 20;
char _linebuf[LINE_MAX];
_linebuf[0] = '\0';
@@ -60,6 +56,4 @@ int main(int argc, char *argv[])
}
warnx("test finished");
return ret;
}