void RunBenchmarks() { LSCompiler::setRootBuildFile("Benchmarks.build"); LSCompiler::initialize(); LSLuaState *benchVM = new LSLuaState(); benchVM->open(); Assembly *benchAssembly = benchVM->loadExecutableAssembly("Benchmarks.loom"); benchAssembly->execute(); benchVM->close(); }
void RunUnitTests() { LSCompiler::setRootBuildFile("Tests.build"); LSCompiler::initialize(); LSLuaState *testVM = new LSLuaState(); // FIXME: default paths testVM->open(); Assembly *testAssembly = testVM->loadExecutableAssembly("Tests.loom"); testAssembly->execute(); testVM->close(); }