mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-04-19 18:40:01 +02:00
fix for tests ctb
This commit is contained in:
parent
3a89c2a61e
commit
3d54a4aa26
@ -112,23 +112,23 @@ TEST_CASE("adcvpp", "[.cmd]") {
|
||||
{
|
||||
std::ostringstream oss;
|
||||
proxy.Call("adcvpp", {"1"}, -1, PUT, oss);
|
||||
REQUIRE(oss.str() == "dac adcvpp 1\n");
|
||||
REQUIRE(oss.str() == "adcvpp 1\n");
|
||||
}
|
||||
{
|
||||
std::ostringstream oss;
|
||||
proxy.Call("adcvpp", {"1140", "mv"}, -1, PUT, oss);
|
||||
REQUIRE(oss.str() == "dac adcvpp 1140 mV\n");
|
||||
REQUIRE(oss.str() == "adcvpp 1140 mV\n");
|
||||
}
|
||||
{
|
||||
std::ostringstream oss;
|
||||
proxy.Call("adcvpp", {"mv"}, -1, GET, oss);
|
||||
REQUIRE(oss.str() == "dac adcvpp 1140 mV\n");
|
||||
REQUIRE(oss.str() == "adcvpp 1140 mV\n");
|
||||
}
|
||||
for (int i = 0; i != det.size(); ++i) {
|
||||
det.setADCVpp(prev_val[i], false, {i});
|
||||
}
|
||||
} else {
|
||||
REQUIRE_THROWS(proxy.Call("dac adcvpp", {}, -1, GET));
|
||||
REQUIRE_THROWS(proxy.Call("adcvpp", {}, -1, GET));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1867,7 +1867,7 @@ TEST_CASE("temp_fpga", "[.cmd]") {
|
||||
Detector det;
|
||||
CmdProxy proxy(&det);
|
||||
auto det_type = det.getDetectorType().squash();
|
||||
if (det_type != defs::MOENCH) {
|
||||
if (det_type != defs::MOENCH && det_type != defs::CHIPTESTBOARD) {
|
||||
REQUIRE_NOTHROW(proxy.Call("temp_fpga", {}, -1, GET));
|
||||
std::ostringstream oss;
|
||||
REQUIRE_NOTHROW(proxy.Call("temp_fpga", {}, 0, GET, oss));
|
||||
@ -2098,7 +2098,7 @@ TEST_CASE("start", "[.cmd]") {
|
||||
proxy.Call("start", {}, -1, PUT, oss);
|
||||
REQUIRE(oss.str() == "start successful\n");
|
||||
}
|
||||
{
|
||||
if (det_type != defs::CHIPTESTBOARD) {
|
||||
std::ostringstream oss;
|
||||
proxy.Call("status", {}, -1, GET, oss);
|
||||
REQUIRE(oss.str() == "status running\n");
|
||||
@ -2133,7 +2133,7 @@ TEST_CASE("stop", "[.cmd]") {
|
||||
det.setPeriod(std::chrono::milliseconds(1));
|
||||
det.setNumberOfFrames(2000);
|
||||
det.startDetector();
|
||||
{
|
||||
if (det_type != defs::CHIPTESTBOARD) {
|
||||
std::ostringstream oss;
|
||||
proxy.Call("status", {}, -1, GET, oss);
|
||||
REQUIRE(oss.str() == "status running\n");
|
||||
@ -2176,7 +2176,7 @@ TEST_CASE("status", "[.cmd]") {
|
||||
det.setPeriod(std::chrono::milliseconds(1));
|
||||
det.setNumberOfFrames(2000);
|
||||
det.startDetector();
|
||||
{
|
||||
if (det_type != defs::CHIPTESTBOARD) {
|
||||
std::ostringstream oss;
|
||||
proxy.Call("status", {}, -1, GET, oss);
|
||||
REQUIRE(oss.str() == "status running\n");
|
||||
|
Loading…
x
Reference in New Issue
Block a user