mirror of
git://projects.qi-hardware.com/fped.git
synced 2024-11-18 07:16:15 +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 \
|
LANG= sh -c \
|
||||||
'passed=0 && cd test && \
|
'passed=0 && cd test && \
|
||||||
for n in [a-z]*; do \
|
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"'
|
echo "Passed all $$passed tests"'
|
||||||
|
|
||||||
valgrind:
|
valgrind:
|
||||||
@ -173,7 +173,7 @@ valgrind:
|
|||||||
clean:
|
clean:
|
||||||
rm -f $(OBJS) $(XPMS:%=icons/%) $(XPMS:%.xpm=icons/%.ppm)
|
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 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 ---------------------------------------------------
|
# ----- 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
|
if [ ! -z "$CWD_PREFIX" -a ! -z "$FPED" -a "$FPED" = "${FPED#/}" ]; then
|
||||||
FPED="$CWD_PREFIX/$FPED"
|
FPED="$CWD_PREFIX/$FPED"
|
||||||
fi
|
fi
|
||||||
|
@ -26,6 +26,7 @@ expect <<EOF
|
|||||||
|
|
||||||
package "_"
|
package "_"
|
||||||
unit mm
|
unit mm
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
@ -44,6 +45,7 @@ expect <<EOF
|
|||||||
|
|
||||||
package "_"
|
package "_"
|
||||||
unit mm
|
unit mm
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
@ -63,6 +65,7 @@ expect <<EOF
|
|||||||
|
|
||||||
package "_"
|
package "_"
|
||||||
unit mm
|
unit mm
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
@ -88,6 +91,7 @@ frame f {
|
|||||||
|
|
||||||
package "_"
|
package "_"
|
||||||
unit mm
|
unit mm
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
@ -12,6 +12,7 @@ expect <<EOF
|
|||||||
|
|
||||||
package "_"
|
package "_"
|
||||||
unit mm
|
unit mm
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
@ -26,6 +27,7 @@ expect <<EOF
|
|||||||
|
|
||||||
package "_"
|
package "_"
|
||||||
unit mm
|
unit mm
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
@ -40,6 +42,7 @@ expect <<EOF
|
|||||||
|
|
||||||
package "_"
|
package "_"
|
||||||
unit mm
|
unit mm
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
@ -60,6 +63,7 @@ frame f {
|
|||||||
|
|
||||||
package "_"
|
package "_"
|
||||||
unit mm
|
unit mm
|
||||||
|
|
||||||
frame f @
|
frame f @
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
@ -15,6 +15,7 @@ frame f {
|
|||||||
|
|
||||||
package "_"
|
package "_"
|
||||||
unit mm
|
unit mm
|
||||||
|
|
||||||
frame f @
|
frame f @
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
@ -32,6 +33,7 @@ frame f {
|
|||||||
|
|
||||||
package "_"
|
package "_"
|
||||||
unit mm
|
unit mm
|
||||||
|
|
||||||
frame f @
|
frame f @
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
@ -50,6 +52,7 @@ frame f {
|
|||||||
|
|
||||||
package "_"
|
package "_"
|
||||||
unit mm
|
unit mm
|
||||||
|
|
||||||
v: vec @(0mm, 0mm)
|
v: vec @(0mm, 0mm)
|
||||||
frame f .
|
frame f .
|
||||||
EOF
|
EOF
|
||||||
@ -73,6 +76,7 @@ frame g {
|
|||||||
|
|
||||||
package "_"
|
package "_"
|
||||||
unit mm
|
unit mm
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
@ -97,6 +101,7 @@ frame g {
|
|||||||
|
|
||||||
package "_"
|
package "_"
|
||||||
unit mm
|
unit mm
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
@ -138,6 +143,7 @@ frame f {
|
|||||||
|
|
||||||
package "_"
|
package "_"
|
||||||
unit mm
|
unit mm
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
|
@ -27,6 +27,7 @@ frame a {
|
|||||||
|
|
||||||
package "_"
|
package "_"
|
||||||
unit mm
|
unit mm
|
||||||
|
|
||||||
frame a @
|
frame a @
|
||||||
meas c.v >> c.v
|
meas c.v >> c.v
|
||||||
EOF
|
EOF
|
||||||
|
@ -10,6 +10,7 @@ expect <<EOF
|
|||||||
|
|
||||||
package "_"
|
package "_"
|
||||||
unit mm
|
unit mm
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
@ -26,6 +27,7 @@ frame foo {
|
|||||||
|
|
||||||
package "_"
|
package "_"
|
||||||
unit mm
|
unit mm
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
@ -38,6 +40,7 @@ expect <<EOF
|
|||||||
|
|
||||||
package "hello"
|
package "hello"
|
||||||
unit mm
|
unit mm
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
@ -50,6 +53,7 @@ expect <<EOF
|
|||||||
|
|
||||||
package "_"
|
package "_"
|
||||||
unit mil
|
unit mil
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
@ -62,6 +66,7 @@ expect <<EOF
|
|||||||
|
|
||||||
package "_"
|
package "_"
|
||||||
unit mm
|
unit mm
|
||||||
|
|
||||||
__0: vec @(1mm, 1mm)
|
__0: vec @(1mm, 1mm)
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
@ -85,6 +90,7 @@ frame f {
|
|||||||
|
|
||||||
package "_"
|
package "_"
|
||||||
unit mm
|
unit mm
|
||||||
|
|
||||||
frame f @
|
frame f @
|
||||||
meas f.a -> f.b
|
meas f.a -> f.b
|
||||||
EOF
|
EOF
|
||||||
|
@ -126,9 +126,9 @@ fped_fail "tsort: cycle" <<EOF
|
|||||||
b a
|
b a
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
expect <<EOF
|
expect_sed 's/Aborted.*/Aborted/' <<EOF
|
||||||
cycle detected in partial order
|
cycle detected in partial order
|
||||||
Aborted (core dumped)
|
Aborted
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# not entirely comfortable about the "Aborted (core dumped)". It's a system
|
# not entirely comfortable about the "Aborted (core dumped)". It's a system
|
||||||
|
Loading…
Reference in New Issue
Block a user