File: catch_main.cpp

package info (click to toggle)
liblsl 1.16.2b1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 1,724 kB
  • sloc: cpp: 12,515; ansic: 666; python: 28; sh: 25; makefile: 18
file content (17 lines) | stat: -rw-r--r-- 477 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#define CATCH_CONFIG_RUNNER
#include <catch2/catch.hpp>

extern "C" {
const char *lsl_library_info() { return LSL_VERSION_INFO; }
}

int main(int argc, char *argv[]) {
	Catch::Session session;
#ifdef _WIN32
	session.configData().waitForKeypress = Catch::WaitForKeypress::BeforeExit;
#endif
	session.configData().runOrder = Catch::RunTests::InRandomOrder;
	int returnCode = session.applyCommandLine(argc, argv);
	if (returnCode != 0) return returnCode;
	return session.run();
}