mirror of
https://github.com/EasyRPG/Player.git
synced 2026-10-25 15:57:14 +00:00
24 lines
431 B
C++
24 lines
431 B
C++
#define DOCTEST_CONFIG_IMPLEMENT
|
|
#include "doctest.h"
|
|
|
|
#include "output.h"
|
|
|
|
#ifdef __EMSCRIPTEN__
|
|
#include <emscripten.h>
|
|
#endif
|
|
|
|
int main(int argc, char** argv) {
|
|
#ifdef __EMSCRIPTEN__
|
|
EM_ASM({
|
|
FS.mkdir(UTF8ToString($0));
|
|
FS.mount(NODEFS, { root: UTF8ToString($1) }, UTF8ToString($0));
|
|
},
|
|
EP_TEST_PATH, EP_NATIVE_TEST_PATH
|
|
);
|
|
#endif
|
|
|
|
Output::SetLogLevel(LogLevel::Error);
|
|
|
|
return doctest::Context(argc, argv).run();
|
|
}
|