X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=dox%2Fdev_guides%2Ftests%2Ftests.md;h=e83bb06ea00fa9c06ac50e80ce709535809826bf;hb=44fae8b1936aa1f4e29769df51e6bd7242b0b169;hpb=810b672ff3f556d4fe0da7d39dab4eff96efba82 diff --git a/dox/dev_guides/tests/tests.md b/dox/dev_guides/tests/tests.md index 1228480c20..e83bb06ea0 100644 --- a/dox/dev_guides/tests/tests.md +++ b/dox/dev_guides/tests/tests.md @@ -715,11 +715,24 @@ Possible options are: * 1 -- outputs only differences; * 2 -- additionally outputs the list of logs and directories present in one of directories only; * 3 -- (by default) additionally outputs progress messages; +* -image [filename] - compare images and save the resulting log in specified file ($dir1/diffimage-$dir2.log by default) +* -cpu [filename] - compare overall CPU and save the resulting log in specified file ($dir1/diffcpu-$dir2.log by default) +* -memory [filename] - compare memory delta and save the resulting log in specified file ($dir1/diffmemory-$dir2.log by default) +* -highlight_percent \ - highlight considerable (>value in %) deviations of CPU and memory (default value is 5%) Example: ~~~~~ -Draw[]> testdiff results-CR12345-2012-10-10T08:00 results-master-2012-10-09T21:20 +Draw[]> testdiff results/CR12345-2012-10-10T08:00 results/master-2012-10-09T21:20 +~~~~~ + +Particular tests can generate additional data that need to be compared by *testdiff* command. +For that, for each parameter to be controlled, the test should produce the line containing keyword "COUNTER* followed by arbitrary name of the parameter, then colon and numeric value of the parameter. + +Example of test code: + +~~~~~ +puts "COUNTER Memory heap usage at step 5: [meminfo h]" ~~~~~ @section testmanual_5 APPENDIX