mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-12 21:07:13 +02:00
Automate virtual test (#714)
* using argparse for parsing command line arguments * added command line option to specify which servers to run --------- Co-authored-by: Erik Fröjdh <erik.frojdh@gmail.com>
This commit is contained in:
@ -1207,10 +1207,10 @@ TEST_CASE("dbitphase", "[.cmd]") {
|
||||
}
|
||||
{
|
||||
std::ostringstream oss1, oss2;
|
||||
proxy.Call("dbitphase", {"20", "deg"}, -1, PUT, oss1);
|
||||
REQUIRE(oss1.str() == "dbitphase 20 deg\n");
|
||||
proxy.Call("dbitphase", {"23", "deg"}, -1, PUT, oss1);
|
||||
REQUIRE(oss1.str() == "dbitphase 23 deg\n");
|
||||
proxy.Call("dbitphase", {"deg"}, -1, GET, oss2);
|
||||
REQUIRE(oss2.str() == "dbitphase 20 deg\n");
|
||||
REQUIRE(oss2.str() == "dbitphase 23 deg\n");
|
||||
}
|
||||
for (int i = 0; i != det.size(); ++i) {
|
||||
det.setDBITPhase(prev_val[i], {i});
|
||||
|
Reference in New Issue
Block a user