Move stream2.c/.h to tests => they are not part of the JFJochFrameSerialization lib

This commit is contained in:
2023-04-19 13:36:27 +02:00
parent 25359f0d60
commit 37b5d1a169
5 changed files with 8 additions and 5 deletions
+1 -2
View File
@@ -11,5 +11,4 @@ ADD_LIBRARY(FrameSerialize STATIC
tinycbor/src/cborpretty.c
tinycbor/src/cborerrorstrings.c
tinycbor/src/cbor.h
tinycbor/src/tinycbor-version.h CborErr.h StartMessage.h EndMessage.h CborUtil.h
stream2.h stream2.c)
tinycbor/src/tinycbor-version.h CborErr.h StartMessage.h EndMessage.h CborUtil.h)
+1 -1
View File
@@ -5,8 +5,8 @@
#include "../frame_serialize/JFJochFrameSerializer.h"
#include "../frame_serialize/JFJochFrameDeserializer.h"
#include "../frame_serialize/stream2.h"
#include "../compression/JFJochCompressor.h"
#include "stream2.h"
TEST_CASE("CBORSerialize_Start", "[CBOR]") {
JFJochFrameSerializer serializer(8*1024*1024);
+2 -1
View File
@@ -24,7 +24,8 @@ ADD_EXECUTABLE(CatchTest
JFCalibrationTest.cpp
RadialIntegrationTest.cpp
StatusVectorTest.cpp ProcessRawPacketTest.cpp
CBORTest.cpp JFConversionTest.cpp DetectorGeometryTest.cpp JFJochBrokerParserTest.cpp DetectorSetupTest.cpp)
CBORTest.cpp ../tests/stream2.h ../tests/stream2.c
JFConversionTest.cpp DetectorGeometryTest.cpp JFJochBrokerParserTest.cpp DetectorSetupTest.cpp)
target_link_libraries(CatchTest JFJochBroker JFJochReceiver JFJochWriter ImageAnalysis CommonFunctions HLSSimulation)
target_include_directories(CatchTest PRIVATE .)
@@ -1,3 +1,6 @@
// Copyright (2019-2023) Paul Scherrer Institute
// SPDX-License-Identifier: GPL-3.0-or-later
// DECTRIS proprietary license
#define __STDC_WANT_IEC_60559_TYPES_EXT__
@@ -16,7 +19,7 @@
#include <stdlib.h>
#include <string.h>
#include "tinycbor/src/cbor.h"
#include "../frame_serialize/tinycbor/src/cbor.h"
enum { MAX_KEY_LEN = 64 };