0026622: Tests - Avoid using dlog and decho commands in test scripts
authorabv <abv@opencascade.com>
Fri, 9 Oct 2015 17:15:11 +0000 (20:15 +0300)
committerbugmaster <bugmaster@opencascade.com>
Thu, 15 Oct 2015 08:43:54 +0000 (11:43 +0300)
commit6d3685029f59c32fb7ca9c788350d4512088c95f
treea43a00d6918c22772d2d4f61168cb65b1225915d
parentee9e67edc7cb57d6c66a98e11479835b67667382
0026622: Tests - Avoid using dlog and decho commands in test scripts

Added possibility to define patterns that must be present in the test log, so that test is considered OK only if all these patterns are found.
New REQUIRED statement is introduced for that, documented in dox/dev_guides/tests/tests.md.

Removed all uses of decho and dlog commands, added REQUIRED where necessary.
Command xdistcs is modified to output to Tcl instead of cout, and extended to report errors and warnings if distances are greater than tolerance (directly, instead of complex post-processing on Tcl level).

DEBUG mode for TODOs was removed (we should have no deviations in Debug mode).

Corrected indentation in DrawResources/TestCommands.tcl

HTML log will now highlight TODO statement causing IMPROVEMENT status, or REQUIRED statement causing FAIL, by corresponding color.
144 files changed:
dox/dev_guides/tests/tests.md
src/DrawResources/TestCommands.tcl
src/GeometryTest/GeometryTest_TestProjCommands.cxx
tests/bugs/begin
tests/bugs/caf/bug1138
tests/bugs/demo/bug25020
tests/bugs/heal/bug23944
tests/bugs/heal/bug24218
tests/bugs/heal/bug25923
tests/bugs/mesh/bug25307
tests/bugs/mesh/bug25469_3
tests/bugs/modalg_2/bug22864
tests/bugs/modalg_2/bug23
tests/bugs/modalg_2/bug23530
tests/bugs/modalg_2/bug305
tests/bugs/modalg_2/bug323
tests/bugs/modalg_2/bug330
tests/bugs/modalg_2/bug548
tests/bugs/modalg_2/bug5729
tests/bugs/modalg_2/bug5805_3
tests/bugs/modalg_2/bug5805_4
tests/bugs/modalg_2/bug5805_5
tests/bugs/modalg_3/bug5805_6
tests/bugs/modalg_3/bug6063
tests/bugs/modalg_4/bug6181
tests/bugs/modalg_4/bug6182
tests/bugs/modalg_4/bug6277
tests/bugs/modalg_4/bug6334
tests/bugs/modalg_4/bug6538
tests/bugs/modalg_4/bug6554
tests/bugs/modalg_4/bug6766_1
tests/bugs/modalg_4/bug6766_2
tests/bugs/modalg_4/bug6766_3
tests/bugs/modalg_4/bug6766_4
tests/bugs/modalg_4/bug6811
tests/bugs/modalg_5/bug22831
tests/bugs/modalg_5/bug23948_2
tests/bugs/modalg_5/bug24035
tests/bugs/modalg_5/bug24220
tests/bugs/modalg_5/bug24299
tests/bugs/modalg_5/bug24472
tests/bugs/modalg_5/bug24492
tests/bugs/modalg_5/bug24650
tests/bugs/modalg_5/bug24915
tests/bugs/modalg_5/bug25043
tests/bugs/modalg_5/bug25292_11
tests/bugs/modalg_5/bug25292_12
tests/bugs/modalg_5/bug25292_15
tests/bugs/modalg_5/bug25292_16
tests/bugs/modalg_5/bug25292_21
tests/bugs/modalg_5/bug25292_22
tests/bugs/modalg_5/bug25292_25
tests/bugs/modalg_5/bug25292_26
tests/bugs/modalg_5/bug25292_31
tests/bugs/modalg_5/bug25292_32
tests/bugs/modalg_5/bug25292_33
tests/bugs/modalg_5/bug25292_34
tests/bugs/modalg_5/bug25292_35
tests/bugs/modalg_5/bug25292_36
tests/bugs/modalg_5/bug25416_1
tests/bugs/modalg_5/bug25416_2
tests/bugs/modalg_5/bug25416_3
tests/bugs/modalg_5/bug25488
tests/bugs/modalg_5/bug25509_1
tests/bugs/modalg_5/bug25509_2
tests/bugs/modalg_5/bug25509_3
tests/bugs/modalg_5/bug25509_4
tests/bugs/modalg_5/bug25509_5
tests/bugs/modalg_5/bug25509_6
tests/bugs/modalg_5/bug25509_7
tests/bugs/modalg_5/bug25509_8
tests/bugs/modalg_5/bug25697_2
tests/bugs/modalg_5/bug25735
tests/bugs/modalg_5/bug25801
tests/bugs/modalg_6/bug25820_1
tests/bugs/modalg_6/bug25820_2
tests/bugs/modalg_6/bug25820_3
tests/bugs/modalg_6/bug25844
tests/bugs/modalg_6/bug26556_1
tests/bugs/modalg_6/bug26556_2
tests/bugs/modalg_6/bug26556_3
tests/bugs/modalg_6/bug26556_4
tests/bugs/modalg_6/bug26587
tests/bugs/modalg_6/bug26636
tests/bugs/modalg_6/bug26687
tests/bugs/moddata_1/buc61006
tests/bugs/moddata_1/bug161
tests/bugs/moddata_1/bug203
tests/bugs/moddata_1/bug22043
tests/bugs/moddata_1/bug22080
tests/bugs/moddata_1/bug22165
tests/bugs/moddata_2/bug25
tests/bugs/moddata_2/bug278_3
tests/bugs/moddata_2/bug284
tests/bugs/moddata_2/bug325
tests/bugs/moddata_2/bug35
tests/bugs/moddata_2/bug366
tests/bugs/moddata_2/bug3896
tests/bugs/moddata_2/bug433
tests/bugs/moddata_2/bug438_1
tests/bugs/moddata_2/bug441_1
tests/bugs/moddata_2/bug441_2
tests/bugs/moddata_2/bug441_3
tests/bugs/moddata_2/bug525
tests/bugs/moddata_2/bug592
tests/bugs/moddata_2/bug6862_1
tests/bugs/moddata_2/bug6862_2
tests/bugs/moddata_2/bug6862_3
tests/bugs/moddata_2/bug6862_4
tests/bugs/moddata_2/bug6862_5
tests/bugs/moddata_2/bug6862_6
tests/bugs/moddata_2/bug6862_7
tests/bugs/moddata_2/bug6862_8
tests/bugs/moddata_2/bug6862_9
tests/bugs/moddata_2/bug736
tests/bugs/moddata_2/bug889
tests/bugs/moddata_2/bug9303_1
tests/bugs/moddata_2/bug935_1
tests/bugs/moddata_2/bug935_2
tests/bugs/moddata_2/bug943_1
tests/bugs/moddata_2/bug956_1
tests/bugs/moddata_2/bug956_2
tests/bugs/moddata_3/buc60811
tests/bugs/moddata_3/bug23981
tests/bugs/moddata_3/bug24142
tests/bugs/moddata_3/bug24427_1
tests/bugs/moddata_3/bug24427_2
tests/bugs/moddata_3/bug25109
tests/bugs/moddata_3/bug25782_1
tests/bugs/moddata_3/bug25782_2
tests/bugs/moddata_3/bug26038_1
tests/bugs/moddata_3/bug26038_2
tests/bugs/step/bug11856
tests/bugs/step/bug16351
tests/bugs/step/bug22145
tests/bugs/vis/bug23153
tests/bugs/vis/bug26029
tests/bugs/vis/bug316
tests/bugs/vis/bug319
tests/bugs/xde/bug24759
tests/bugs/xde/bug25176
tests/bugs/xde/bug25357
tests/bugs/xde/bug6366
tests/bugs/xde/bug945