mirror of
git://projects.qi-hardware.com/fped.git
synced 2024-11-28 21:08:27 +02:00
02518334f2
cores. - test/structure, test/del_vec, test/frame_ref, test/meas_qual, test/del_frame: added newline after "unit" directive (reported by Xiangfu Liu) - test/Common: new function expect_sed for post-processing of test output - test/tsort: use expect_sed to ignore "(core dumped") after "Aborted" - test/Common: if there is a file called "core", don't run it - Makefile (clean): remove test/core git-svn-id: http://svn.openmoko.org/trunk/eda/fped@5978 99fdad57-331a-0410-800a-d7fa5415bdb3
98 lines
1.4 KiB
Bash
Executable File
98 lines
1.4 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)
|
|
}
|
|
|
|
frame f @
|
|
meas f.v -> f.v
|
|
|
|
%del f
|
|
EOF
|
|
expect <<EOF
|
|
/* MACHINE-GENERATED ! */
|
|
|
|
package "_"
|
|
unit mm
|
|
|
|
EOF
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
fped_dump "delete frame: measurements with qualifiers disappear" <<EOF
|
|
frame f {
|
|
v: vec @(0mm, 0mm)
|
|
}
|
|
|
|
frame g { frame f @ }
|
|
|
|
frame g @
|
|
meas g/f.v -> f.v
|
|
|
|
%del g
|
|
EOF
|
|
expect <<EOF
|
|
/* MACHINE-GENERATED ! */
|
|
|
|
frame f {
|
|
v: vec @(0mm, 0mm)
|
|
}
|
|
|
|
package "_"
|
|
unit mm
|
|
|
|
EOF
|
|
|
|
###############################################################################
|