2 if { [isdraw result] } {
3 #check if result is valid
5 puts [checkshape result]
9 regexp {Mass +: +([-0-9.+eE]+)} [lprops result] full m
11 if { [string compare "$mass" "empty"] != 0 } {
13 puts "Error : The $command is not valid. The $prop is 0."
16 puts "The expected $prop is $mass"
18 #check of change of length is < 1%
19 if { ($mass != 0 && [expr 1.*abs($mass - $m)/$mass] > 0.01) || ($mass == 0 && $m != 0) } {
20 puts "Error : The $prop of result shape is $m"
24 puts "Error : The $command is not valid. The $prop is $m"
33 xwd $imagedir/${test_image}.gif
38 xwd $imagedir/${test_image}.gif
41 puts "Error : The $command can not be build."
44 # to end a test script