| 374 | } |
| 375 | |
| 376 | void checkGtestParams(int argc, char** argv) { |
| 377 | if (argc > 1) { |
| 378 | std::string argument = argv[1]; |
| 379 | if (argument == "--gtest_list_tests") { |
| 380 | std::filesystem::remove_all(TestHelper::getTestListFile()); |
| 381 | scanTestFiles(TestHelper::appendLbugRootPath(TestHelper::E2E_TEST_FILES_DIRECTORY)); |
| 382 | } |
| 383 | if (argument.starts_with("--gtest_filter=")) { |
| 384 | std::string testCaseFile = findTestFile(argument.substr(15)); |
| 385 | if (testCaseFile.empty()) { |
| 386 | scanTestFiles(TestHelper::appendLbugRootPath(TestHelper::E2E_TEST_FILES_DIRECTORY)); |
| 387 | } else { |
| 388 | parseAndRegisterTestGroup(testCaseFile); |
| 389 | } |
| 390 | } |
| 391 | } |
| 392 | } |
| 393 | |
| 394 | int main(int argc, char** argv) { |
| 395 | try { |
no test coverage detected