1
0
mirror of git://projects.qi-hardware.com/fped.git synced 2024-12-23 15:54:35 +02:00
fped/test/del_frame

68 lines
1.0 KiB
Plaintext
Raw Normal View History

#!/bin/sh
. ./Common
###############################################################################
fped_fail "delete frame: can't self-destruct" <<EOF
frame f {
%del f
}
EOF
expect <<EOF
3: a frame can't delete itself near "}"
EOF
#------------------------------------------------------------------------------
fped_dump "delete frame: content disappears" <<EOF
frame f {
vec @(0mm, 0mm)
}
%del f
EOF
expect <<EOF
/* MACHINE-GENERATED ! */
package "_"
unit mm
EOF
#------------------------------------------------------------------------------
fped_dump "delete frame: references disappear" <<EOF
frame f {
vec @(0mm, 0mm)
}
frame f @
%del f
EOF
expect <<EOF
/* MACHINE-GENERATED ! */
package "_"
unit mm
EOF
#------------------------------------------------------------------------------
fped_dump "delete frame: measurements disappear" <<EOF
frame f {
v: vec @(0mm, 0mm)
}
meas f.v -> f.v
%del f
EOF
expect <<EOF
/* MACHINE-GENERATED ! */
package "_"
unit mm
EOF
###############################################################################