mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-06 10:00:40 +02:00
tests
This commit is contained in:
parent
321ed13659
commit
6e67ff9f90
@ -1311,10 +1311,10 @@ TEST_CASE("scan", "[.cmd][.new]") {
|
||||
CHECK_THROWS(proxy.Call(
|
||||
"scan", {sls::ToString(notImplementedInd), "500", "1500", "500"}, -1,
|
||||
PUT));
|
||||
CHECK_THROWS(proxy.Call(
|
||||
"scan", {sls::ToString(ind), "500", "1500", "-500"}, -1, PUT));
|
||||
CHECK_THROWS(proxy.Call(
|
||||
"scan", {sls::ToString(ind), "1500", "500", "500"}, -1, PUT));
|
||||
CHECK_THROWS(proxy.Call("scan", {sls::ToString(ind), "500", "1500", "-500"},
|
||||
-1, PUT));
|
||||
CHECK_THROWS(proxy.Call("scan", {sls::ToString(ind), "1500", "500", "500"},
|
||||
-1, PUT));
|
||||
|
||||
if (det_type == defs::MYTHEN3 || defs::EIGER) {
|
||||
{
|
||||
@ -1332,7 +1332,7 @@ TEST_CASE("scan", "[.cmd][.new]") {
|
||||
}
|
||||
}
|
||||
|
||||
//Switch off scan for future tests
|
||||
// Switch off scan for future tests
|
||||
det.setScan(defs::scanParameters());
|
||||
// acquire for each?
|
||||
|
||||
@ -1562,6 +1562,20 @@ TEST_CASE("udp_dstport2", "[.cmd][.new]") {
|
||||
}
|
||||
}
|
||||
|
||||
TEST_CASE("udp_reconfigure", "[.cmd][.new]") {
|
||||
Detector det;
|
||||
CmdProxy proxy(&det);
|
||||
REQUIRE_THROWS(proxy.Call("udp_reconfigure", {}, -1, GET));
|
||||
REQUIRE_NOTHROW(proxy.Call("udp_reconfigure", {}, -1, PUT));
|
||||
}
|
||||
|
||||
TEST_CASE("udp_validate", "[.cmd][.new]") {
|
||||
Detector det;
|
||||
CmdProxy proxy(&det);
|
||||
REQUIRE_THROWS(proxy.Call("udp_validate", {}, -1, GET));
|
||||
REQUIRE_NOTHROW(proxy.Call("udp_validate", {}, -1, PUT));
|
||||
}
|
||||
|
||||
TEST_CASE("tengiga", "[.cmd][.new]") {
|
||||
Detector det;
|
||||
CmdProxy proxy(&det);
|
||||
|
Loading…
x
Reference in New Issue
Block a user