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