mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-04 23:01:19 +08:00
Change libgo testsuite format to be more like DejaGNU.
From-SVN: r168685
This commit is contained in:
parent
2e7e3e1de1
commit
21822c903b
@ -1316,13 +1316,15 @@ CHECK = \
|
||||
MAKE="$(MAKE)"; \
|
||||
export MAKE; \
|
||||
rm -f $@-log; \
|
||||
echo -n "$(@D) " >$@-log 2>&1; \
|
||||
prefix=`if test "$(@D)" = "regexp"; then echo regexp-test; else dirname $(@D); fi`; \
|
||||
test "$${prefix}" != "." || prefix="$(@D)"; \
|
||||
$(srcdir)/testsuite/gotest --dejagnu=$(use_dejagnu) --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --prefix="libgo_$${prefix}" --pkgfiles="$(go_$(subst /,_,$(@D))_files)" >>$@-log 2>&1; \
|
||||
x=$$?; \
|
||||
cat $@-log; \
|
||||
exit $$x
|
||||
if $(srcdir)/testsuite/gotest --dejagnu=$(use_dejagnu) --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --prefix="libgo_$${prefix}" --pkgfiles="$(go_$(subst /,_,$(@D))_files)" >>$@-log 2>&1; then \
|
||||
echo "PASS: $(@D)"; \
|
||||
else \
|
||||
echo "FAIL: $(@D)"; \
|
||||
cat $@-log; \
|
||||
exit 1; \
|
||||
fi
|
||||
|
||||
# Build all packages before checking any.
|
||||
CHECK_DEPS = libgo.la libgobegin.a \
|
||||
|
@ -1604,13 +1604,15 @@ CHECK = \
|
||||
MAKE="$(MAKE)"; \
|
||||
export MAKE; \
|
||||
rm -f $@-log; \
|
||||
echo -n "$(@D) " >$@-log 2>&1; \
|
||||
prefix=`if test "$(@D)" = "regexp"; then echo regexp-test; else dirname $(@D); fi`; \
|
||||
test "$${prefix}" != "." || prefix="$(@D)"; \
|
||||
$(srcdir)/testsuite/gotest --dejagnu=$(use_dejagnu) --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --prefix="libgo_$${prefix}" --pkgfiles="$(go_$(subst /,_,$(@D))_files)" >>$@-log 2>&1; \
|
||||
x=$$?; \
|
||||
cat $@-log; \
|
||||
exit $$x
|
||||
if $(srcdir)/testsuite/gotest --dejagnu=$(use_dejagnu) --basedir=$(srcdir) --srcdir=$(srcdir)/go/$(@D) --prefix="libgo_$${prefix}" --pkgfiles="$(go_$(subst /,_,$(@D))_files)" >>$@-log 2>&1; then \
|
||||
echo "PASS: $(@D)"; \
|
||||
else \
|
||||
echo "FAIL: $(@D)"; \
|
||||
cat $@-log; \
|
||||
exit 1; \
|
||||
fi
|
||||
|
||||
|
||||
# Build all packages before checking any.
|
||||
|
Loading…
x
Reference in New Issue
Block a user