Files
rocm-systems/projects/hip/tests/catch/hipTestMain/main.cc
T
Jatin Chaudhary 62548cce56 SWDEV-277697 - [CatchTest] Fix Documentation, Add test to AMD specific, Add HIP Macros, New Binary for multiproc tests
Change-Id: I3783caf85c694b724ed55b778220b8ef9a39f84b


[ROCm/hip commit: c088ddbe7c]
2021-05-25 07:12:54 -04:00

14 строки
376 B
C++

#define CATCH_CONFIG_RUNNER
#include <hip_test_common.hh>
#include <iostream>
int main(int argc, char** argv) {
auto& context = TestContext::get(argc, argv);
if (context.skipTest()) {
// CTest uses this regex to figure out if the test has been skipped
std::cout << "HIP_SKIP_THIS_TEST" << std::endl;
return 0;
}
return Catch::Session().run(argc, argv);
}