]> O.S.I.I.S - jp/vkvg.git/commitdiff
update readme
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Mon, 15 Nov 2021 16:56:31 +0000 (17:56 +0100)
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>
Mon, 15 Nov 2021 16:56:31 +0000 (17:56 +0100)
README.md
tests/common/test.c

index 34cf9bdfbd915c809a73169a3cee39ca7fa0214f..7ab38881b9c0f3ddc3eedbaaf2a1bf95a60fce18 100644 (file)
--- 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.
index 24ddad9ff3fe0eeb57b69d0713abc92729fbe1c9..ba4f624b7aacce716df97840b3a78f1e913f85fc 100644 (file)
@@ -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();