ref: f6024104004b13f65486a62d2623c550953b757e
parent: 2073ea115c332f0ca0c1ad0457e1a668ba3a9438
author: Luca Barbato <lu_zero@gentoo.org>
date: Tue Jun 4 05:34:16 EDT 2019
checkasm: Add a --help option to checkasm
--- a/tests/checkasm/checkasm.c
+++ b/tests/checkasm/checkasm.c
@@ -504,7 +504,16 @@
int ret = 0;
while (argc > 1) {
- if (!strncmp(argv[1], "--bench", 7)) {
+ if (!strncmp(argv[1], "--help", 6)) {
+ fprintf(stdout,
+ "checkasm [options] <random seed>\n"
+ " <random seed> Numeric value to seed the rng\n"
+ "Options:\n"
+ " --test=<test_name> Test only <test_name>\n"
+ " --bench=<pattern> Test and benchmark the functions matching <pattern>\n"
+ " --list List the available tests\n"
+ return 0;
+ } else if (!strncmp(argv[1], "--bench", 7)) {
#ifndef readtime
fprintf(stderr,
"checkasm: --bench is not supported on your system\n");