1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-29 14:00:49 +03:00

0029942: Porting to Debian80-64 : Regressions in Modeling Algorithms after integration fix for 29807

Correction in the test case perf/modalg/bug27021.
This commit is contained in:
nbv
2018-07-10 12:50:03 +03:00
committed by bugmaster
parent 39ab2e0c4d
commit c520fb2aa2
3 changed files with 14 additions and 51 deletions

View File

@@ -1,47 +0,0 @@
puts "========"
puts "OCC27021"
puts "========"
puts ""
###########################################################
# TopExp::Vertices performance optimization
###########################################################
pload QAcommands
if { [regexp {Debug mode} [dversion]] } {
if { [regexp {Windows} [dversion]] } {
set max_time 8.
set max_time2 5.
} else {
set max_time 8.
set max_time2 5.
}
} else {
if { [regexp {Windows} [dversion]] } {
set max_time 8.
set max_time2 5.
} else {
set max_time 8.
set max_time2 5.
}
}
restore [locate_data_file bug27021_shape.brep] f
set log [OCC27021 f]
regexp {Retrieving 100000000 vertices using approach A\)\.\.\.done in ([-0-9.+eE]+) seconds} ${log} full A_sec
regexp {Retrieving 100000000 vertices using approach B\)\.\.\.done in ([-0-9.+eE]+) seconds} ${log} full B_sec
if { ${A_sec} > ${max_time} } {
puts "Retrieving 100000000 vertices using approach A) is more than ${max_time} seconds - Faulty"
} else {
puts "Retrieving 100000000 vertices using approach A) is less than ${max_time} seconds - OK"
}
if { ${B_sec} > ${max_time2} } {
puts "Retrieving 100000000 vertices using approach A) is more than ${max_time2} seconds - Faulty"
} else {
puts "Retrieving 100000000 vertices using approach A) is less than ${max_time2} seconds - OK"
}

View File

@@ -0,0 +1,10 @@
puts "========"
puts "OCC27021: TopExp::Vertices performance optimization"
puts "========"
puts ""
pload QAcommands
restore [locate_data_file bug27021_shape.brep] f
OCC27021 f