1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-07-30 13:05:50 +03:00
occt/tests/bugs/heal/bug25424
ski 5747059b21 0026833: Create command checkview containing all viewer types
Created command checkview for displaying shapes.
2016-02-05 11:14:37 +03:00

44 lines
1.1 KiB
Plaintext
Executable File

puts "================"
puts "OCC25424"
puts "================"
puts ""
#######################################################################################
# Performance regression on step import
######################################################################################
pload XDE
pload QAcommands
if { [regexp {Debug mode} [dversion]] } {
set max_time 200
} else {
if { [regexp {Windows} [dversion]] } {
set max_time 15
} else {
set max_time 20
}
}
dchrono h reset
dchrono h start
testreadstep [locate_data_file bug25424_Secure.stp] result
dchrono h stop
set q [dchrono h show]
regexp {CPU user time: ([-0-9.+eE]+) seconds} $q full z
puts "$z"
if { $z > ${max_time} } {
puts "Elapsed time of testreadstep is more than ${max_time} seconds - Faulty"
} else {
puts "Elapsed time of testreadstep is less than ${max_time} seconds - OK"
}
checkprops result -s 6998.53
checkshape result
checknbshapes result -vertex 4482 -edge 6781 -wire 2309 -face 2305 -shell 1 -solid 1 -compsolid 0 -compound 0 -shape 15879
checkview -display result -3d -path ${imagedir}/${test_image}.png