0027146: Create command checkplatform
[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
58cf74e0 33checkprops result -s 1.40193e+07
a4eba920 34checknbshapes result -vertex 372 -edge 369 -wire 2 -face 1 -shell 0 -solid 0 -compsolid 0 -compound 1 -shape 745
3bea4c16 35
863f782a 36if { [checkplatform -windows] } {
3bea4c16 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
50if {${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
5747059b 57checkview -screenshot -3d -path ${imagedir}/${test_image}.png