mirror of
https://github.com/ComodoSecurity/openedr/
synced 2026-06-06 15:24:33 +00:00
28 lines
519 B
C++
28 lines
519 B
C++
///
|
|
/// Catch2 entrypoint
|
|
///
|
|
#define CATCH_CONFIG_RUNNER
|
|
|
|
// Catch2
|
|
#include <catch2/catch.hpp>
|
|
#include "catch_discover.hpp"
|
|
|
|
extern bool initTestFramework();
|
|
|
|
//
|
|
//
|
|
//
|
|
int main(int argc, char* argv[])
|
|
{
|
|
Catch::Session session;
|
|
|
|
bool doDiscover = false;
|
|
Catch::addDiscoverOption(session, doDiscover);
|
|
int returnCode = session.applyCommandLine(argc, argv);
|
|
if (returnCode != 0) return returnCode;
|
|
|
|
if (!initTestFramework()) return -3;
|
|
|
|
return Catch::runDiscoverSession(session, doDiscover);
|
|
}
|