mirror of
git://projects.qi-hardware.com/fped.git
synced 2024-11-18 10:20:17 +02:00
ac535d6e03
to also delete frames and items in other frames than the current one, and added the corresponding regression tests. - fpd.y, README: %del can now also delete frames - test/del_frame: regression test for frame deletion - fpd.y: moved all debug items into debug_item, so that they can be invoked after defining measurements - README: clarified that object labels aren't entirely hidden in the GUI - delete.c (delete_references): also delete measurements referencing the frame (test/del_frame) - fpd.y (dbg_link_frame): described why we need base_frame in addition to base_vec - fpd.y, README: %del can now also reach into frames other than the current one - delete.c (do_delete_vec): also delete references in the root frame, i.e., measurements (tests/del_vec) git-svn-id: http://svn.openmoko.org/trunk/eda/fped@5947 99fdad57-331a-0410-800a-d7fa5415bdb3
68 lines
1.0 KiB
Bash
Executable File
68 lines
1.0 KiB
Bash
Executable File
#!/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
|
|
|
|
###############################################################################
|