aboutsummaryrefslogtreecommitdiff
path: root/unittests/Makefile
diff options
context:
space:
mode:
authorDaniel Agar <daniel@agar.ca>2015-01-05 18:50:26 -0500
committerDaniel Agar <daniel@agar.ca>2015-01-05 18:50:26 -0500
commit322362d5e0adac332c1fab968831f0569460afd5 (patch)
tree414188c9ce07780964a7c0660c401260785ea59e /unittests/Makefile
parent4a09e6370a9d730af001a3c5f2736e69e8c170c2 (diff)
downloadpx4-firmware-322362d5e0adac332c1fab968831f0569460afd5.tar.gz
px4-firmware-322362d5e0adac332c1fab968831f0569460afd5.tar.bz2
px4-firmware-322362d5e0adac332c1fab968831f0569460afd5.zip
move st24_test to cmake and run tests from original unittests working directory
Diffstat (limited to 'unittests/Makefile')
-rw-r--r--unittests/Makefile14
1 files changed, 3 insertions, 11 deletions
diff --git a/unittests/Makefile b/unittests/Makefile
index 1d6db6817..eb15ebbea 100644
--- a/unittests/Makefile
+++ b/unittests/Makefile
@@ -40,11 +40,7 @@ gtest_main.a: gtest-all.o gtest_main.o
$(AR) $(ARFLAGS) $@ $^
-all: st24_test sf0x_test
-
-ST24_FILES=../src/lib/rc/st24.c \
- hrt.cpp \
- st24_test.cpp
+all: sf0x_test
SF0X_FILES= \
hrt.cpp \
@@ -54,17 +50,13 @@ SF0X_FILES= \
sf0x_test: $(SF0X_FILES)
$(CC) -o sf0x_test $(SF0X_FILES) $(CFLAGS)
-st24_test: $(ST24_FILES)
- $(CC) -o st24_test $(ST24_FILES) $(CFLAGS)
-
cmake_gtests:
mkdir -p build
cd build && CC=gcc cmake .. && $(MAKE) check
-unittests: clean sf0x_test st24_test cmake_gtests
+unittests: clean sf0x_test cmake_gtests
./sf0x_test
- ./st24_test
.PHONY: clean
clean:
- rm -rf gtest.a gtest_main.a *.o $(ODIR)/*.o *~ core $(INCDIR)/*~ sample_unittest st24_test sf0x_test build
+ rm -rf gtest.a gtest_main.a *.o $(ODIR)/*.o *~ core $(INCDIR)/*~ sample_unittest sf0x_test build