Skip to content

Commit 0596769

Browse files
committed
Adding first draft of class containing business logic for handling OTA updates as well as test code
1 parent a952097 commit 0596769

File tree

8 files changed

+18035
-0
lines changed

8 files changed

+18035
-0
lines changed

extras/test/CMakeLists.txt

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
##########################################################################
2+
3+
cmake_minimum_required(VERSION 2.8)
4+
5+
##########################################################################
6+
7+
project(testArduinoIoTCloud)
8+
9+
##########################################################################
10+
11+
include_directories(include)
12+
include_directories(../../src/utility/ota)
13+
include_directories(external/catch/v2.12.1/include)
14+
15+
##########################################################################
16+
17+
set(CMAKE_CXX_STANDARD 11)
18+
19+
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
20+
21+
##########################################################################
22+
23+
set(TEST_TARGET testArduinoIoTCloud)
24+
25+
set(TEST_SRCS
26+
src/test_main.cpp
27+
src/test_OTALogic.cpp
28+
src/OTAStorage_Mock.cpp
29+
../../src/utility/ota/OTALogic.cpp
30+
)
31+
32+
##########################################################################
33+
34+
add_compile_options(-Wall -Wextra -Wpedantic -Werror)
35+
36+
##########################################################################
37+
38+
add_executable(
39+
${TEST_TARGET}
40+
${TEST_SRCS}
41+
)
42+
43+
##########################################################################
44+

0 commit comments

Comments
 (0)