Switching #define OCC_VERSION_DEVELOPMENT "dev"
[occt.git] / tests / 3rdparty / export / end
CommitLineData
be375252 1vcaps -ffp 1
40093367 2vexport ${aFile} ${format}
5747059b 3vglinfo
4checkview -screenshot -3d -path ${imagedir}/${test_image}.png
40093367 5
6if { [file exists ${aFile}] } {
94a57f1f 7 puts "The file has been exported to ${format}."
40093367 8 set filesize [file size ${aFile}]
5747059b 9
10 # Check if difference of size is more 5%
40093367 11 if { $filesize < $size && [expr 1.*($size - $filesize)/$size] > 0.05 } {
5747059b 12 puts "Error: The file has been exported to ${format}, but the result has a different size ($filesize instead of $size)."
40093367 13 }
14} else {
94a57f1f 15 puts "Error: Impossible to export file to ${format}."
40093367 16}