1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00
occt/tests/bugs/xde/bug23384
dln e837410dac 0024927: Getting rid of "Persistent" functionality -- Tests
All uses of "MDTV-Standard" and "MDTV-Design" in tests changed to "BinOcaf", and "MDTV-XCAF" changed to "BinXCAF".
Formats changed: .std to .cbf, .dxc to .dbf.

Test groups renamed accordingly:
xcaf: brep_to_dxc -> brep_to_xbf, igs_to_dxc -> igs_to_xbf, stp_to_dxc -> stp_to_xbf, dxc -> xbf/A1, dxc_add_CL -> xbf_add_CL
xml: ocaf_std -> ocaf_cbf, xcaf_dxc -> xcaf_xbf
2015-05-21 14:52:32 +03:00

61 lines
1.7 KiB
Plaintext
Executable File

# Original bug : 23384
# Date : 16 Aug 2012
if {[array get env os_type] != ""} {
set os $env(os_type)
}
XOpen [locate_data_file bug23384-doc_subshapes.xbf] doc
set info1 [XStat doc]
regexp {level N 0 +: +([-0-9.+eE]+)} $info1 full l0
regexp {level N 1 +: +([-0-9.+eE]+)} $info1 full l1
regexp {level N 2 +: +([-0-9.+eE]+)} $info1 full l2
regexp {level N 3 +: +([-0-9.+eE]+)} $info1 full l3
regexp {level N 4 +: +([-0-9.+eE]+)} $info1 full l4
regexp {level N 5 +: +([-0-9.+eE]+)} $info1 full l5
regexp {level N 6 +: +([-0-9.+eE]+)} $info1 full l6
regexp {Total number of labels for shapes in the document += +([-0-9.+eE]+)} $info1 full nb
regexp {Number of labels with name += +([-0-9.+eE]+)} $info1 full nbname
param write.stepcaf.subshapes.name 1
WriteStep doc $imagedir/doc_subshapes.stp
param read.stepcaf.subshapes.name 1
ReadStep after_doc $imagedir/doc_subshapes.stp
set info2 [XStat after_doc]
regexp {level N 0 +: +([-0-9.+eE]+)} $info2 full l0_1
regexp {level N 1 +: +([-0-9.+eE]+)} $info2 full l1_1
regexp {level N 2 +: +([-0-9.+eE]+)} $info2 full l2_1
regexp {level N 3 +: +([-0-9.+eE]+)} $info2 full l3_1
regexp {level N 4 +: +([-0-9.+eE]+)} $info2 full l4_1
regexp {level N 5 +: +([-0-9.+eE]+)} $info2 full l5_1
regexp {level N 6 +: +([-0-9.+eE]+)} $info2 full l6_1
regexp {Total number of labels for shapes in the document += +([-0-9.+eE]+)} $info2 full nb_1
regexp {Number of labels with name += +([-0-9.+eE]+)} $info2 full nbname_1
if { ${l0} != ${l0_1} ||
${l1} != ${l1_1} ||
${l2} != ${l2_1} ||
${l3} != ${l3_1} ||
${l4} != ${l4_1} ||
${l5} != ${l5_1} ||
${l6} != ${l6_1} ||
${nb} != ${nb_1} ||
${nbname} != ${nbname_1} } {
puts "Error : Document is read/written wrong!"
}