AcquisitionDevice: IPv4 address and UDP destination port is property of the device and not of a particular run

This commit is contained in:
2023-04-15 11:52:55 +02:00
parent 3319306b50
commit 32baaef1e4
24 changed files with 223 additions and 169 deletions
+10 -2
View File
@@ -1006,8 +1006,16 @@ TEST_CASE("DiffractionExperiment_DetectorModuleHostname","[DiffractionExperiment
JFJochProtoBuf::DetectorConfig det_cfg;
JFJochProtoBuf::ReceiverNetworkConfig net_cfg;
net_cfg.add_fpga_mac_addr("AA:BB:CC:DD:EE:FF");
net_cfg.add_fpga_mac_addr("AA:BB:CC:DD:EE:FE");
auto d1 = net_cfg.add_device();
d1->set_mac_addr("00:00:00:00:00:00");
d1->set_ipv4_addr("10.10.50.1");
d1->set_udp_port(1234);
auto d2 = net_cfg.add_device();
d2->set_mac_addr("00:00:00:00:00:01");
d2->set_ipv4_addr("10.10.50.2");
d2->set_udp_port(1234);
std::vector<std::string> h_out;
REQUIRE_NOTHROW(x.GetDetectorModuleHostname(h_out));