mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-08 14:17:06 +03:00
0023434: Generate images in lossless format (PNG) instead of lossy GIF currently used in test log
This commit is contained in:
2
tests/3rdparty/end
vendored
2
tests/3rdparty/end
vendored
@@ -1,4 +1,4 @@
|
|||||||
vdump $imagedir/${test_image}.gif
|
vdump $imagedir/${test_image}.png
|
||||||
|
|
||||||
puts ""
|
puts ""
|
||||||
puts "TEST COMPLETED"
|
puts "TEST COMPLETED"
|
||||||
|
@@ -23,7 +23,7 @@ if { [isdraw result] } {
|
|||||||
smallview
|
smallview
|
||||||
donly result
|
donly result
|
||||||
fit
|
fit
|
||||||
xwd $imagedir/${test_image}.gif
|
xwd $imagedir/${test_image}.png
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
puts "Error : The blend can not be build."
|
puts "Error : The blend can not be build."
|
||||||
|
@@ -68,7 +68,7 @@ if { [isdraw result] } {
|
|||||||
donly a b
|
donly a b
|
||||||
}
|
}
|
||||||
fit
|
fit
|
||||||
xwd $imagedir/${test_image}.gif
|
xwd $imagedir/${test_image}.png
|
||||||
} else {
|
} else {
|
||||||
puts "Error : The $command can not be build."
|
puts "Error : The $command can not be build."
|
||||||
}
|
}
|
||||||
|
@@ -4,7 +4,7 @@ if { [isdraw result] } {
|
|||||||
smallview
|
smallview
|
||||||
donly result
|
donly result
|
||||||
fit
|
fit
|
||||||
xwd $imagedir/${test_image}.gif
|
xwd $imagedir/${test_image}.png
|
||||||
}
|
}
|
||||||
if { [info exists 3dviewer] } {
|
if { [info exists 3dviewer] } {
|
||||||
vinit
|
vinit
|
||||||
@@ -12,17 +12,17 @@ if { [isdraw result] } {
|
|||||||
vdisplay result
|
vdisplay result
|
||||||
vsetdispmode 1
|
vsetdispmode 1
|
||||||
vfit
|
vfit
|
||||||
vdump $imagedir/${test_image}.gif
|
vdump $imagedir/${test_image}.png
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if { [info exists 3dviewer] } {
|
if { [info exists 3dviewer] } {
|
||||||
if { ${3dviewer} == 2 } {
|
if { ${3dviewer} == 2 } {
|
||||||
vdump $imagedir/${test_image}.gif
|
vdump $imagedir/${test_image}.png
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if { [info exist only_xwd] } {
|
if { [info exist only_xwd] } {
|
||||||
xwd $imagedir/${test_image}.gif
|
xwd $imagedir/${test_image}.png
|
||||||
}
|
}
|
||||||
#} else {
|
#} else {
|
||||||
# puts "Error : The command can not be build."
|
# puts "Error : The command can not be build."
|
||||||
|
@@ -4,6 +4,6 @@ if { [info exists CR22888_draw] } {
|
|||||||
#vdisplay result
|
#vdisplay result
|
||||||
#vsetdispmode 1
|
#vsetdispmode 1
|
||||||
#vfit
|
#vfit
|
||||||
vdump $imagedir/${test_image}.gif
|
vdump $imagedir/${test_image}.png
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -5,4 +5,4 @@ if { [info exists imagedir] == 0 } {
|
|||||||
if { [info exists test_image ] == 0 } {
|
if { [info exists test_image ] == 0 } {
|
||||||
set test_image photo
|
set test_image photo
|
||||||
}
|
}
|
||||||
vdump $imagedir/${test_image}.gif
|
vdump $imagedir/${test_image}.png
|
||||||
|
@@ -34,5 +34,5 @@ if { [info exists test_image ] == 0 } {
|
|||||||
set test_image photo
|
set test_image photo
|
||||||
}
|
}
|
||||||
|
|
||||||
xwd $imagedir/${test_image}.gif
|
xwd $imagedir/${test_image}.png
|
||||||
puts "TEST COMPLETED"
|
puts "TEST COMPLETED"
|
||||||
|
@@ -35,7 +35,7 @@ if { [isdraw result] } {
|
|||||||
smallview
|
smallview
|
||||||
donly result
|
donly result
|
||||||
fit
|
fit
|
||||||
xwd $imagedir/${test_image}.gif
|
xwd $imagedir/${test_image}.png
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
puts "Error : The depouille can not be build."
|
puts "Error : The depouille can not be build."
|
||||||
|
@@ -24,7 +24,7 @@ if { [isdraw result] } {
|
|||||||
smallview
|
smallview
|
||||||
donly result
|
donly result
|
||||||
fit
|
fit
|
||||||
xwd $imagedir/${test_image}.gif
|
xwd $imagedir/${test_image}.png
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
puts "Error : The feat can not be build."
|
puts "Error : The feat can not be build."
|
||||||
|
@@ -6,5 +6,5 @@ if { [isdraw result] } {
|
|||||||
puts "Error : result shape is not done."
|
puts "Error : result shape is not done."
|
||||||
}
|
}
|
||||||
fit
|
fit
|
||||||
xwd $imagedir/${test_image}.gif
|
xwd $imagedir/${test_image}.png
|
||||||
puts "TEST COMPLETED"
|
puts "TEST COMPLETED"
|
||||||
|
@@ -190,14 +190,14 @@ if { [info exists test_image ] == 0 } {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if { [string compare $command "shading"] == 0 } {
|
if { [string compare $command "shading"] == 0 } {
|
||||||
vdump $imagedir/${test_image}.gif
|
vdump $imagedir/${test_image}.png
|
||||||
} else {
|
} else {
|
||||||
isos 0
|
isos 0
|
||||||
smallview
|
smallview
|
||||||
donly res
|
donly res
|
||||||
fit
|
fit
|
||||||
triangles res
|
triangles res
|
||||||
xwd $imagedir/${test_image}.gif
|
xwd $imagedir/${test_image}.png
|
||||||
}
|
}
|
||||||
|
|
||||||
puts ""
|
puts ""
|
||||||
|
@@ -44,7 +44,7 @@ if { [isdraw result] } {
|
|||||||
clear
|
clear
|
||||||
donly result
|
donly result
|
||||||
fit
|
fit
|
||||||
xwd $imagedir/${test_image}.gif
|
xwd $imagedir/${test_image}.png
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
puts "Error : The mkface can not be build."
|
puts "Error : The mkface can not be build."
|
||||||
|
@@ -30,12 +30,12 @@ if { [isdraw result] } {
|
|||||||
clear
|
clear
|
||||||
donly result
|
donly result
|
||||||
fit
|
fit
|
||||||
xwd $imagedir/${test_image}.gif
|
xwd $imagedir/${test_image}.png
|
||||||
} else {
|
} else {
|
||||||
smallview
|
smallview
|
||||||
clear
|
clear
|
||||||
fit
|
fit
|
||||||
xwd $imagedir/${test_image}.gif
|
xwd $imagedir/${test_image}.png
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
puts "Error : The $command can not be build."
|
puts "Error : The $command can not be build."
|
||||||
|
@@ -137,7 +137,7 @@ if { [isdraw result] && $mist == 0} {
|
|||||||
smallview
|
smallview
|
||||||
donly result
|
donly result
|
||||||
fit
|
fit
|
||||||
xwd $imagedir/${test_image}.gif
|
xwd $imagedir/${test_image}.png
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
puts "Error : The offset can not be build."
|
puts "Error : The offset can not be build."
|
||||||
|
@@ -19,7 +19,7 @@ if { [isdraw result] } {
|
|||||||
smallview
|
smallview
|
||||||
donly result
|
donly result
|
||||||
fit
|
fit
|
||||||
xwd $imagedir/${test_image}.gif
|
xwd $imagedir/${test_image}.png
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
puts "Error : The pipe can not be build."
|
puts "Error : The pipe can not be build."
|
||||||
|
@@ -7,7 +7,7 @@ if { [isdraw result] } {
|
|||||||
smallview
|
smallview
|
||||||
donly result
|
donly result
|
||||||
fit
|
fit
|
||||||
xwd $imagedir/${test_image}.gif
|
xwd $imagedir/${test_image}.png
|
||||||
} else {
|
} else {
|
||||||
puts "Error : The prism can not be build."
|
puts "Error : The prism can not be build."
|
||||||
}
|
}
|
||||||
|
@@ -64,7 +64,7 @@ if { [isdraw result] } {
|
|||||||
donly result
|
donly result
|
||||||
checkshape result
|
checkshape result
|
||||||
fit
|
fit
|
||||||
xwd $imagedir/${test_image}.gif
|
xwd $imagedir/${test_image}.png
|
||||||
} else {
|
} else {
|
||||||
puts "Error : The sewing can not be build."
|
puts "Error : The sewing can not be build."
|
||||||
}
|
}
|
||||||
|
@@ -29,12 +29,12 @@ if { [isdraw result] } {
|
|||||||
clear
|
clear
|
||||||
donly result
|
donly result
|
||||||
fit
|
fit
|
||||||
xwd $imagedir/${test_image}.gif
|
xwd $imagedir/${test_image}.png
|
||||||
} else {
|
} else {
|
||||||
smallview
|
smallview
|
||||||
clear
|
clear
|
||||||
fit
|
fit
|
||||||
xwd $imagedir/${test_image}.gif
|
xwd $imagedir/${test_image}.png
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
puts "Error : The $command can not be build."
|
puts "Error : The $command can not be build."
|
||||||
|
@@ -923,7 +923,7 @@ if {[isdraw result]} {
|
|||||||
smallview
|
smallview
|
||||||
donly result
|
donly result
|
||||||
fit
|
fit
|
||||||
xwd $imagedir/${test_image}.gif
|
xwd $imagedir/${test_image}.png
|
||||||
}
|
}
|
||||||
|
|
||||||
if {[expr $ErrorCode == 2]} {
|
if {[expr $ErrorCode == 2]} {
|
||||||
|
Reference in New Issue
Block a user