f4174c56a1800259e4f57283c6348628be40673c
[occt.git] / tests / bugs / moddata_1 / bug21292
1 puts "========"
2 puts "OCC21292"
3 puts "========"
4 puts ""
5 ######################################################
6 # Shading on large model too long
7 ######################################################
8
9 set BugNumber OCC21292
10
11 # 1 munite
12 cpulimit 60
13
14 restore [locate_data_file OCC21292.brep] result
15
16 vinit
17 vsetdispmode 1
18
19 chrono h reset; chrono h start
20 #
21 # DISPLAY OPERATION ----- START
22 #
23 vdisplay result
24 #
25 # DISPLAY OPERATION ----- FINISH
26 #
27 chrono h stop; set CPU_time_List [chrono h show]
28
29 set CPU_user_time [lindex ${CPU_time_List} 11]
30 puts "CPU_user_time=${CPU_user_time}"
31
32
33 checkprops result -s 1.40193e+07
34 checknbshapes result -vertex 372 -edge 369 -wire 2 -face 1 -shell 0 -solid 0 -compsolid 0 -compound 1 -shape 745
35
36 if {[string compare $tcl_platform(platform) "windows"] == 0} {
37    puts "windows"
38    set Good_CPU_user_time 0.
39 } else {
40    if {[string compare $tcl_platform(os) "SunOS"] == 0} {
41       puts "SunOS"
42       set Good_CPU_user_time 6.
43    } else {
44       puts "Linux"
45       set Good_CPU_user_time 6.
46    }
47 }
48
49 # Check time boolean operation
50 if {${Good_CPU_user_time} > ${CPU_user_time}} {
51    puts "OK ${BugNumber} : CPU user time is good"
52 } else {
53    puts "Faulty ${BugNumber} : CPU user time is wrong"
54 }
55
56
57 checkview -screenshot -3d -path ${imagedir}/${test_image}.png