|
|
|
@ -135,6 +135,7 @@ test_all(int argc, char *argv[])
@@ -135,6 +135,7 @@ test_all(int argc, char *argv[])
|
|
|
|
|
unsigned i; |
|
|
|
|
char *args[2] = {"all", NULL}; |
|
|
|
|
unsigned int failcount = 0; |
|
|
|
|
unsigned int testcount = 0; |
|
|
|
|
bool passed[NTESTS]; |
|
|
|
|
|
|
|
|
|
printf("\nRunning all tests...\n\n"); |
|
|
|
@ -156,6 +157,7 @@ test_all(int argc, char *argv[])
@@ -156,6 +157,7 @@ test_all(int argc, char *argv[])
|
|
|
|
|
fflush(stdout); |
|
|
|
|
passed[i] = true; |
|
|
|
|
} |
|
|
|
|
testcount++; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -178,7 +180,7 @@ test_all(int argc, char *argv[])
@@ -178,7 +180,7 @@ test_all(int argc, char *argv[])
|
|
|
|
|
printf(" \\ \\_\\ \\_\\ \\ \\_____\\ \\ \\_____\\ \\ \\_____\\ \\ \\_\\ \\_\\ \n"); |
|
|
|
|
printf(" \\/_/\\/_/ \\/_____/ \\/_____/ \\/_____/ \\/_/\\/_/ \n"); |
|
|
|
|
printf("\n"); |
|
|
|
|
printf(" All tests passed (%d of %d)\n", i, i); |
|
|
|
|
printf(" All tests passed (%d of %d)\n", testcount, testcount); |
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
|
printf(" ______ ______ __ __ \n"); |
|
|
|
@ -187,7 +189,7 @@ test_all(int argc, char *argv[])
@@ -187,7 +189,7 @@ test_all(int argc, char *argv[])
|
|
|
|
|
printf(" \\ \\_\\ \\ \\_\\ \\_\\ \\ \\_\\ \\ \\_____\\ \n"); |
|
|
|
|
printf(" \\/_/ \\/_/\\/_/ \\/_/ \\/_____/ \n"); |
|
|
|
|
printf("\n"); |
|
|
|
|
printf(" Some tests failed (%d of %d)\n", failcount, i); |
|
|
|
|
printf(" Some tests failed (%d of %d)\n", failcount, testcount); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
printf("\n"); |
|
|
|
@ -245,6 +247,7 @@ int test_jig(int argc, char *argv[])
@@ -245,6 +247,7 @@ int test_jig(int argc, char *argv[])
|
|
|
|
|
unsigned i; |
|
|
|
|
char *args[2] = {"jig", NULL}; |
|
|
|
|
unsigned int failcount = 0; |
|
|
|
|
unsigned int testcount = 0; |
|
|
|
|
bool passed[NTESTS]; |
|
|
|
|
|
|
|
|
|
printf("\nRunning all tests...\n\n"); |
|
|
|
@ -264,6 +267,7 @@ int test_jig(int argc, char *argv[])
@@ -264,6 +267,7 @@ int test_jig(int argc, char *argv[])
|
|
|
|
|
fflush(stdout); |
|
|
|
|
passed[i] = true; |
|
|
|
|
} |
|
|
|
|
testcount++; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -284,7 +288,7 @@ int test_jig(int argc, char *argv[])
@@ -284,7 +288,7 @@ int test_jig(int argc, char *argv[])
|
|
|
|
|
printf(" \\ \\_\\ \\_\\ \\ \\_____\\ \\ \\_____\\ \\ \\_____\\ \\ \\_\\ \\_\\ \n"); |
|
|
|
|
printf(" \\/_/\\/_/ \\/_____/ \\/_____/ \\/_____/ \\/_/\\/_/ \n"); |
|
|
|
|
printf("\n"); |
|
|
|
|
printf(" All tests passed (%d of %d)\n", i, i); |
|
|
|
|
printf(" All tests passed (%d of %d)\n", testcount, testcount); |
|
|
|
|
} else { |
|
|
|
|
printf(" ______ ______ __ __ \n"); |
|
|
|
|
printf(" /\\ ___\\ /\\ __ \\ /\\ \\ /\\ \\ \n"); |
|
|
|
@ -292,7 +296,7 @@ int test_jig(int argc, char *argv[])
@@ -292,7 +296,7 @@ int test_jig(int argc, char *argv[])
|
|
|
|
|
printf(" \\ \\_\\ \\ \\_\\ \\_\\ \\ \\_\\ \\ \\_____\\ \n"); |
|
|
|
|
printf(" \\/_/ \\/_/\\/_/ \\/_/ \\/_____/ \n"); |
|
|
|
|
printf("\n"); |
|
|
|
|
printf(" Some tests failed (%d of %d)\n", failcount, i); |
|
|
|
|
printf(" Some tests failed (%d of %d)\n", failcount, testcount); |
|
|
|
|
} |
|
|
|
|
printf("\n"); |
|
|
|
|
|
|
|
|
|