This commit is contained in:
maliakal_d 2020-06-05 09:04:32 +02:00
parent 7f6d57d6ba
commit ff9811895f
2 changed files with 17 additions and 2 deletions

View File

@ -17,8 +17,7 @@ using test::PUT;
/* dacs */ /* dacs */
TEST_CASE("Setting and reading back Chip test board dacs", TEST_CASE("dac", "[.cmd][.dacs][.new]") {
"[.cmd][.dacs][.new]") {
// dac 0 to dac 17 // dac 0 to dac 17
Detector det; Detector det;

View File

@ -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 */ /* acquisition */
TEST_CASE("clearbusy", "[.cmd][.new]") { TEST_CASE("clearbusy", "[.cmd][.new]") {