mirror of
git://projects.qi-hardware.com/fped.git
synced 2024-11-29 10:55:55 +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
150 lines
2.0 KiB
Bash
Executable File
150 lines
2.0 KiB
Bash
Executable File
#!/bin/sh
|
|
. ./Common
|
|
|
|
###############################################################################
|
|
|
|
fped_dump "frame reference: \"frame\" (origin)" <<EOF
|
|
frame f {}
|
|
frame f @
|
|
EOF
|
|
expect <<EOF
|
|
/* MACHINE-GENERATED ! */
|
|
|
|
frame f {
|
|
}
|
|
|
|
package "_"
|
|
unit mm
|
|
|
|
frame f @
|
|
EOF
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
fped_dump "frame reference: \"%frame\" (current frame origin)" <<EOF
|
|
frame f {}
|
|
%frame f @
|
|
EOF
|
|
expect <<EOF
|
|
/* MACHINE-GENERATED ! */
|
|
|
|
frame f {
|
|
}
|
|
|
|
package "_"
|
|
unit mm
|
|
|
|
frame f @
|
|
EOF
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
fped_dump "frame reference: \"%frame\" (current frame vector)" <<EOF
|
|
frame f {}
|
|
v: vec @(0mm, 0mm)
|
|
%frame f v
|
|
EOF
|
|
expect <<EOF
|
|
/* MACHINE-GENERATED ! */
|
|
|
|
frame f {
|
|
}
|
|
|
|
package "_"
|
|
unit mm
|
|
|
|
v: vec @(0mm, 0mm)
|
|
frame f .
|
|
EOF
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
fped_dump "frame reference: \"%frame\" (other frame origin)" <<EOF
|
|
frame f {}
|
|
frame g {}
|
|
%frame f g.@
|
|
EOF
|
|
expect <<EOF
|
|
/* MACHINE-GENERATED ! */
|
|
|
|
frame f {
|
|
}
|
|
|
|
frame g {
|
|
frame f @
|
|
}
|
|
|
|
package "_"
|
|
unit mm
|
|
|
|
EOF
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
fped_dump "frame reference: \"%frame\" (other frame base)" <<EOF
|
|
frame f {}
|
|
frame g {
|
|
v: vec @(0mm, 0mm)
|
|
}
|
|
%frame f g.v
|
|
EOF
|
|
expect <<EOF
|
|
/* MACHINE-GENERATED ! */
|
|
|
|
frame f {
|
|
}
|
|
|
|
frame g {
|
|
v: vec @(0mm, 0mm)
|
|
frame f .
|
|
}
|
|
|
|
package "_"
|
|
unit mm
|
|
|
|
EOF
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
fped_fail "frame reference: \"%frame\" (cycle)" <<EOF
|
|
frame f {
|
|
}
|
|
|
|
frame g {
|
|
frame f @
|
|
}
|
|
|
|
%frame g f.@
|
|
EOF
|
|
expect <<EOF
|
|
8: frame "g" is a parent of "f" near "@"
|
|
EOF
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
fped_dump "frame reference: \"%frame\" (out-of-order)" <<EOF
|
|
frame f {
|
|
}
|
|
|
|
frame g {
|
|
}
|
|
|
|
%frame g f.@
|
|
EOF
|
|
expect <<EOF
|
|
/* MACHINE-GENERATED ! */
|
|
|
|
frame g {
|
|
}
|
|
|
|
frame f {
|
|
frame g @
|
|
}
|
|
|
|
package "_"
|
|
unit mm
|
|
|
|
EOF
|
|
|
|
###############################################################################
|