This commit is contained in:
Erik Frojdh
2019-11-25 14:56:15 +01:00
parent a2dd35ae38
commit 3030c262f1
2 changed files with 99 additions and 88 deletions

View File

@ -3299,53 +3299,7 @@ TEST_CASE("stopport", "[.cmd]") {
// }
// }
// TEST_CASE("rx_zmqport", "[.cmd]") {
// multiSlsDetector d;
// int socketsperdetector = 1;
// if (test::type == slsDetectorDefs::EIGER) {
// socketsperdetector *= 2;
// } else if (test::type == slsDetectorDefs::JUNGFRAU) {
// REQUIRE_NOTHROW(multiSlsDetectorClient("numinterfaces 2", PUT));
// socketsperdetector *= 2;
// }
// int port = 3500;
// REQUIRE_NOTHROW(multiSlsDetectorClient("rx_zmqport " +
// std::to_string(port), PUT)); for (int i = 0; i != d.size(); ++i) {
// std::ostringstream oss;
// REQUIRE_NOTHROW(multiSlsDetectorClient(std::to_string(i) +
// ":rx_zmqport", GET, nullptr, oss)); REQUIRE(oss.str() == "rx_zmqport
// " + std::to_string(port + i * socketsperdetector) + '\n');
// }
// port = 30001;
// REQUIRE_NOTHROW(multiSlsDetectorClient("rx_zmqport " +
// std::to_string(port), PUT)); for (int i = 0; i != d.size(); ++i) {
// std::ostringstream oss;
// REQUIRE_NOTHROW(multiSlsDetectorClient(std::to_string(i) +
// ":rx_zmqport", GET, nullptr, oss)); REQUIRE(oss.str() == "rx_zmqport
// " + std::to_string(port + i * socketsperdetector) + '\n');
// }
// if (test::type == slsDetectorDefs::JUNGFRAU) {
// REQUIRE_NOTHROW(multiSlsDetectorClient("numinterfaces 1", PUT));
// }
// }
// TEST_CASE("rx_datastream", "[.cmd]") {
// {
// std::ostringstream oss;
// REQUIRE_NOTHROW(multiSlsDetectorClient("rx_datastream 1", PUT,
// nullptr, oss)); REQUIRE(oss.str() == "rx_datastream 1\n");
// }
// {
// std::ostringstream oss;
// REQUIRE_NOTHROW(multiSlsDetectorClient("0:rx_datastream", GET,
// nullptr, oss)); REQUIRE(oss.str() == "rx_datastream 1\n");
// }
// {
// std::ostringstream oss;
// REQUIRE_NOTHROW(multiSlsDetectorClient("rx_datastream 0", PUT,
// nullptr, oss)); REQUIRE(oss.str() == "rx_datastream 0\n");
// }
// }
// TEST_CASE("fpath", "[.cmd]") {
// std::string s;