Moved the test/bench runner path behind an optional flag
So now instead of needing: ./scripts/test.py ./runners/test_runner test_dtree You can just do: ./scripts/test.py test_dtree Or with an explicit path: ./scripts/test.py -R./runners/test_runner test_dtree This makes it easier to run the script manually. And, while there may be some hiccups with the implicit relative path, I think in general this will make the test/bench scripts easier to use. There was already an implicit runner path, though only if the test suite was completely omitted. I'm not sure that would ever have actually been useful... --- Also increased the permutation field size in --list-*, since I noticed it was overflowing.
This commit is contained in:
@@ -864,7 +864,7 @@ void perm_count(
|
||||
|
||||
// operations we can do
|
||||
static void summary(void) {
|
||||
printf("%-23s %7s %7s %7s %11s\n",
|
||||
printf("%-23s %7s %7s %7s %15s\n",
|
||||
"", "flags", "suites", "cases", "perms");
|
||||
size_t suites = 0;
|
||||
size_t cases = 0;
|
||||
@@ -909,7 +909,7 @@ static void summary(void) {
|
||||
(flags & TEST_REENTRANT) ? "r" : "",
|
||||
(flags & TEST_INTERNAL) ? "i" : "",
|
||||
(!flags) ? "-" : "");
|
||||
printf("%-23s %7s %7zu %7zu %11s\n",
|
||||
printf("%-23s %7s %7zu %7zu %15s\n",
|
||||
"TOTAL",
|
||||
flag_buf,
|
||||
suites,
|
||||
@@ -928,7 +928,7 @@ static void list_suites(void) {
|
||||
}
|
||||
name_width = 4*((name_width+1+4-1)/4)-1;
|
||||
|
||||
printf("%-*s %7s %7s %11s\n",
|
||||
printf("%-*s %7s %7s %15s\n",
|
||||
name_width, "suite", "flags", "cases", "perms");
|
||||
for (size_t t = 0; t < test_id_count; t++) {
|
||||
for (size_t i = 0; i < test_suite_count; i++) {
|
||||
@@ -971,7 +971,7 @@ static void list_suites(void) {
|
||||
(test_suites[i]->flags & TEST_REENTRANT) ? "r" : "",
|
||||
(test_suites[i]->flags & TEST_INTERNAL) ? "i" : "",
|
||||
(!test_suites[i]->flags) ? "-" : "");
|
||||
printf("%-*s %7s %7zu %11s\n",
|
||||
printf("%-*s %7s %7zu %15s\n",
|
||||
name_width,
|
||||
test_suites[i]->name,
|
||||
flag_buf,
|
||||
@@ -994,7 +994,7 @@ static void list_cases(void) {
|
||||
}
|
||||
name_width = 4*((name_width+1+4-1)/4)-1;
|
||||
|
||||
printf("%-*s %7s %11s\n", name_width, "case", "flags", "perms");
|
||||
printf("%-*s %7s %15s\n", name_width, "case", "flags", "perms");
|
||||
for (size_t t = 0; t < test_id_count; t++) {
|
||||
for (size_t i = 0; i < test_suite_count; i++) {
|
||||
test_define_suite(test_suites[i]);
|
||||
@@ -1030,7 +1030,7 @@ static void list_cases(void) {
|
||||
? "i" : "",
|
||||
(!test_suites[i]->cases[j].flags)
|
||||
? "-" : "");
|
||||
printf("%-*s %7s %11s\n",
|
||||
printf("%-*s %7s %15s\n",
|
||||
name_width,
|
||||
test_suites[i]->cases[j].name,
|
||||
flag_buf,
|
||||
|
||||
Reference in New Issue
Block a user