1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +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

13 lines
447 B
Plaintext

vexport ${aFile} ${format}
if { [file exists ${aFile}] } {
puts "Export to ${format} file was done."
set filesize [file size ${aFile}]
# Check if difference of size is more 5%
if { $filesize < $size && [expr 1.*($size - $filesize)/$size] > 0.05 } {
puts "Error: Export to ${format} file was done but file has a different size ($filesize instead of $size)."
}
} else {
puts " Faulty: Export to${format} file was not done."
}