From: Jean-Philippe Bruyère Date: Mon, 15 Nov 2021 16:56:31 +0000 (+0100) Subject: update readme X-Git-Tag: v0.2.0~60 X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=ec52d693858c35b0dc48dd6c4629961258a8382c;p=jp%2Fvkvg.git update readme --- diff --git a/README.md b/README.md index 34cf9bd..7ab3888 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ if `glslc` or `xxd` are not present, a precompiled version of the shaders is sto ```bash #fetch sources from github -git clone --recursive https://github.com/jpbruyere/vkvg.git +git clone --recursive https://github.com/jpbruyere/vkvg.git cd vkvg # Create build directory mkdir build @@ -77,6 +77,11 @@ make A [detailed tutorial](doc/windows_build_tutorial.md) is available for Windows. +### Running tests + +Append the `-h` option to see available command line parameters. + + ### To Do - [x] Use Scissor where possible. diff --git a/tests/common/test.c b/tests/common/test.c index 24ddad9..ba4f624 100644 --- a/tests/common/test.c +++ b/tests/common/test.c @@ -186,7 +186,7 @@ void _print_usage_and_exit () { printf("\t-q:\t\tQuiet, don't print measures table head row, usefull for batch tests\n"); printf("\t-p:\t\tPrint test details and exit without performing test, usefull to print details in logs\n"); printf("\t-vsync:\t\tEnable VSync, disabled by default\n"); - printf("\t-help:\t\tthis help message.\n"); + printf("\t-h:\t\t\tthis help message.\n"); printf("\n"); exit(-1); } @@ -198,7 +198,7 @@ void _parse_args (int argc, char* argv[]) { if (strcmp (argv[i], "-p\0") == 0) printTestDetailsAndExit = true; else if (strcmp (argv[i], "-vsync\0") == 0) - test_vsync = true; + test_vsync = true; else if (strcmp (argv[i], "-q\0") == 0) quiet = true; else if (strcmp (argv[i], "-i\0") == 0) { @@ -220,7 +220,7 @@ void _parse_args (int argc, char* argv[]) { }else if (strcmp (argv[i], "-s\0") == 0) { if (argc -1 < ++i) _print_usage_and_exit(); - test_size = atoi (argv[i]); + test_size = atoi (argv[i]); }else if (strcmp (argv[i], "-S\0") == 0) { if (argc -1 < ++i) _print_usage_and_exit();