mirror of
git://projects.qi-hardware.com/fped.git
synced 2024-12-22 17:59:33 +02:00
Updated regression tests for output change in r5974 and improved handling of
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
This commit is contained in:
parent
e6b2658a65
commit
02518334f2
4
Makefile
4
Makefile
@ -162,7 +162,7 @@ test tests: all
|
||||
LANG= sh -c \
|
||||
'passed=0 && cd test && \
|
||||
for n in [a-z]*; do \
|
||||
SCRIPT=$$n CWD_PREFIX=.. . ./$$n; done; \
|
||||
[ $$n != core ] && SCRIPT=$$n CWD_PREFIX=.. . ./$$n; done; \
|
||||
echo "Passed all $$passed tests"'
|
||||
|
||||
valgrind:
|
||||
@ -173,7 +173,7 @@ valgrind:
|
||||
clean:
|
||||
rm -f $(OBJS) $(XPMS:%=icons/%) $(XPMS:%.xpm=icons/%.ppm)
|
||||
rm -f lex.yy.c y.tab.c y.tab.h y.output .depend $(OBJS:.o=.d)
|
||||
rm -f __dbg????.png _tmp*
|
||||
rm -f __dbg????.png _tmp* test/core
|
||||
|
||||
# ----- Install / uninstall ---------------------------------------------------
|
||||
|
||||
|
@ -71,6 +71,15 @@ expect_grep()
|
||||
}
|
||||
|
||||
|
||||
expect_sed()
|
||||
{
|
||||
sed "$1" <_out >_tmp || exit 1
|
||||
mv _tmp _out
|
||||
shift
|
||||
expect "$@"
|
||||
}
|
||||
|
||||
|
||||
if [ ! -z "$CWD_PREFIX" -a ! -z "$FPED" -a "$FPED" = "${FPED#/}" ]; then
|
||||
FPED="$CWD_PREFIX/$FPED"
|
||||
fi
|
||||
|
@ -26,6 +26,7 @@ expect <<EOF
|
||||
|
||||
package "_"
|
||||
unit mm
|
||||
|
||||
EOF
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
@ -44,6 +45,7 @@ expect <<EOF
|
||||
|
||||
package "_"
|
||||
unit mm
|
||||
|
||||
EOF
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
@ -63,6 +65,7 @@ expect <<EOF
|
||||
|
||||
package "_"
|
||||
unit mm
|
||||
|
||||
EOF
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
@ -88,6 +91,7 @@ frame f {
|
||||
|
||||
package "_"
|
||||
unit mm
|
||||
|
||||
EOF
|
||||
|
||||
###############################################################################
|
||||
|
@ -12,6 +12,7 @@ expect <<EOF
|
||||
|
||||
package "_"
|
||||
unit mm
|
||||
|
||||
EOF
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
@ -26,6 +27,7 @@ expect <<EOF
|
||||
|
||||
package "_"
|
||||
unit mm
|
||||
|
||||
EOF
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
@ -40,6 +42,7 @@ expect <<EOF
|
||||
|
||||
package "_"
|
||||
unit mm
|
||||
|
||||
EOF
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
@ -60,6 +63,7 @@ frame f {
|
||||
|
||||
package "_"
|
||||
unit mm
|
||||
|
||||
frame f @
|
||||
EOF
|
||||
|
||||
|
@ -15,6 +15,7 @@ frame f {
|
||||
|
||||
package "_"
|
||||
unit mm
|
||||
|
||||
frame f @
|
||||
EOF
|
||||
|
||||
@ -32,6 +33,7 @@ frame f {
|
||||
|
||||
package "_"
|
||||
unit mm
|
||||
|
||||
frame f @
|
||||
EOF
|
||||
|
||||
@ -50,6 +52,7 @@ frame f {
|
||||
|
||||
package "_"
|
||||
unit mm
|
||||
|
||||
v: vec @(0mm, 0mm)
|
||||
frame f .
|
||||
EOF
|
||||
@ -73,6 +76,7 @@ frame g {
|
||||
|
||||
package "_"
|
||||
unit mm
|
||||
|
||||
EOF
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
@ -97,6 +101,7 @@ frame g {
|
||||
|
||||
package "_"
|
||||
unit mm
|
||||
|
||||
EOF
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
@ -138,6 +143,7 @@ frame f {
|
||||
|
||||
package "_"
|
||||
unit mm
|
||||
|
||||
EOF
|
||||
|
||||
###############################################################################
|
||||
|
@ -27,6 +27,7 @@ frame a {
|
||||
|
||||
package "_"
|
||||
unit mm
|
||||
|
||||
frame a @
|
||||
meas c.v >> c.v
|
||||
EOF
|
||||
|
@ -10,6 +10,7 @@ expect <<EOF
|
||||
|
||||
package "_"
|
||||
unit mm
|
||||
|
||||
EOF
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
@ -26,6 +27,7 @@ frame foo {
|
||||
|
||||
package "_"
|
||||
unit mm
|
||||
|
||||
EOF
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
@ -38,6 +40,7 @@ expect <<EOF
|
||||
|
||||
package "hello"
|
||||
unit mm
|
||||
|
||||
EOF
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
@ -50,6 +53,7 @@ expect <<EOF
|
||||
|
||||
package "_"
|
||||
unit mil
|
||||
|
||||
EOF
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
@ -62,6 +66,7 @@ expect <<EOF
|
||||
|
||||
package "_"
|
||||
unit mm
|
||||
|
||||
__0: vec @(1mm, 1mm)
|
||||
EOF
|
||||
|
||||
@ -85,6 +90,7 @@ frame f {
|
||||
|
||||
package "_"
|
||||
unit mm
|
||||
|
||||
frame f @
|
||||
meas f.a -> f.b
|
||||
EOF
|
||||
|
@ -126,9 +126,9 @@ fped_fail "tsort: cycle" <<EOF
|
||||
b a
|
||||
}
|
||||
EOF
|
||||
expect <<EOF
|
||||
expect_sed 's/Aborted.*/Aborted/' <<EOF
|
||||
cycle detected in partial order
|
||||
Aborted (core dumped)
|
||||
Aborted
|
||||
EOF
|
||||
|
||||
# not entirely comfortable about the "Aborted (core dumped)". It's a system
|
||||
|
Loading…
Reference in New Issue
Block a user