mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-02-07 13:08:41 +01:00
added tests to ensure startup val is not -1 or -100 after powerchip in config for xilinx
This commit is contained in:
@@ -1046,6 +1046,12 @@ TEST_CASE("v_abcd", "[.cmdcall]") {
|
|||||||
if (det_type == defs::CHIPTESTBOARD ||
|
if (det_type == defs::CHIPTESTBOARD ||
|
||||||
det_type == defs::XILINX_CHIPTESTBOARD) {
|
det_type == defs::XILINX_CHIPTESTBOARD) {
|
||||||
auto prev_val = det.getPower(indices[i]);
|
auto prev_val = det.getPower(indices[i]);
|
||||||
|
// this is the first command touching power dacs, should not be
|
||||||
|
// -100
|
||||||
|
if (det_type == defs::XILINX_CHIPTESTBOARD) {
|
||||||
|
REQUIRE(prev_val.any(-100) == false);
|
||||||
|
REQUIRE(prev_val.any(-1) == false);
|
||||||
|
}
|
||||||
{
|
{
|
||||||
std::ostringstream oss;
|
std::ostringstream oss;
|
||||||
caller.call(cmds[i], {"0"}, -1, PUT, oss);
|
caller.call(cmds[i], {"0"}, -1, PUT, oss);
|
||||||
|
|||||||
Reference in New Issue
Block a user