-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[#176] Basic unit tests
- Loading branch information
Showing
12 changed files
with
57 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,6 @@ build | |
support/nos3_install.log | ||
tmp | ||
core.* | ||
.cdskeyfile | ||
.reservedkeyfile | ||
.resetkeyfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# This example toolchain file describes the cross compiler to use for | ||
# the target architecture indicated in the configuration file. | ||
|
||
# Basic cross system configuration | ||
SET(CMAKE_SYSTEM_NAME Linux) | ||
SET(CMAKE_SYSTEM_VERSION 1) | ||
SET(CMAKE_SYSTEM_PROCESSOR amd64) | ||
|
||
# Specify the cross compiler executables | ||
# Typically these would be installed in a home directory or somewhere | ||
# in /opt. However in this example the system compiler is used. | ||
SET(CMAKE_C_COMPILER "/usr/bin/gcc") | ||
SET(CMAKE_CXX_COMPILER "/usr/bin/g++") | ||
|
||
# Configure the find commands | ||
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) | ||
SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY NEVER) | ||
SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE NEVER) | ||
|
||
# These variable settings are specific to cFE/OSAL and determines which | ||
# abstraction layers are built when using this toolchain | ||
SET(CFE_SYSTEM_PSPNAME "pc-linux") | ||
SET(OSAL_SYSTEM_OSTYPE "posix") | ||
|
||
#SET(CMAKE_C_FLAGS_INIT "" CACHE STRING "C Flags required by platform") | ||
#SET(CMAKE_SHARED_LINKER_FLAGS "-pg") | ||
|
||
# Build Specific | ||
add_definitions(-DBYTE_ORDER_LE) | ||
add_definitions(-D_LINUX_OS_) | ||
set(CMAKE_POSITION_INDEPENDENT_CODE ON) | ||
|
||
set(CI_TRANSPORT udp_tf) | ||
set(TO_TRANSPORT udp) # Note udp_tf used for Transfer Frames required for CryptoLib |
Submodule sample
updated
5 files
Submodule ds
updated
21 files
+0 −2 | fsw/inc/ds_extern_typedefs.h | |
+0 −2 | fsw/inc/ds_msg.h | |
+4 −3 | fsw/src/ds_app.c | |
+2 −0 | fsw/src/ds_app.h | |
+1 −1 | fsw/src/ds_appdefs.h | |
+28 −28 | fsw/src/ds_cmds.c | |
+1 −1 | fsw/src/ds_dispatch.c | |
+121 −128 | fsw/src/ds_file.c | |
+1 −3 | fsw/src/ds_file.h | |
+31 −29 | fsw/src/ds_table.c | |
+10 −10 | fsw/src/ds_table.h | |
+0 −32 | fsw/tables/ds_file_tbl.c | |
+11 −11 | unit-test/ds_app_tests.c | |
+63 −64 | unit-test/ds_cmds_tests.c | |
+45 −45 | unit-test/ds_dispatch_tests.c | |
+118 −159 | unit-test/ds_file_tests.c | |
+5 −4 | unit-test/ds_table_tests.c | |
+3 −3 | unit-test/stubs/ds_file_stubs.c | |
+30 −30 | unit-test/stubs/ds_table_stubs.c | |
+0 −1 | unit-test/stubs/stub_basetypes.h | |
+2 −2 | unit-test/utilities/ds_test_utils.h |
Submodule hwlib
updated
17 files
+1 −1 | fsw/linux/libcan.c | |
+3 −3 | fsw/linux/libgpio.c | |
+24 −24 | fsw/linux/libi2c.c | |
+0 −4 | fsw/linux/libsocket.c | |
+0 −1 | fsw/linux/libspi.c | |
+12 −15 | fsw/linux/libtrq.c | |
+13 −13 | fsw/linux/libuart.c | |
+2 −0 | fsw/public_inc/hwlib.h | |
+7 −2 | fsw/src/hwlib.c | |
+58 −0 | fsw/stubs/libcan.c | |
+38 −0 | fsw/stubs/libgpio.c | |
+50 −0 | fsw/stubs/libi2c.c | |
+83 −0 | fsw/stubs/libsocket.c | |
+60 −0 | fsw/stubs/libspi.c | |
+116 −0 | fsw/stubs/libtrq.c | |
+42 −0 | fsw/stubs/libtrq_ioctl.h | |
+48 −0 | fsw/stubs/libuart.c |
Submodule osal
updated
5 files
+1 −1 | src/os/nos/inc/NOS-time.h | |
+1 −1 | src/os/nos/src/NOS-time.c | |
+7 −7 | src/os/nos/src/os-impl-tasks.c | |
+2 −2 | src/tests/timer-add-api-test/timer-add-api-test.c | |
+2 −2 | src/tests/timer-test/timer-test.c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters