0028324: Configuration, genproj.tcl - compilation error while targeting OS X 10.8...
[occt.git] / tests / bugs / modalg_5 / bug25742_1
CommitLineData
b5ef9d91 1puts "============"
2puts "OCC25742"
3puts "============"
4puts ""
5###############################
6## A partition of 2 shapes stresses a performance issue
7###############################
8
9if { [regexp {Debug mode} [dversion]] } {
10 if { [regexp {Windows} [dversion]] } {
11 set max_time 150
12 } else {
13 set max_time 100
14 }
15} else {
16 if { [regexp {Windows} [dversion]] } {
17 set max_time 30
18 } else {
19 set max_time 20
20 }
21}
22
23restore [locate_data_file bug25742_pipeFiss.brep] b1
24restore [locate_data_file bug25742_shellFiss.brep] b2
25
26bclearobjects
27bcleartools
28baddobjects b1
29baddtools b2
30
31dchrono h reset
32dchrono h start
33
34bfillds
35bbuild result
36
37dchrono h stop
38set q [dchrono h show]
39
40regexp {CPU user time: ([-0-9.+eE]+) seconds} $q full z
41puts "$z"
42
43if { $z > ${max_time} } {
44 puts "Elapsed time of bbuild is more than ${max_time} seconds - Error"
45} else {
46 puts "Elapsed time of bbuild is less than ${max_time} seconds - OK"
47}
48
58cf74e0 49checkprops result -s 280627
50checkshape result
b5ef9d91 51
52set nbshapes_expected "
53Number of shapes in shape
54 VERTEX : 14
55 EDGE : 24
56 WIRE : 11
57 FACE : 10
58 SHELL : 1
59 SOLID : 0
60 COMPSOLID : 0
61 COMPOUND : 1
62 SHAPE : 61
63"
5ae01c85 64checknbshapes result -ref "${nbshapes_expected}" -t -m "Partition of 2 shapes"
5747059b 65checkview -display result -3d -path ${imagedir}/${test_image}.png