more tests

This commit is contained in:
Erik Frojdh
2019-11-27 11:35:00 +01:00
parent 2c7b730987
commit ace105a268
3 changed files with 55 additions and 87 deletions

View File

@@ -12,6 +12,26 @@ using sls::Detector;
using test::GET;
using test::PUT;
// TEST_CASE("tengiga", "[.cmd][.eiger][.ctb]") {
// if (test::type == slsDetectorDefs::EIGER || test::type ==
// slsDetectorDefs::CHIPTESTBOARD) {
// {
// REQUIRE_NOTHROW(multiSlsDetectorClient("tengiga 1", PUT));
// std::ostringstream oss;
// REQUIRE_NOTHROW(multiSlsDetectorClient("0:tengiga", GET, nullptr,
// oss)); REQUIRE(oss.str() == "tengiga 1\n");
// }
// {
// REQUIRE_NOTHROW(multiSlsDetectorClient("tengiga 0", PUT));
// std::ostringstream oss;
// REQUIRE_NOTHROW(multiSlsDetectorClient("0:tengiga", GET, nullptr,
// oss)); REQUIRE(oss.str() == "tengiga 0\n");
// }
// } else {
// REQUIRE_THROWS(multiSlsDetectorClient("tengiga", GET));
// }
// }
TEST_CASE("quad", "[.cmd]") {
// TODO! set and get once available in virtual detector
Detector det;