]> OCCT Git - occt-copy.git/commitdiff
Creation of the test cases for new functionality. CR29003
authorjgv <jgv@opencascade.com>
Mon, 14 Aug 2017 12:44:56 +0000 (15:44 +0300)
committerjgv <jgv@opencascade.com>
Wed, 16 Aug 2017 10:57:08 +0000 (13:57 +0300)
40 files changed:
tests/patchfaces/begin [new file with mode: 0644]
tests/patchfaces/end [new file with mode: 0644]
tests/patchfaces/grids.list [new file with mode: 0644]
tests/patchfaces/parse.rules [new file with mode: 0644]
tests/patchfaces/replace/end [new file with mode: 0644]
tests/patchfaces/replace/test_1 [new file with mode: 0644]
tests/patchfaces/replace/test_10 [new file with mode: 0644]
tests/patchfaces/replace/test_11 [new file with mode: 0644]
tests/patchfaces/replace/test_12 [new file with mode: 0644]
tests/patchfaces/replace/test_13 [new file with mode: 0644]
tests/patchfaces/replace/test_14 [new file with mode: 0644]
tests/patchfaces/replace/test_15 [new file with mode: 0644]
tests/patchfaces/replace/test_16 [new file with mode: 0644]
tests/patchfaces/replace/test_17 [new file with mode: 0644]
tests/patchfaces/replace/test_18 [new file with mode: 0644]
tests/patchfaces/replace/test_19 [new file with mode: 0644]
tests/patchfaces/replace/test_2 [new file with mode: 0644]
tests/patchfaces/replace/test_20 [new file with mode: 0644]
tests/patchfaces/replace/test_21 [new file with mode: 0644]
tests/patchfaces/replace/test_22 [new file with mode: 0644]
tests/patchfaces/replace/test_23 [new file with mode: 0644]
tests/patchfaces/replace/test_24 [new file with mode: 0644]
tests/patchfaces/replace/test_25 [new file with mode: 0644]
tests/patchfaces/replace/test_26 [new file with mode: 0644]
tests/patchfaces/replace/test_27 [new file with mode: 0644]
tests/patchfaces/replace/test_28 [new file with mode: 0644]
tests/patchfaces/replace/test_29 [new file with mode: 0644]
tests/patchfaces/replace/test_3 [new file with mode: 0644]
tests/patchfaces/replace/test_30 [new file with mode: 0644]
tests/patchfaces/replace/test_31 [new file with mode: 0644]
tests/patchfaces/replace/test_32 [new file with mode: 0644]
tests/patchfaces/replace/test_33 [new file with mode: 0644]
tests/patchfaces/replace/test_34 [new file with mode: 0644]
tests/patchfaces/replace/test_35 [new file with mode: 0644]
tests/patchfaces/replace/test_4 [new file with mode: 0644]
tests/patchfaces/replace/test_5 [new file with mode: 0644]
tests/patchfaces/replace/test_6 [new file with mode: 0644]
tests/patchfaces/replace/test_7 [new file with mode: 0644]
tests/patchfaces/replace/test_8 [new file with mode: 0644]
tests/patchfaces/replace/test_9 [new file with mode: 0644]

diff --git a/tests/patchfaces/begin b/tests/patchfaces/begin
new file mode 100644 (file)
index 0000000..8eddf19
--- /dev/null
@@ -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 (file)
index 0000000..73b3acd
--- /dev/null
@@ -0,0 +1 @@
+puts "TEST COMPLETED"
diff --git a/tests/patchfaces/grids.list b/tests/patchfaces/grids.list
new file mode 100644 (file)
index 0000000..55dee65
--- /dev/null
@@ -0,0 +1 @@
+001 replace
diff --git a/tests/patchfaces/parse.rules b/tests/patchfaces/parse.rules
new file mode 100644 (file)
index 0000000..95a9392
--- /dev/null
@@ -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 (file)
index 0000000..53c98d6
--- /dev/null
@@ -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 (file)
index 0000000..9fc4b85
--- /dev/null
@@ -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 (file)
index 0000000..4089cf8
--- /dev/null
@@ -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 (file)
index 0000000..a40a9b3
--- /dev/null
@@ -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 (file)
index 0000000..0b094e3
--- /dev/null
@@ -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 (file)
index 0000000..8fcfcd3
--- /dev/null
@@ -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 (file)
index 0000000..247d491
--- /dev/null
@@ -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 (file)
index 0000000..75b75d0
--- /dev/null
@@ -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 (file)
index 0000000..2e9d2ae
--- /dev/null
@@ -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 (file)
index 0000000..5376273
--- /dev/null
@@ -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 (file)
index 0000000..d15b5ab
--- /dev/null
@@ -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 (file)
index 0000000..58b5d2c
--- /dev/null
@@ -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 (file)
index 0000000..7c6e6e6
--- /dev/null
@@ -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 (file)
index 0000000..4c8a8ba
--- /dev/null
@@ -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 (file)
index 0000000..31ff03b
--- /dev/null
@@ -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 (file)
index 0000000..1472cf0
--- /dev/null
@@ -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 (file)
index 0000000..43e9544
--- /dev/null
@@ -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 (file)
index 0000000..bab8108
--- /dev/null
@@ -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 (file)
index 0000000..d11d3b5
--- /dev/null
@@ -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 (file)
index 0000000..0af9759
--- /dev/null
@@ -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 (file)
index 0000000..defa2b0
--- /dev/null
@@ -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 (file)
index 0000000..7da11d2
--- /dev/null
@@ -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 (file)
index 0000000..f16ed03
--- /dev/null
@@ -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 (file)
index 0000000..2db0a20
--- /dev/null
@@ -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 (file)
index 0000000..d07f306
--- /dev/null
@@ -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 (file)
index 0000000..b8ef5b5
--- /dev/null
@@ -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 (file)
index 0000000..c531a68
--- /dev/null
@@ -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 (file)
index 0000000..5ddf951
--- /dev/null
@@ -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 (file)
index 0000000..8f81bc0
--- /dev/null
@@ -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 (file)
index 0000000..cc9e8b6
--- /dev/null
@@ -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 (file)
index 0000000..4cf50d2
--- /dev/null
@@ -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 (file)
index 0000000..9436e03
--- /dev/null
@@ -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 (file)
index 0000000..447f5d0
--- /dev/null
@@ -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 (file)
index 0000000..19d9434
--- /dev/null
@@ -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 (file)
index 0000000..8386ba1
--- /dev/null
@@ -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 (file)
index 0000000..75af863
--- /dev/null
@@ -0,0 +1 @@
+PATCHFACES 9
\ No newline at end of file