0026396: Taper API result differs run-to-run for identical inputs
[occt.git] / tests / bugs / moddata_1 / bug21292
CommitLineData
3bea4c16 1puts "========"
2puts "OCC21292"
3puts "========"
4puts ""
5######################################################
6# Shading on large model too long
7######################################################
8
9set BugNumber OCC21292
10
11# 1 munite
12cpulimit 60
13
14restore [locate_data_file OCC21292.brep] result
15
16vinit
17vsetdispmode 1
18
19chrono h reset; chrono h start
20#
21# DISPLAY OPERATION ----- START
22#
23vdisplay result
24#
25# DISPLAY OPERATION ----- FINISH
26#
27chrono h stop; set CPU_time_List [chrono h show]
28
29set CPU_user_time [lindex ${CPU_time_List} 11]
30puts "CPU_user_time=${CPU_user_time}"
31
32
33set square 1.40193e+07
34set nb_v_good 372
35set nb_e_good 369
36set nb_w_good 2
37set nb_f_good 1
38set nb_sh_good 0
39set nb_sol_good 0
40set nb_compsol_good 0
41set nb_compound_good 1
42set nb_shape_good 745
43
44
45if {[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
59if {${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
66set only_screen 0