Refactored the bacnet file object to be storage agnostic with callbacks. (#1056)
This commit is contained in:
@@ -17,6 +17,11 @@ string(REGEX REPLACE
|
||||
"/test"
|
||||
TST_DIR
|
||||
${CMAKE_CURRENT_SOURCE_DIR})
|
||||
string(REGEX REPLACE
|
||||
"/test/bacnet/[a-zA-Z_/-]*$"
|
||||
"/ports"
|
||||
PORTS_DIR
|
||||
${CMAKE_CURRENT_SOURCE_DIR})
|
||||
set(ZTST_DIR "${TST_DIR}/ztest/src")
|
||||
|
||||
add_compile_definitions(
|
||||
@@ -34,6 +39,7 @@ add_compile_definitions(
|
||||
|
||||
include_directories(
|
||||
${SRC_DIR}
|
||||
${PORTS_DIR}/posix
|
||||
${TST_DIR}/bacnet/basic/object/test
|
||||
${TST_DIR}/ztest/include
|
||||
)
|
||||
@@ -80,6 +86,7 @@ add_executable(${PROJECT_NAME}
|
||||
${SRC_DIR}/bacnet/datalink/bvlc.c
|
||||
${SRC_DIR}/bacnet/datalink/bvlc6.c
|
||||
${SRC_DIR}/bacnet/datalink/bsc/bsc-util.c
|
||||
${PORTS_DIR}/posix/bacfile-posix.c
|
||||
# Test and test library files
|
||||
${TST_DIR}/bacnet/basic/object/test/device_mock.c
|
||||
${TST_DIR}/bacnet/basic/object/test/datetime_local.c
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
#include <bacnet/basic/object/netport.h>
|
||||
#include <bacnet/basic/object/sc_netport.h>
|
||||
#include <bacnet/basic/object/bacfile.h>
|
||||
#include <bacfile-posix.h>
|
||||
#include <property_test.h>
|
||||
#ifndef BACDL_BSC
|
||||
#define BACDL_BSC
|
||||
@@ -765,6 +766,7 @@ static void test_network_port_sc_certificates(void)
|
||||
zassert_true(count > 0, NULL);
|
||||
|
||||
bacfile_init();
|
||||
bacfile_posix_init();
|
||||
// CA certificate
|
||||
status = bacfile_create(BSC_ISSUER_CERTIFICATE_FILE_1_INSTANCE);
|
||||
zassert_true(status, NULL);
|
||||
|
||||
Reference in New Issue
Block a user