mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-01-16 11:13:44 +01: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:
@@ -3222,7 +3222,7 @@ slsDetectorDefs::detectorType Module::getDetectorTypeFromShm(int det_id,
|
||||
bool verify) {
|
||||
if (!shm.exists()) {
|
||||
throw SharedMemoryError("Shared memory " + shm.getName() +
|
||||
"does not exist.\n Corrupted Multi Shared "
|
||||
" does not exist.\n Corrupted Multi Shared "
|
||||
"memory. Please free shared memory.");
|
||||
}
|
||||
|
||||
|
||||
@@ -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