1
0
mirror of git://projects.qi-hardware.com/fped.git synced 2024-12-23 11:17:21 +02:00
fped/test/del_vec
werner ac535d6e03 Deleting things often left measurements behind. Fixed these bugs, enhanced %del
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
2010-04-27 22:36:46 +00:00

65 lines
1.1 KiB
Bash
Executable File

#!/bin/sh
. ./Common
###############################################################################
fped_dump "delete vector: it disappears" <<EOF
v: vec @(0mm, 0mm)
%del v
EOF
expect <<EOF
/* MACHINE-GENERATED ! */
package "_"
unit mm
EOF
#------------------------------------------------------------------------------
fped_dump "delete vector: references disappear" <<EOF
v: vec @(0mm, 0mm)
line v v
%del v
EOF
expect <<EOF
/* MACHINE-GENERATED ! */
package "_"
unit mm
EOF
#------------------------------------------------------------------------------
fped_dump "delete vector: measurements disappear (same frame)" <<EOF
v: vec @(0mm, 0mm)
meas v -> v
%del v
EOF
expect <<EOF
/* MACHINE-GENERATED ! */
package "_"
unit mm
EOF
#------------------------------------------------------------------------------
fped_dump "delete vector: measurements disappear (other frame)" <<EOF
frame f {
v: vec @(0mm, 0mm)
}
meas f.v -> f.v
%del f.v
EOF
expect <<EOF
/* MACHINE-GENERATED ! */
frame f {
}
package "_"
unit mm
EOF
###############################################################################