mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-07-10 12:25:50 +03:00
Modify test cases according using imagedir folder for saving tmp files
This commit is contained in:
parent
cde381c4e2
commit
1dd28279c8
@ -11,16 +11,18 @@ pload OCAF MODELING
|
|||||||
# just a big shape to fit in memory
|
# just a big shape to fit in memory
|
||||||
restore [locate_data_file $aBigShape] s
|
restore [locate_data_file $aBigShape] s
|
||||||
|
|
||||||
|
file delete ${imagedir}/test.cbf
|
||||||
|
|
||||||
# store it in the document
|
# store it in the document
|
||||||
NewDocument D BinOcaf
|
NewDocument D BinOcaf
|
||||||
SetShape D "0:2" s
|
SetShape D "0:2" s
|
||||||
SaveAs D test.cbf
|
SaveAs D ${imagedir}/test.cbf
|
||||||
Close D
|
Close D
|
||||||
|
|
||||||
# store the memory used before opening a document
|
# store the memory used before opening a document
|
||||||
set aBefore [meminfo h]
|
set aBefore [meminfo h]
|
||||||
|
|
||||||
Open test.cbf DD
|
Open ${imagedir}/test.cbf DD
|
||||||
set aDocLoaded [meminfo h]
|
set aDocLoaded [meminfo h]
|
||||||
set aBigDelta [expr $aDocLoaded - $aBefore]
|
set aBigDelta [expr $aDocLoaded - $aBefore]
|
||||||
Close DD
|
Close DD
|
||||||
|
@ -23,11 +23,12 @@ vrotate 3 0 0
|
|||||||
vsetdispmode 1
|
vsetdispmode 1
|
||||||
vdump $anImgDoc1
|
vdump $anImgDoc1
|
||||||
|
|
||||||
|
file delete ${imagedir}/test.xbf
|
||||||
StoreTriangulation 1
|
StoreTriangulation 1
|
||||||
SaveAs D test.xbf
|
SaveAs D ${imagedir}/test.xbf
|
||||||
Close D
|
Close D
|
||||||
|
|
||||||
XOpen test.xbf D
|
XOpen ${imagedir}/test.xbf D
|
||||||
XShow D
|
XShow D
|
||||||
vsetdispmode 1
|
vsetdispmode 1
|
||||||
vaxo
|
vaxo
|
||||||
|
Loading…
x
Reference in New Issue
Block a user