shithub: dav1d

Download patch

ref: 08184fd81d9e04f5cf6e8a92dc0461295c863e0a
parent: d4ddfdf519280fd0f35c897f56c1fb25fdc239a4
author: Francois Cartegnie <fcvlcdev@free.fr>
date: Fri Nov 23 06:38:23 EST 2018

checkasm: add --list tests

--- a/tests/checkasm/checkasm.c
+++ b/tests/checkasm/checkasm.c
@@ -448,6 +448,12 @@
                 state.bench_pattern = "";
         } else if (!strncmp(argv[1], "--test=", 7)) {
             state.test_name = argv[1] + 7;
+        } else if (!strcmp(argv[1], "--list")) {
+            fprintf(stderr, "checkasm: available tests [");
+            for (int i = 0; tests[i].func; i++)
+                fprintf(stderr, "%s%s", i ? ", ": "", tests[i].name);
+            fprintf(stderr, "]\n");
+            return 0;
         } else {
             state.seed = strtoul(argv[1], NULL, 10);
         }