diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2018-03-11 18:14:28 +0100 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2018-04-01 14:39:20 +0200 |
| commit | db162d3b06e51491099d221808ae8e3b0066dc51 (patch) | |
| tree | 3579b7acb4e513f1e7cc89e34bba7f0d4f365445 | |
| parent | 62200ce6a302402fbc373e71e03bd2fc46f6b936 (diff) | |
| download | PROJ-5.0.tar.gz PROJ-5.0.zip | |
mingw32 travis: reduce number of iterations for multistresstest5.0
| -rw-r--r-- | src/multistresstest.c | 7 | ||||
| -rwxr-xr-x | travis/mingw32/install.sh | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/multistresstest.c b/src/multistresstest.c index e32c7ae4..adedb8bd 100644 --- a/src/multistresstest.c +++ b/src/multistresstest.c @@ -39,7 +39,7 @@ #endif #define num_threads 10 -#define num_iterations 1000000 +static int num_iterations = 1000000; static int reinit_every_iteration=0; static int add_no_defs = 0; @@ -459,6 +459,11 @@ int main( int argc, char **argv ) reinit_every_iteration = 1; else if( strcmp(argv[i], "-add_no_defs") == 0 ) add_no_defs = 1; + else if( strcmp(argv[i], "-num_iterations") == 0 && i+1 < argc ) + { + num_iterations = atoi(argv[i+1]); + i++; + } } #ifdef _WIN32 diff --git a/travis/mingw32/install.sh b/travis/mingw32/install.sh index b1ea07c8..49e395a5 100755 --- a/travis/mingw32/install.sh +++ b/travis/mingw32/install.sh @@ -33,6 +33,6 @@ cd src make multistresstest.exe make test228.exe cd .. -PROJ_LIB=../nad src/multistresstest.exe +PROJ_LIB=../nad src/multistresstest.exe -num_iterations 100000 cd .. |
