X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=tests%2Fbugs%2Fmodalg_5%2Fbug25788;h=465299e298833b57280531ac55df680cb4b143e2;hb=44fae8b1936aa1f4e29769df51e6bd7242b0b169;hpb=810b672ff3f556d4fe0da7d39dab4eff96efba82 diff --git a/tests/bugs/modalg_5/bug25788 b/tests/bugs/modalg_5/bug25788 deleted file mode 100644 index 465299e298..0000000000 --- a/tests/bugs/modalg_5/bug25788 +++ /dev/null @@ -1,61 +0,0 @@ -puts "=========" -puts "OCC25788" -puts "=========" -puts "" -############################################### -# Parallelization of the BOP Builder algorithm on second level -############################################### - -# box plate to cut the holes from -box b1 100 100 1 - -# N defines number of holes along each of X and Y, thus total N^2 holes -# will be drilled; note that the algorithm iself is likely to be quadratic -# for number of shapes, i.e. CPU -set N 40 -set holes {} -for {set i 1} {$i < $N} {incr i} { - for {set j 1} {$j < $N} {incr j} { - pcylinder p_${i}_$j 0.5 1 - ttranslate p_${i}_$j [expr $i * 100. / $N] [expr $j * 100. / $N] 0. - lappend holes p_${i}_$j - } -} - -eval compound $holes b2 - -bclearobjects -bcleartools -baddobjects b1 -baddtools b2 - -brunparallel 1 - -dchrono cpu reset -dchrono cpu start -bcut r b1 b2 -dchrono cpu stop -set chrono_info [dchrono cpu show] - -if { [regexp {Debug mode} [dversion]] } { - if { [regexp {Windows} [dversion]] } { - set max_time 200 - } else { - set max_time 200 - } -} else { - if { [regexp {Windows} [dversion]] } { - set max_time 50 - } else { - set max_time 50 - } -} - -regexp {CPU user time: ([-0-9.+eE]+) seconds} ${chrono_info} full z -puts "$z" - -if { $z > ${max_time} } { - puts "Elapsed time is more than ${max_time} seconds - Faulty" -} else { - puts "Elapsed time is less than ${max_time} seconds - OK" -}