diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fc37d57c7a673b843444280757a3622cd03afb4c..60ff46e8e9942e64d9877b5258e5fcd0018452ac 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,6 +8,7 @@ after_script: xform-ls: tags: - zipr + - integration script: - "# gather info for debugging later, probably not necessary " - "pwd" @@ -34,6 +35,6 @@ xform-ls: - "./xxx" - "" - "# run zipr internal tests" - - "cd $ZIPR_HOME/tests; scons" + - "cd $ZIPR_HOME/test; scons" - "for i in *.exe; do ./$i; done" diff --git a/test/ZiprRange.cpp b/test/ZiprRange.cpp index ebbd9e7e76963db98f9afe2d912e0d42626be75d..28027047034be6835b5913b6d32828a5c95c460e 100644 --- a/test/ZiprRange.cpp +++ b/test/ZiprRange.cpp @@ -61,18 +61,17 @@ bool TestRangeSpeed() { } //m.PrintMemorySpace(cout); - - for (int i = 0; - i<100000000; - i++) + const auto timeStart=clock(); + auto i=0; + for (i = 0; (clock()-timeStart)/CLOCKS_PER_SEC < 10; i++) { volatile RangeAddress_t found_start = 0; - Range_t placement; - placement = m.GetFreeRange(d->Size()); + auto placement = m.GetFreeRange(d->Size()); found_start = placement.GetStart(); found_start++; } + cout<<"In 10 seconds, executed "<<dec<<i<<" iterations of GetFreeRange()"<<endl; return true; }