diff options
Diffstat (limited to 'build.c')
-rwxr-xr-x | build.c | 38 |
1 files changed, 19 insertions, 19 deletions
@@ -35,13 +35,13 @@ enum { }; #if defined(_WIN32) && !defined(__CYGWIN__) -#define DELIM "\\" +#define DLM "\\" enum { OS = WINDOWS, }; #elif defined(__APPLE__) -#define DELIM "/" +#define DLM "/" enum { OS = MACOS, }; #else -#define DELIM "/" +#define DLM "/" enum { OS = LINUX, }; #endif @@ -429,7 +429,7 @@ i32 main(i32 argc, c8 **argv) { if (system(fmt( "%s %s " - "%s%s" DELIM PROJECT "%s " + "%s%s" DLM PROJECT "%s " SOURCE_LIB, compiler_c, flags, flag_obj, destination, postfix_obj) @@ -442,8 +442,8 @@ i32 main(i32 argc, c8 **argv) { if (system(fmt( "%s %s " - "%s%s" DELIM "test_suite%s " - "%s" DELIM PROJECT "%s " + "%s%s" DLM "test_suite%s " + "%s" DLM PROJECT "%s " FOLDER_TESTS "_exe.c " "%s", compiler_c, flags, @@ -463,8 +463,8 @@ i32 main(i32 argc, c8 **argv) { for (i32 i = 0; i < sizeof c_tests / sizeof *c_tests; ++i) if (system(fmt( "%s %s " - "%s%s" DELIM "%s%s " - "%s" DELIM PROJECT "%s " + "%s%s" DLM "%s%s " + "%s" DLM PROJECT "%s " FOLDER_TESTS "%s.c" " %s", compiler_c, flags, @@ -484,8 +484,8 @@ i32 main(i32 argc, c8 **argv) { for (i32 i = 0; i < sizeof cpp_tests / sizeof *cpp_tests; ++i) if (system(fmt( "%s %s " - "%s%s" DELIM "%s%s " - "%s" DELIM PROJECT "%s " + "%s%s" DLM "%s%s " + "%s" DLM PROJECT "%s " FOLDER_TESTS "%s.cpp" " %s", compiler_cpp, flags, @@ -508,13 +508,13 @@ i32 main(i32 argc, c8 **argv) { printf("Run tests\n\n"); fflush(stdout); - if (system(fmt("\"." DELIM "%s" DELIM "test_suite\"", destination)) != 0) + if (system(fmt("\"." DLM "%s" DLM "test_suite\"", destination)) != 0) status = 1; fflush(stdout); i32 code; - code = system(fmt("\"." DELIM "%s" DELIM "test_too_many_assertions\" --quiet", destination)) & 0xff; + code = system(fmt("\"." DLM "%s" DLM "test_too_many_assertions\" --quiet", destination)) & 0xff; if (code == 0) printf("too many assertions - OK\n"); else { @@ -523,7 +523,7 @@ i32 main(i32 argc, c8 **argv) { } fflush(stdout); - code = system(fmt("\"." DELIM "%s" DELIM "test_too_many_tests\" --quiet", destination)) & 0xff; + code = system(fmt("\"." DLM "%s" DLM "test_too_many_tests\" --quiet", destination)) & 0xff; if (code == 0) printf("too many tests - OK\n"); else { @@ -532,7 +532,7 @@ i32 main(i32 argc, c8 **argv) { } fflush(stdout); - code = system(fmt("\"." DELIM "%s" DELIM "test_cpp\" --quiet", destination)) & 0xff; + code = system(fmt("\"." DLM "%s" DLM "test_cpp\" --quiet", destination)) & 0xff; if (code == 0) printf("cpp - OK\n"); else { @@ -541,7 +541,7 @@ i32 main(i32 argc, c8 **argv) { } fflush(stdout); - code = system(fmt("\"." DELIM "%s" DELIM "test_signals\" --quiet", destination)) & 0xff; + code = system(fmt("\"." DLM "%s" DLM "test_signals\" --quiet", destination)) & 0xff; if (code == 0) printf("signals - OK\n"); else { @@ -550,12 +550,12 @@ i32 main(i32 argc, c8 **argv) { } fflush(stdout); - system(fmt("\"." DELIM "%s" DELIM "test_interprocess\" clean", destination)); + system(fmt("\"." DLM "%s" DLM "test_interprocess\" clean", destination)); if (OS == WINDOWS) - system(fmt("cmd /c start \"\" /b %s/test_interprocess\" reader", destination)); + system(fmt("cmd /c start "" /b \"." DLM "%s" DLM "test_interprocess\" reader", destination)); else - system(fmt("\"." DELIM "%s" DELIM "test_interprocess\" reader &", destination)); - code = system(fmt("\"." DELIM "%s" DELIM "test_interprocess\" writer", destination)); + system(fmt("\"." DLM "%s" DLM "test_interprocess\" reader &", destination)); + code = system(fmt("\"." DLM "%s" DLM "test_interprocess\" writer", destination)); if (code == 0) printf("interprocess - OK\n"); else { |