Embed zeroerr as a submodule with ZEROERR_NO_MAIN, migrate all unit tests, and register each case with CTest via ZeroErrDiscoverTests.
12 lines
261 B
C++
12 lines
261 B
C++
#include "ScriptTest.h"
|
|
|
|
extern const char* mouse_content;
|
|
UnitSciptTest(Mouse, mouse_content);
|
|
|
|
#define TestScript(func) \
|
|
TEST_CASE_FIXTURE(Mouse, "Mouse." #func) { \
|
|
CHECK(vm.callFunc(vm.findFunc(#func), vm).toBool()); \
|
|
}
|
|
|
|
TestScript(basic)
|