File tree Expand file tree Collapse file tree 7 files changed +17
-6
lines changed
Expand file tree Collapse file tree 7 files changed +17
-6
lines changed Original file line number Diff line number Diff line change 1+ language : cpp
2+ compiler :
3+ - gcc
4+ script : make test
Original file line number Diff line number Diff line change 11CXX ?= g++
22CXXFLAGS ?= -g -Wall -W -Winline -ansi
33CXXFLAGS += -Ilib/tropicssl/include -Isrc -Itests/UnitTest++/src
4- LDFLAGS ?=
54RM = rm
65
76.SUFFIXES : .o .cpp
@@ -10,7 +9,8 @@ name = SparkCoreCommunication
109lib = src/lib$(name ) .a
1110test = tests/test$(name )
1211testlibdir = tests/UnitTest++
13- testlib = $(testlibdir ) /libUnitTest++.a
12+ testlib = UnitTest++
13+ testlibpath = $(testlibdir ) /lib$(testlib ) .a
1414testrunner = tests/Main.cpp
1515ssllibdir = lib/tropicssl/library
1616ssllib = $(ssllibdir ) /libtropicssl.a
@@ -31,6 +31,7 @@ testobjects = tests/ConstructorFixture.o \
3131 tests/TestUserFunctions.o \
3232 tests/TestEvents.o
3333
34+ LDFLAGS ?= -L$(ssllibdir ) -ltropicssl -Lsrc -l$(name ) -L$(testlibdir ) -l$(testlib )
3435
3536all : $(lib )
3637
@@ -47,13 +48,12 @@ clean:
4748
4849# ############## tests #############
4950
50- test : $(lib ) $(testlib ) $(testobjects ) $(ssllib )
51- @$(CXX ) $(CXXFLAGS ) $(LDFLAGS ) -o $(test ) $(testlib ) \
52- $(lib) $(ssllib) $(testobjects) $(testrunner)
51+ test : $(lib ) $(testlibpath ) $(testobjects ) $(ssllib )
52+ @$(CXX ) $(testrunner ) $(CXXFLAGS ) $(testobjects ) $(LDFLAGS ) -o $(test )
5353 @echo running unit tests...
5454 @./$(test )
5555
56- $(testlib ) :
56+ $(testlibpath ) :
5757 $(MAKE ) -C $(testlibdir )
5858
5959testclean :
Original file line number Diff line number Diff line change 1+ [ ![ Build Status] ( https://travis-ci.org/spark/core-communication-lib.svg )] ( https://travis-ci.org/spark/core-communication-lib )
2+
13# Core Communication Library
24
35This repository holds the firmware libraries used for the communication between the Spark Core and the Cloud service.
Original file line number Diff line number Diff line change 1+ #include < stdint.h>
2+ #include < string.h>
13#include " UnitTest++.h"
24#include " tropicssl/aes.h"
35
Original file line number Diff line number Diff line change 1+ #include < string.h>
12#include " UnitTest++.h"
23#include " spark_descriptor.h"
34
Original file line number Diff line number Diff line change 2222 License along with this library; if not, see <http://www.gnu.org/licenses/>.
2323 ******************************************************************************
2424 */
25+ #include < string.h>
2526#include " UnitTest++.h"
2627#include " events.h"
2728
Original file line number Diff line number Diff line change 1+ #include < stdint.h>
12#include " UnitTest++.h"
23#include " handshake.h"
34#include " tropicssl/rsa.h"
You can’t perform that action at this time.
0 commit comments