1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00
occt/tests/bugs/modalg_6/bug26327
2015-12-17 15:26:15 +03:00

46 lines
940 B
Plaintext
Executable File

puts "============"
puts "OCC24596"
puts "============"
puts ""
###############################
## Slow import of IGES data
###############################
pload XDE
if { [regexp {Debug mode} [dversion]] } {
if { [regexp {Windows} [dversion]] } {
set max_time 30
} else {
set max_time 30
}
} else {
if { [regexp {Windows} [dversion]] } {
set max_time 10
} else {
set max_time 10
}
}
dchrono h reset
dchrono h start
stepread [locate_data_file bug26327_fuse_input.stp] a *
for {set i 2} {$i < 22} {incr i} {
puts "a_$i"
bfuse a_1 a_1 a_$i
}
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 import of IGES data is more than ${max_time} seconds - Faulty"
} else {
puts "Elapsed time of import of IGES data is less than ${max_time} seconds - OK"
}