Embed zeroerr as a submodule with ZEROERR_NO_MAIN, migrate all unit tests, and register each case with CTest via ZeroErrDiscoverTests.
16 lines
388 B
C++
16 lines
388 B
C++
#include "ScriptTest.h"
|
|
|
|
extern const char* filesystem_content;
|
|
UnitSciptTest(FilesystemTest, filesystem_content);
|
|
|
|
#define TestScript(func) \
|
|
TEST_CASE_FIXTURE(FilesystemTest, "FilesystemTest." #func) { \
|
|
CHECK(vm.callFunc(vm.findFunc(#func), vm).toBool()); \
|
|
}
|
|
|
|
TestScript(basic)
|
|
TestScript(getPaths)
|
|
TestScript(readDir)
|
|
// TestScript(readFile)
|
|
// TestScript(writeFile)
|