Formatted package
This commit is contained in:
Dhanya Thattil
2022-08-05 15:39:34 +02:00
committed by GitHub
parent 7173785b29
commit 6bf9dbf6d3
89 changed files with 1366 additions and 1210 deletions

View File

@ -30,13 +30,14 @@ int main(int argc, char *argv[]) {
sls::test::my_ip = "undefined";
Catch::Session session;
auto cli =
session.cli() |
sls::Opt(sls::test::hostname, "hostname")["-hn"]["--hostname"](
"Detector hostname for integration tests") |
sls::Opt(sls::test::detector_type, "detector_type")["-dt"]["--detector_type"](
"Detector type for integration tests") |
sls::Opt(sls::test::my_ip, "my_ip")["-hip"]["--host_ip"]("Host ip address");
auto cli = session.cli() |
sls::Opt(sls::test::hostname, "hostname")["-hn"]["--hostname"](
"Detector hostname for integration tests") |
sls::Opt(sls::test::detector_type,
"detector_type")["-dt"]["--detector_type"](
"Detector type for integration tests") |
sls::Opt(sls::test::my_ip,
"my_ip")["-hip"]["--host_ip"]("Host ip address");
session.cli(cli);
@ -47,8 +48,8 @@ int main(int argc, char *argv[]) {
sls::test::type = slsDetectorDefs::GENERIC;
if (!sls::test::detector_type.empty()) {
sls::test::type =
sls::StringTo<slsDetectorDefs::detectorType>(sls::test::detector_type);
sls::test::type = sls::StringTo<slsDetectorDefs::detectorType>(
sls::test::detector_type);
}
return session.run();