3bea4c16 |
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 | set square 1.40193e+07 |
34 | set nb_v_good 372 |
35 | set nb_e_good 369 |
36 | set nb_w_good 2 |
37 | set nb_f_good 1 |
38 | set nb_sh_good 0 |
39 | set nb_sol_good 0 |
40 | set nb_compsol_good 0 |
41 | set nb_compound_good 1 |
42 | set nb_shape_good 745 |
43 | |
44 | |
45 | if {[string compare $tcl_platform(platform) "windows"] == 0} { |
46 | puts "windows" |
47 | set Good_CPU_user_time 0. |
48 | } else { |
49 | if {[string compare $tcl_platform(os) "SunOS"] == 0} { |
50 | puts "SunOS" |
51 | set Good_CPU_user_time 6. |
52 | } else { |
53 | puts "Linux" |
54 | set Good_CPU_user_time 6. |
55 | } |
56 | } |
57 | |
58 | # Check time boolean operation |
59 | if {${Good_CPU_user_time} > ${CPU_user_time}} { |
60 | puts "OK ${BugNumber} : CPU user time is good" |
61 | } else { |
62 | puts "Faulty ${BugNumber} : CPU user time is wrong" |
63 | } |
64 | |
65 | |
66 | set only_screen 0 |