-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #318 from odin-detector/code-ci
Update Code CI
- Loading branch information
Showing
18 changed files
with
144 additions
and
159 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
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 |
---|---|---|
@@ -1,19 +1,4 @@ | ||
set(TEST_CONFIGS | ||
fp_log4cxx.xml | ||
fr_log4cxx.xml | ||
) | ||
|
||
foreach(test_config ${TEST_CONFIGS}) | ||
add_custom_command( | ||
OUTPUT "${CMAKE_CONFIG_OUTPUT_DIRECTORY}/${test_config}" | ||
COMMAND ${CMAKE_COMMAND} -E copy | ||
"${CMAKE_CURRENT_SOURCE_DIR}/${test_config}" | ||
"${CMAKE_CONFIG_OUTPUT_DIRECTORY}/${test_config}" | ||
DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/${test_config}" | ||
) | ||
list(APPEND TEST_CONFIGS_DEST "${CMAKE_CONFIG_OUTPUT_DIRECTORY}/${test_config}") | ||
endforeach(test_config) | ||
|
||
add_custom_target(CopyTestConfigs ALL DEPENDS ${TEST_CONFIGS_DEST} ) | ||
file(GLOB LOG_CONFIGS ${CMAKE_CURRENT_SOURCE_DIR}/*log4cxx.xml) | ||
install(PROGRAMS ${LOG_CONFIGS} DESTINATION test_config) | ||
|
||
add_subdirectory(client_msgs) |
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
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
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
19 changes: 19 additions & 0 deletions
19
cpp/frameSimulator/src/DummyUDPFrameSimulatorPluginLib.cpp
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,19 @@ | ||
/* | ||
* DummyUDPFrameSimulatorPluginLib.cpp | ||
* | ||
* Created on: 19 Sep 2022 | ||
* Author: Gary Yendell | ||
*/ | ||
|
||
#include "DummyUDPFrameSimulatorPlugin.h" | ||
#include "ClassLoader.h" | ||
|
||
namespace FrameSimulator | ||
{ | ||
/** | ||
* Registration of this decoder through the ClassLoader. This macro | ||
* registers the class without needing to worry about name mangling | ||
*/ | ||
REGISTER(FrameSimulatorPlugin, DummyUDPFrameSimulatorPlugin, "DummyUDPFrameSimulatorPlugin"); | ||
|
||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
install(FILES dummyUDP.json DESTINATION test_config) | ||
install(FILES dummyUDP-fp.json DESTINATION test_config) | ||
install(FILES dummyUDP-fr.json DESTINATION test_config) | ||
install(FILES testUDP.json DESTINATION test_config) | ||
# Copy files to build and substitute macros | ||
configure_file(dummyUDP.json .) | ||
configure_file(dummyUDP-fp.json .) | ||
configure_file(dummyUDP-fr.json .) | ||
configure_file(testUDP.json .) | ||
|
||
# Install files generated in build by above commands, *not* directly from source | ||
file(GLOB CONFIG_FILES ${CMAKE_CURRENT_BINARY_DIR}/*json) | ||
install(FILES ${CONFIG_FILES} DESTINATION test_config) |
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 |
---|---|---|
@@ -1,88 +1,77 @@ | ||
[ | ||
{ | ||
"fr_setup": | ||
{ | ||
"fr_ready_cnxn":"tcp://127.0.0.1:5001", | ||
"fr_release_cnxn":"tcp://127.0.0.1:5002" | ||
"fr_setup": { | ||
"fr_ready_cnxn": "tcp://127.0.0.1:5001", | ||
"fr_release_cnxn": "tcp://127.0.0.1:5002" | ||
}, | ||
"meta_endpoint": "tcp://*:5008", | ||
"frames": 10 | ||
}, | ||
"meta_endpoint":"tcp://*:5008" | ||
}, | ||
|
||
{ | ||
"plugin": | ||
{ | ||
"load": | ||
{ | ||
"index":"hdf", | ||
"name":"FileWriterPlugin", | ||
"library":"${INSTALL_PREFIX}/lib/libHdf5Plugin.so" | ||
} | ||
} | ||
}, | ||
{ | ||
"plugin": | ||
"plugin": { | ||
"load": { | ||
"index": "hdf", | ||
"name": "FileWriterPlugin", | ||
"library": "${CMAKE_INSTALL_PREFIX}/lib/libHdf5Plugin.so" | ||
} | ||
} | ||
}, | ||
{ | ||
"load": | ||
{ | ||
"index":"dummy", | ||
"name":"DummyUDPProcessPlugin", | ||
"library":"${INSTALL_PREFIX}/lib/libDummyUDPProcessPlugin.so" | ||
} | ||
} | ||
}, | ||
{ | ||
"plugin": | ||
"plugin": { | ||
"load": { | ||
"index": "dummy", | ||
"name": "DummyUDPProcessPlugin", | ||
"library": "${CMAKE_INSTALL_PREFIX}/lib/libDummyUDPProcessPlugin.so" | ||
} | ||
} | ||
}, | ||
{ | ||
"connect": | ||
{ | ||
"index":"dummy", | ||
"connection":"frame_receiver" | ||
} | ||
} | ||
}, | ||
{ | ||
"plugin": | ||
"plugin": { | ||
"connect": { | ||
"index": "dummy", | ||
"connection": "frame_receiver" | ||
} | ||
} | ||
}, | ||
{ | ||
"connect": | ||
{ | ||
"index":"hdf", | ||
"connection":"dummy" | ||
} | ||
} | ||
}, | ||
{ | ||
"dummy": { | ||
"width": 1024, | ||
"height": 1400 | ||
} | ||
}, | ||
|
||
{ | ||
"hdf": | ||
"plugin": { | ||
"connect": { | ||
"index": "hdf", | ||
"connection": "dummy" | ||
} | ||
} | ||
}, | ||
{ | ||
"dataset":"dummy" | ||
} | ||
}, | ||
{ | ||
"hdf": | ||
"dummy": { | ||
"width": 1024, | ||
"height": 1400 | ||
} | ||
}, | ||
{ | ||
"hdf": { | ||
"dataset": "dummy" | ||
} | ||
}, | ||
{ | ||
"dataset": | ||
{ | ||
"dummy": | ||
{ | ||
"datatype":"uint16", | ||
"dims":[1400,1024], | ||
"compression":"none" | ||
"hdf": { | ||
"dataset": { | ||
"dummy": { | ||
"datatype": "uint16", | ||
"dims": [ | ||
1400, | ||
1024 | ||
], | ||
"compression": "none" | ||
} | ||
}, | ||
"file": { | ||
"path": "/tmp", | ||
"first_number": 1 | ||
}, | ||
"frames": 10, | ||
"acquisition_id": "test_1", | ||
"timeout_timer_period": 3000, | ||
"write": true | ||
} | ||
}, | ||
"file": | ||
{ | ||
"path":"", | ||
"first_number":1 | ||
}, | ||
"frames":10, | ||
"acquisition_id":"test_1", | ||
"write":true | ||
} | ||
} | ||
] | ||
] |
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 |
---|---|---|
@@ -1,14 +1,15 @@ | ||
[ | ||
{ | ||
"decoder_type": "DummyUDP", | ||
"decoder_path": "${INSTALL_PREFIX}/lib", | ||
"decoder_path": "${CMAKE_INSTALL_PREFIX}/lib", | ||
"rx_ports": "61649", | ||
"max_buffer_mem": 840000000, | ||
"decoder_config": { | ||
"enable_packet_logging": false, | ||
"frame_timeout_ms": 1000, | ||
"udp_packets_per_frame": 263, | ||
"udp_packets_per_frame": 359, | ||
"udp_packet_size": 8000 | ||
} | ||
}, | ||
"frames": 10 | ||
} | ||
] | ||
] |
Oops, something went wrong.