various tests and infrastructure fixes

This commit is contained in:
Sean Barrett
2020-02-01 04:21:41 -08:00
parent c440a53d06
commit 4a7a434c2d
7 changed files with 36 additions and 16 deletions

View File

@ -71,7 +71,7 @@ int main(int argc, char **argv)
ci.batchfile = strdup(buffer);
ci.compiler = count==3 ? strdup(tokens[2]) : "cl";
if (0==strnicmp(batch, "vcvars_", 7))
ci.objdir = strdup(stb_sprintf("%s_%d", batch+7, i));
ci.objdir = strdup(stb_sprintf("vs_%s_%d", batch+7, i));
else
ci.objdir = strdup(stb_sprintf("%s_%d", batch, i));
ci.args = shared_args;
@ -121,6 +121,11 @@ int main(int argc, char **argv)
stb_arr_len(compilers[j].link), compilers[j].link);
r = run_command(compilers[j].batchfile, command);
stbprint("{%c== Compiler %s == Building %s}\n", r ? '$' : '!', compilers[j].compiler_name, projects[i].filelist);
stb_copyfile("a.exe", stb_sprintf("obj/%s/a.exe", compilers[j].objdir));
//printf("Copy: %s to %s\n", "a.exe", stb_sprintf("obj/%s/a.exe", compilers[j].objdir));
stb_copyfile("temp.exe", stb_sprintf("obj/%s/temp.exe", compilers[j].objdir));
system("if EXIST a.exe del /q a.exe");
system("if EXIST temp.exe del /q temp.exe");
system("if EXIST *.obj del /q *.obj");
system("if EXIST *.o del /q *.o");
if (!r)