Testing flag
This commit is contained in:
@@ -401,14 +401,15 @@ int main(int argc, char **argv)
|
||||
InitWindows();
|
||||
InitOS(ReportWarningf);
|
||||
|
||||
bool testing = false;
|
||||
for (int i = 1; i < argc; i += 1) {
|
||||
String it = argv[i];
|
||||
if (!FileExists(it)) continue;
|
||||
|
||||
if (EndsWith(it, ".project.lua")) {
|
||||
if (!LuaProjectBuffer) {
|
||||
if (it == "--testing") {
|
||||
testing = true;
|
||||
} else if (EndsWith(it, ".project.lua")) {
|
||||
SetProjectFile(BufferOpenFile(it));
|
||||
}
|
||||
} else {
|
||||
Window *window = GetWindow({0});
|
||||
WindowOpenBufferView(window, it);
|
||||
@@ -416,7 +417,7 @@ int main(int argc, char **argv)
|
||||
}
|
||||
|
||||
InitLuaConfig();
|
||||
InitTests();
|
||||
if (testing) InitTests();
|
||||
#if _WIN32
|
||||
AddCo(Windows_SetupVCVarsall);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user