1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00
Files
occt/tests/bugs/modalg_1/bug19793_2
emv d46546cdcd 0023753: Test case bugs modalg_2 bug19793_2 works too long on Linux platform
class IntTools_ShrunkRange
method void IntTools_ShrunkRange::Perform()
Fix to avoid creation of small section edges.

Correction of test case for issue CR23753
2014-10-16 15:15:13 +04:00

63 lines
1.6 KiB
Plaintext
Executable File

puts "============"
puts "OCC19793"
puts "============"
puts ""
#######################################################################
# Fuse problem of symetrical shapes. Appendix for NPAL19789
#######################################################################
cpulimit 1000
set BugNumber OCC19793
puts "Load first shape ..."
restore [locate_data_file bug19793_new_shape.brep] b1
puts "Load second shape ..."
restore [locate_data_file bug19793_shape.brep] b2
puts "Prepare boolean operation ..."
dchrono perf_h reset
dchrono perf_h start
bop b1 b2
dchrono perf_h stop
puts "Start boolean operation ..."
bopsection result
puts "Finish boolean operation ..."
set length 17730.1
set nb_e_good 1190
set nb_v_good 68
set nb_e_good 70
set nb_w_good 0
set nb_f_good 0
set nb_sh_good 0
set nb_sol_good 0
set nb_compsol_good 0
set nb_compound_good 1
set nb_shape_good 139
# OCC23753 processing
# Performance verification of bop operation
set chrono_info [dchrono perf_h show]
regexp {CPU user time: ([-0-9.+eE]+) seconds} $chrono_info full CPU_time
set currentOS $tcl_platform(os)
if {[string compare $currentOS "Windows NT"] == 0} {
puts "Checking WINDOWS performance..."
# Initial CPU_time is 92-94 seconds for Windows
if {$CPU_time > 200.} {
puts "ERROR: OCC23753 is reproduced."
puts " Low performance: $CPU_time"
}
}
if {[string compare $currentOS "Linux"] == 0} {
puts "Checking LINUX performance..."
# Initial CPU_time is 287-289 seconds for Linux
if {$CPU_time > 250.} {
puts "ERROR: OCC23753 is reproduced."
puts " Low performance: $CPU_time"
}
}
set 2dviewer 0