From: jgv Date: Mon, 14 Aug 2017 12:44:56 +0000 (+0300) Subject: Creation of the test cases for new functionality. X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2FCR29003;p=occt-copy.git Creation of the test cases for new functionality. --- diff --git a/tests/patchfaces/begin b/tests/patchfaces/begin new file mode 100644 index 0000000000..8eddf19b1a --- /dev/null +++ b/tests/patchfaces/begin @@ -0,0 +1,23 @@ +# To prevent loops limit to 10 minutes +cpulimit 900 +if { [array get Draw_Groups "TOPOLOGY Feature commands"] == "" } { + pload TOPTEST +} +if { [array get Draw_Groups "Shape Healing"] == "" } { + pload XSDRAW +} +if { [info exists imagedir] == 0 } { + set imagedir . +} +if { [info exists test_image ] == 0 } { + set test_image photo +} +proc PATCHFACES {i} { + uplevel #0 binrestore [locate_data_file shape_3_$i.bin] s + uplevel #0 tclean s + uplevel #0 removeloc s s + uplevel #0 explode s + uplevel #0 tcopy s_1 InitShape + + uplevel #0 patchfaces result s_1 s_2 s_3 +} diff --git a/tests/patchfaces/end b/tests/patchfaces/end new file mode 100644 index 0000000000..73b3acd4ea --- /dev/null +++ b/tests/patchfaces/end @@ -0,0 +1 @@ +puts "TEST COMPLETED" diff --git a/tests/patchfaces/grids.list b/tests/patchfaces/grids.list new file mode 100644 index 0000000000..55dee65f67 --- /dev/null +++ b/tests/patchfaces/grids.list @@ -0,0 +1 @@ +001 replace diff --git a/tests/patchfaces/parse.rules b/tests/patchfaces/parse.rules new file mode 100644 index 0000000000..95a93927e0 --- /dev/null +++ b/tests/patchfaces/parse.rules @@ -0,0 +1,2 @@ +FAILED /\bFaulty\b/ bad shape +OK /Relative error of mass computation/ message from vprops \ No newline at end of file diff --git a/tests/patchfaces/replace/end b/tests/patchfaces/replace/end new file mode 100644 index 0000000000..53c98d65cb --- /dev/null +++ b/tests/patchfaces/replace/end @@ -0,0 +1 @@ +checkview -display result -2d -path ${imagedir}/${test_image}.png \ No newline at end of file diff --git a/tests/patchfaces/replace/test_1 b/tests/patchfaces/replace/test_1 new file mode 100644 index 0000000000..9fc4b85992 --- /dev/null +++ b/tests/patchfaces/replace/test_1 @@ -0,0 +1 @@ +PATCHFACES 1 \ No newline at end of file diff --git a/tests/patchfaces/replace/test_10 b/tests/patchfaces/replace/test_10 new file mode 100644 index 0000000000..4089cf808b --- /dev/null +++ b/tests/patchfaces/replace/test_10 @@ -0,0 +1 @@ +PATCHFACES 10 \ No newline at end of file diff --git a/tests/patchfaces/replace/test_11 b/tests/patchfaces/replace/test_11 new file mode 100644 index 0000000000..a40a9b3cf3 --- /dev/null +++ b/tests/patchfaces/replace/test_11 @@ -0,0 +1 @@ +PATCHFACES 11 \ No newline at end of file diff --git a/tests/patchfaces/replace/test_12 b/tests/patchfaces/replace/test_12 new file mode 100644 index 0000000000..0b094e3c01 --- /dev/null +++ b/tests/patchfaces/replace/test_12 @@ -0,0 +1 @@ +PATCHFACES 12 \ No newline at end of file diff --git a/tests/patchfaces/replace/test_13 b/tests/patchfaces/replace/test_13 new file mode 100644 index 0000000000..8fcfcd37af --- /dev/null +++ b/tests/patchfaces/replace/test_13 @@ -0,0 +1 @@ +PATCHFACES 13 \ No newline at end of file diff --git a/tests/patchfaces/replace/test_14 b/tests/patchfaces/replace/test_14 new file mode 100644 index 0000000000..247d4915a0 --- /dev/null +++ b/tests/patchfaces/replace/test_14 @@ -0,0 +1 @@ +PATCHFACES 14 \ No newline at end of file diff --git a/tests/patchfaces/replace/test_15 b/tests/patchfaces/replace/test_15 new file mode 100644 index 0000000000..75b75d0657 --- /dev/null +++ b/tests/patchfaces/replace/test_15 @@ -0,0 +1 @@ +PATCHFACES 15 \ No newline at end of file diff --git a/tests/patchfaces/replace/test_16 b/tests/patchfaces/replace/test_16 new file mode 100644 index 0000000000..2e9d2ae11a --- /dev/null +++ b/tests/patchfaces/replace/test_16 @@ -0,0 +1 @@ +PATCHFACES 16 \ No newline at end of file diff --git a/tests/patchfaces/replace/test_17 b/tests/patchfaces/replace/test_17 new file mode 100644 index 0000000000..53762739db --- /dev/null +++ b/tests/patchfaces/replace/test_17 @@ -0,0 +1 @@ +PATCHFACES 17 \ No newline at end of file diff --git a/tests/patchfaces/replace/test_18 b/tests/patchfaces/replace/test_18 new file mode 100644 index 0000000000..d15b5ab431 --- /dev/null +++ b/tests/patchfaces/replace/test_18 @@ -0,0 +1 @@ +PATCHFACES 18 \ No newline at end of file diff --git a/tests/patchfaces/replace/test_19 b/tests/patchfaces/replace/test_19 new file mode 100644 index 0000000000..58b5d2c72f --- /dev/null +++ b/tests/patchfaces/replace/test_19 @@ -0,0 +1 @@ +PATCHFACES 19 \ No newline at end of file diff --git a/tests/patchfaces/replace/test_2 b/tests/patchfaces/replace/test_2 new file mode 100644 index 0000000000..7c6e6e6876 --- /dev/null +++ b/tests/patchfaces/replace/test_2 @@ -0,0 +1 @@ +PATCHFACES 2 \ No newline at end of file diff --git a/tests/patchfaces/replace/test_20 b/tests/patchfaces/replace/test_20 new file mode 100644 index 0000000000..4c8a8baa47 --- /dev/null +++ b/tests/patchfaces/replace/test_20 @@ -0,0 +1 @@ +PATCHFACES 20 \ No newline at end of file diff --git a/tests/patchfaces/replace/test_21 b/tests/patchfaces/replace/test_21 new file mode 100644 index 0000000000..31ff03b3fc --- /dev/null +++ b/tests/patchfaces/replace/test_21 @@ -0,0 +1 @@ +PATCHFACES 21 \ No newline at end of file diff --git a/tests/patchfaces/replace/test_22 b/tests/patchfaces/replace/test_22 new file mode 100644 index 0000000000..1472cf0d63 --- /dev/null +++ b/tests/patchfaces/replace/test_22 @@ -0,0 +1 @@ +PATCHFACES 22 \ No newline at end of file diff --git a/tests/patchfaces/replace/test_23 b/tests/patchfaces/replace/test_23 new file mode 100644 index 0000000000..43e9544e53 --- /dev/null +++ b/tests/patchfaces/replace/test_23 @@ -0,0 +1 @@ +PATCHFACES 23 \ No newline at end of file diff --git a/tests/patchfaces/replace/test_24 b/tests/patchfaces/replace/test_24 new file mode 100644 index 0000000000..bab81082a6 --- /dev/null +++ b/tests/patchfaces/replace/test_24 @@ -0,0 +1 @@ +PATCHFACES 24 \ No newline at end of file diff --git a/tests/patchfaces/replace/test_25 b/tests/patchfaces/replace/test_25 new file mode 100644 index 0000000000..d11d3b564d --- /dev/null +++ b/tests/patchfaces/replace/test_25 @@ -0,0 +1 @@ +PATCHFACES 25 \ No newline at end of file diff --git a/tests/patchfaces/replace/test_26 b/tests/patchfaces/replace/test_26 new file mode 100644 index 0000000000..0af9759422 --- /dev/null +++ b/tests/patchfaces/replace/test_26 @@ -0,0 +1 @@ +PATCHFACES 26 \ No newline at end of file diff --git a/tests/patchfaces/replace/test_27 b/tests/patchfaces/replace/test_27 new file mode 100644 index 0000000000..defa2b09df --- /dev/null +++ b/tests/patchfaces/replace/test_27 @@ -0,0 +1 @@ +PATCHFACES 27 \ No newline at end of file diff --git a/tests/patchfaces/replace/test_28 b/tests/patchfaces/replace/test_28 new file mode 100644 index 0000000000..7da11d2301 --- /dev/null +++ b/tests/patchfaces/replace/test_28 @@ -0,0 +1 @@ +PATCHFACES 28 \ No newline at end of file diff --git a/tests/patchfaces/replace/test_29 b/tests/patchfaces/replace/test_29 new file mode 100644 index 0000000000..f16ed03dcd --- /dev/null +++ b/tests/patchfaces/replace/test_29 @@ -0,0 +1 @@ +PATCHFACES 29 \ No newline at end of file diff --git a/tests/patchfaces/replace/test_3 b/tests/patchfaces/replace/test_3 new file mode 100644 index 0000000000..2db0a20cf0 --- /dev/null +++ b/tests/patchfaces/replace/test_3 @@ -0,0 +1 @@ +PATCHFACES 3 \ No newline at end of file diff --git a/tests/patchfaces/replace/test_30 b/tests/patchfaces/replace/test_30 new file mode 100644 index 0000000000..d07f306628 --- /dev/null +++ b/tests/patchfaces/replace/test_30 @@ -0,0 +1 @@ +PATCHFACES 30 \ No newline at end of file diff --git a/tests/patchfaces/replace/test_31 b/tests/patchfaces/replace/test_31 new file mode 100644 index 0000000000..b8ef5b5d17 --- /dev/null +++ b/tests/patchfaces/replace/test_31 @@ -0,0 +1 @@ +PATCHFACES 31 \ No newline at end of file diff --git a/tests/patchfaces/replace/test_32 b/tests/patchfaces/replace/test_32 new file mode 100644 index 0000000000..c531a687e0 --- /dev/null +++ b/tests/patchfaces/replace/test_32 @@ -0,0 +1 @@ +PATCHFACES 32 \ No newline at end of file diff --git a/tests/patchfaces/replace/test_33 b/tests/patchfaces/replace/test_33 new file mode 100644 index 0000000000..5ddf9519ce --- /dev/null +++ b/tests/patchfaces/replace/test_33 @@ -0,0 +1 @@ +PATCHFACES 33 \ No newline at end of file diff --git a/tests/patchfaces/replace/test_34 b/tests/patchfaces/replace/test_34 new file mode 100644 index 0000000000..8f81bc0f47 --- /dev/null +++ b/tests/patchfaces/replace/test_34 @@ -0,0 +1 @@ +PATCHFACES 34 \ No newline at end of file diff --git a/tests/patchfaces/replace/test_35 b/tests/patchfaces/replace/test_35 new file mode 100644 index 0000000000..cc9e8b6f7c --- /dev/null +++ b/tests/patchfaces/replace/test_35 @@ -0,0 +1 @@ +PATCHFACES 35 \ No newline at end of file diff --git a/tests/patchfaces/replace/test_4 b/tests/patchfaces/replace/test_4 new file mode 100644 index 0000000000..4cf50d24b1 --- /dev/null +++ b/tests/patchfaces/replace/test_4 @@ -0,0 +1 @@ +PATCHFACES 4 \ No newline at end of file diff --git a/tests/patchfaces/replace/test_5 b/tests/patchfaces/replace/test_5 new file mode 100644 index 0000000000..9436e03c4d --- /dev/null +++ b/tests/patchfaces/replace/test_5 @@ -0,0 +1 @@ +PATCHFACES 5 \ No newline at end of file diff --git a/tests/patchfaces/replace/test_6 b/tests/patchfaces/replace/test_6 new file mode 100644 index 0000000000..447f5d0859 --- /dev/null +++ b/tests/patchfaces/replace/test_6 @@ -0,0 +1 @@ +PATCHFACES 6 \ No newline at end of file diff --git a/tests/patchfaces/replace/test_7 b/tests/patchfaces/replace/test_7 new file mode 100644 index 0000000000..19d943456b --- /dev/null +++ b/tests/patchfaces/replace/test_7 @@ -0,0 +1 @@ +PATCHFACES 7 \ No newline at end of file diff --git a/tests/patchfaces/replace/test_8 b/tests/patchfaces/replace/test_8 new file mode 100644 index 0000000000..8386ba18ca --- /dev/null +++ b/tests/patchfaces/replace/test_8 @@ -0,0 +1 @@ +PATCHFACES 8 \ No newline at end of file diff --git a/tests/patchfaces/replace/test_9 b/tests/patchfaces/replace/test_9 new file mode 100644 index 0000000000..75af863bad --- /dev/null +++ b/tests/patchfaces/replace/test_9 @@ -0,0 +1 @@ +PATCHFACES 9 \ No newline at end of file