mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-28 18:12:05 +08:00
2156e71e7a
* mv to tools/replay * change folder * add .gitignore * fix build doc * disable warning * enable warning after build * build qt/util.cc qt/api.cc to library * cleanup old-commit-hash: fd5b3d76036b78864111790931a3abcb1d11ee0f
11 lines
268 B
C++
11 lines
268 B
C++
#define CATCH_CONFIG_RUNNER
|
|
#include "catch2/catch.hpp"
|
|
#include <QCoreApplication>
|
|
|
|
int main(int argc, char **argv) {
|
|
// unit tests for Qt
|
|
QCoreApplication app(argc, argv);
|
|
const int res = Catch::Session().run(argc, argv);
|
|
return (res < 0xff ? res : 0xff);
|
|
}
|