mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-22 19:09:31 +08:00
sim: testsuite: improve parallel test processing
The current logic limits itself to a maxdepth of 4 when looking for results. This wouldn't be a problem if cris didn't have a testsuite at a depth of 5 which we end up ignoring when summarizing. Rather than bump the number from 4 to 5, rework the code so that we gather the exact set of tests that we tried to run.
This commit is contained in:
@ -2474,13 +2474,14 @@ check/%.exp:
|
|||||||
|
|
||||||
check-DEJAGNU-parallel:
|
check-DEJAGNU-parallel:
|
||||||
$(AM_V_at)( \
|
$(AM_V_at)( \
|
||||||
$(MAKE) -k \
|
set -- `cd $(srcdir)/testsuite && find . -name '*.exp' -printf '%P\n' | sed 's:[.]exp$$::'`; \
|
||||||
`cd $(srcdir)/testsuite && find . -name '*.exp' -printf 'check/%P '`; \
|
$(MAKE) -k `printf 'check/%s.exp ' $$@`; \
|
||||||
ret=$$?; \
|
ret=$$?; \
|
||||||
|
set -- `printf 'testsuite/%s/ ' $$@`; \
|
||||||
$(SHELL) $(srcroot)/contrib/dg-extract-results.sh \
|
$(SHELL) $(srcroot)/contrib/dg-extract-results.sh \
|
||||||
`find testsuite/ -maxdepth 4 -name testrun.sum | sort` > testrun.sum; \
|
`find $$@ -maxdepth 1 -name testrun.sum 2>/dev/null | sort` > testrun.sum; \
|
||||||
$(SHELL) $(srcroot)/contrib/dg-extract-results.sh -L \
|
$(SHELL) $(srcroot)/contrib/dg-extract-results.sh -L \
|
||||||
`find testsuite/ -maxdepth 4 -name testrun.log | sort` > testrun.log; \
|
`find $$@ -maxdepth 1 -name testrun.log 2>/dev/null | sort` > testrun.log; \
|
||||||
echo; \
|
echo; \
|
||||||
$(SED) -n '/^.*===.*Summary.*===/,$$p' testrun.sum; \
|
$(SED) -n '/^.*===.*Summary.*===/,$$p' testrun.sum; \
|
||||||
exit $$ret)
|
exit $$ret)
|
||||||
|
@ -50,13 +50,14 @@ check/%.exp:
|
|||||||
|
|
||||||
check-DEJAGNU-parallel:
|
check-DEJAGNU-parallel:
|
||||||
$(AM_V_at)( \
|
$(AM_V_at)( \
|
||||||
$(MAKE) -k \
|
set -- `cd $(srcdir)/testsuite && find . -name '*.exp' -printf '%P\n' | sed 's:[.]exp$$::'`; \
|
||||||
`cd $(srcdir)/testsuite && find . -name '*.exp' -printf 'check/%P '`; \
|
$(MAKE) -k `printf 'check/%s.exp ' $$@`; \
|
||||||
ret=$$?; \
|
ret=$$?; \
|
||||||
|
set -- `printf 'testsuite/%s/ ' $$@`; \
|
||||||
$(SHELL) $(srcroot)/contrib/dg-extract-results.sh \
|
$(SHELL) $(srcroot)/contrib/dg-extract-results.sh \
|
||||||
`find testsuite/ -maxdepth 4 -name testrun.sum | sort` > testrun.sum; \
|
`find $$@ -maxdepth 1 -name testrun.sum 2>/dev/null | sort` > testrun.sum; \
|
||||||
$(SHELL) $(srcroot)/contrib/dg-extract-results.sh -L \
|
$(SHELL) $(srcroot)/contrib/dg-extract-results.sh -L \
|
||||||
`find testsuite/ -maxdepth 4 -name testrun.log | sort` > testrun.log; \
|
`find $$@ -maxdepth 1 -name testrun.log 2>/dev/null | sort` > testrun.log; \
|
||||||
echo; \
|
echo; \
|
||||||
$(SED) -n '/^.*===.*Summary.*===/,$$p' testrun.sum; \
|
$(SED) -n '/^.*===.*Summary.*===/,$$p' testrun.sum; \
|
||||||
exit $$ret)
|
exit $$ret)
|
||||||
|
Reference in New Issue
Block a user