1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-05-26 11:05:31 +03:00
vtn 400933675f 0023087: Upgrade of the OCCT test system
Integration of new occt testing system
2012-07-13 11:42:23 +04:00

29 lines
678 B
Plaintext

set env(CSF_dataDefaults) [file dirname [info script]]/../data
puts $env(CSF_dataDefaults)
xtrace 3
DT_ApplySeq result a data data1
set b [explode a f]
set b1 [explode result f]
puts $b
puts $b1
set nb_surf 0
set i 0
for {set i 0} {$i < [llength $b]} {incr i} {
set t [lindex $b $i]
set t1 [lindex $b1 $i]
mksurface s$i $t
mksurface su$i $t1
set q [dump s$i]
set q1 [dump su$i]
puts $q
puts $q1
if { [lindex $q 5] != [lindex $q1 5] } {
if { [lindex $q1 5] == "SurfaceOfRevolution" } {
incr nb_surf
}
}
}
if { $nb_surf == 0 || $nb_revol != $nb_surf } {
puts "Error : $nb_revol faces should be converted instead of $nb_surf."
}