This commit is contained in:
Erik Frojdh 2019-11-25 11:42:21 +01:00
parent 5b5e0f109b
commit eae1fb6609
5 changed files with 12 additions and 4688 deletions

View File

@ -1,9 +1,8 @@
target_sources(tests PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}/test-SharedMemory.cpp
${CMAKE_CURRENT_SOURCE_DIR}/test-slsDetector.cpp
# ${CMAKE_CURRENT_SOURCE_DIR}/test-multiSlsDetectorClient.cpp
# TODO! Migrate tests!
${CMAKE_CURRENT_SOURCE_DIR}/test-CmdProxy.cpp
${CMAKE_CURRENT_SOURCE_DIR}/test-CmdProxy-rx.cpp
${CMAKE_CURRENT_SOURCE_DIR}/test-Result.cpp
${CMAKE_CURRENT_SOURCE_DIR}/test-CmdLineParser.cpp
)

View File

@ -6,11 +6,13 @@
#include "tests/globals.h"
auto GET = slsDetectorDefs::GET_ACTION;
auto PUT = slsDetectorDefs::PUT_ACTION;
// auto GET = slsDetectorDefs::GET_ACTION;
// auto PUT = slsDetectorDefs::PUT_ACTION;
using sls::CmdProxy;
using sls::Detector;
using test::GET;
using test::PUT;
// TEST_CASE("vchip", "[.cmd]") {
// int prev_val = 0;

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +1,4 @@
#pragma once
#include "sls_detector_defs.h"
using dt = slsDetectorDefs::detectorType;
using di = slsDetectorDefs::dacIndex;
@ -8,4 +9,8 @@ extern std::string hostname;
extern std::string detector_type;
extern dt type;
extern std::string my_ip;
extern decltype(defs::GET_ACTION) GET;
extern decltype(defs::PUT_ACTION) PUT;
} // namespace test

View File

@ -18,6 +18,8 @@ std::string hostname;
std::string detector_type;
std::string my_ip;
dt type;
auto GET = slsDetectorDefs::GET_ACTION;
auto PUT = slsDetectorDefs::PUT_ACTION;
} // namespace test
int main(int argc, char *argv[]) {