From ff9811895f4726e648f73a7135dbf51d1b3d5c37 Mon Sep 17 00:00:00 2001 From: Dhanya Thattil Date: Fri, 5 Jun 2020 09:04:32 +0200 Subject: [PATCH] WIP --- .../tests/test-CmdProxy-chiptestboard.cpp | 3 +-- slsDetectorSoftware/tests/test-CmdProxy.cpp | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/slsDetectorSoftware/tests/test-CmdProxy-chiptestboard.cpp b/slsDetectorSoftware/tests/test-CmdProxy-chiptestboard.cpp index 382fe5ddc..b7300b515 100644 --- a/slsDetectorSoftware/tests/test-CmdProxy-chiptestboard.cpp +++ b/slsDetectorSoftware/tests/test-CmdProxy-chiptestboard.cpp @@ -17,8 +17,7 @@ using test::PUT; /* dacs */ -TEST_CASE("Setting and reading back Chip test board dacs", - "[.cmd][.dacs][.new]") { +TEST_CASE("dac", "[.cmd][.dacs][.new]") { // dac 0 to dac 17 Detector det; diff --git a/slsDetectorSoftware/tests/test-CmdProxy.cpp b/slsDetectorSoftware/tests/test-CmdProxy.cpp index d68e06c01..72d61cfc3 100644 --- a/slsDetectorSoftware/tests/test-CmdProxy.cpp +++ b/slsDetectorSoftware/tests/test-CmdProxy.cpp @@ -1010,6 +1010,22 @@ TEST_CASE("temp_fpga", "[.cmd][.new]") { } } +/* dacs */ + +TEST_CASE("daclist", "[.cmd][.new]") { + Detector det; + CmdProxy proxy(&det); + REQUIRE_NOTHROW(proxy.Call("daclist", {}, -1, GET)); + REQUIRE_THROWS(proxy.Call("daclist", {}, -1, PUT)); +} + +TEST_CASE("dacvalues", "[.cmd][.new]") { + Detector det; + CmdProxy proxy(&det); + REQUIRE_NOTHROW(proxy.Call("dacvalues", {}, -1, GET)); + REQUIRE_THROWS(proxy.Call("dacvalues", {}, -1, PUT)); +} + /* acquisition */ TEST_CASE("clearbusy", "[.cmd][.new]") {