GNU Binutils with patches for OS216
修订版 | 7636ccf9f2517bd3005c983de3c89f4861be04a5 (tree) |
---|---|
时间 | 2013-11-06 14:10:37 |
作者 | Yao Qi <yao@code...> |
Commiter | Yao Qi |
New make target 'check-perf' and new dir gdb.perf
We add a new dir gdb.perf in testsuite for all performance tests.
However, current 'make check' logic will either run dejagnu in
directory testsuite or iterate all gdb.* directories which has *.exp
files. Both of them will run tests in gdb.perf. We want to achieve:
gdb:
2013-11-06 Yao Qi <yao@codesourcery.com>
* Makefile.in (check-perf): New target.
gdb/testsuite:
2013-11-06 Yao Qi <yao@codesourcery.com>
* Makefile.in (check-perf): New target.
* configure.ac (AC_OUTPUT): Output Makefile in gdb.perf.
* configure: Re-generated.
* gdb.perf/Makefile.in: New.
@@ -1,3 +1,7 @@ | ||
1 | +2013-11-06 Yao Qi <yao@codesourcery.com> | |
2 | + | |
3 | + * Makefile.in (check-perf): New target. | |
4 | + | |
1 | 5 | 2013-11-05 Will Newton <will.newton@linaro.org> |
2 | 6 | |
3 | 7 | PR gdb/7670 |
@@ -1009,6 +1009,14 @@ check: force | ||
1009 | 1009 | $(MAKE) $(TARGET_FLAGS_TO_PASS) check; \ |
1010 | 1010 | else true; fi |
1011 | 1011 | |
1012 | +check-perf: force | |
1013 | + @if [ -f testsuite/Makefile ]; then \ | |
1014 | + rootme=`pwd`; export rootme; \ | |
1015 | + rootsrc=`cd $(srcdir); pwd`; export rootsrc; \ | |
1016 | + cd testsuite; \ | |
1017 | + $(MAKE) $(TARGET_FLAGS_TO_PASS) check-perf; \ | |
1018 | + else true; fi | |
1019 | + | |
1012 | 1020 | # The idea is to parallelize testing of multilibs, for example: |
1013 | 1021 | # make -j3 check//sh-hms-sim/{-m1,-m2,-m3,-m3e,-m4}/{,-nofpu} |
1014 | 1022 | # will run 3 concurrent sessions of check, eventually testing all 10 |
@@ -1,3 +1,10 @@ | ||
1 | +2013-11-06 Yao Qi <yao@codesourcery.com> | |
2 | + | |
3 | + * Makefile.in (check-perf): New target. | |
4 | + * configure.ac (AC_OUTPUT): Output Makefile in gdb.perf. | |
5 | + * configure: Re-generated. | |
6 | + * gdb.perf/Makefile.in: New. | |
7 | + | |
1 | 8 | 2013-11-04 Tom Tromey <tromey@redhat.com> |
2 | 9 | |
3 | 10 | * Makefile.in (TEST_DIRS): Remove. |
@@ -192,6 +192,10 @@ do-check-parallel: $(TEST_TARGETS) | ||
192 | 192 | @GMAKE_TRUE@ -mkdir -p outputs/$* |
193 | 193 | @GMAKE_TRUE@ @$(DO_RUNTEST) GDB_PARALLEL=yes --outdir=outputs/$* $*.exp $(RUNTESTFLAGS) |
194 | 194 | |
195 | +check-perf: all $(abs_builddir)/site.exp | |
196 | + @if test ! -d gdb.perf; then mkdir gdb.perf; fi | |
197 | + $(DO_RUNTEST) --directory=gdb.perf --outdir gdb.perf GDB_PERFTEST_MODE=both $(RUNTESTFLAGS) | |
198 | + | |
195 | 199 | force:; |
196 | 200 | |
197 | 201 | clean mostlyclean: |
@@ -3448,7 +3448,7 @@ done | ||
3448 | 3448 | |
3449 | 3449 | |
3450 | 3450 | |
3451 | -ac_config_files="$ac_config_files Makefile gdb.ada/Makefile gdb.arch/Makefile gdb.asm/Makefile gdb.base/Makefile gdb.btrace/Makefile gdb.cell/Makefile gdb.cp/Makefile gdb.disasm/Makefile gdb.dwarf2/Makefile gdb.fortran/Makefile gdb.go/Makefile gdb.server/Makefile gdb.java/Makefile gdb.hp/Makefile gdb.hp/gdb.objdbg/Makefile gdb.hp/gdb.base-hp/Makefile gdb.hp/gdb.aCC/Makefile gdb.hp/gdb.compat/Makefile gdb.hp/gdb.defects/Makefile gdb.linespec/Makefile gdb.mi/Makefile gdb.modula2/Makefile gdb.multi/Makefile gdb.objc/Makefile gdb.opencl/Makefile gdb.opt/Makefile gdb.pascal/Makefile gdb.python/Makefile gdb.reverse/Makefile gdb.stabs/Makefile gdb.threads/Makefile gdb.trace/Makefile gdb.xml/Makefile" | |
3451 | +ac_config_files="$ac_config_files Makefile gdb.ada/Makefile gdb.arch/Makefile gdb.asm/Makefile gdb.base/Makefile gdb.btrace/Makefile gdb.cell/Makefile gdb.cp/Makefile gdb.disasm/Makefile gdb.dwarf2/Makefile gdb.fortran/Makefile gdb.go/Makefile gdb.server/Makefile gdb.java/Makefile gdb.hp/Makefile gdb.hp/gdb.objdbg/Makefile gdb.hp/gdb.base-hp/Makefile gdb.hp/gdb.aCC/Makefile gdb.hp/gdb.compat/Makefile gdb.hp/gdb.defects/Makefile gdb.linespec/Makefile gdb.mi/Makefile gdb.modula2/Makefile gdb.multi/Makefile gdb.objc/Makefile gdb.opencl/Makefile gdb.opt/Makefile gdb.pascal/Makefile gdb.perf/Makefile gdb.python/Makefile gdb.reverse/Makefile gdb.stabs/Makefile gdb.threads/Makefile gdb.trace/Makefile gdb.xml/Makefile" | |
3452 | 3452 | |
3453 | 3453 | cat >confcache <<\_ACEOF |
3454 | 3454 | # This file is a shell script that caches the results of configure |
@@ -4176,6 +4176,7 @@ do | ||
4176 | 4176 | "gdb.opencl/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.opencl/Makefile" ;; |
4177 | 4177 | "gdb.opt/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.opt/Makefile" ;; |
4178 | 4178 | "gdb.pascal/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.pascal/Makefile" ;; |
4179 | + "gdb.perf/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.perf/Makefile" ;; | |
4179 | 4180 | "gdb.python/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.python/Makefile" ;; |
4180 | 4181 | "gdb.reverse/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.reverse/Makefile" ;; |
4181 | 4182 | "gdb.stabs/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.stabs/Makefile" ;; |
@@ -97,5 +97,5 @@ AC_OUTPUT([Makefile \ | ||
97 | 97 | gdb.hp/gdb.defects/Makefile gdb.linespec/Makefile \ |
98 | 98 | gdb.mi/Makefile gdb.modula2/Makefile gdb.multi/Makefile \ |
99 | 99 | gdb.objc/Makefile gdb.opencl/Makefile gdb.opt/Makefile gdb.pascal/Makefile \ |
100 | - gdb.python/Makefile gdb.reverse/Makefile gdb.stabs/Makefile \ | |
100 | + gdb.perf/Makefile gdb.python/Makefile gdb.reverse/Makefile gdb.stabs/Makefile \ | |
101 | 101 | gdb.threads/Makefile gdb.trace/Makefile gdb.xml/Makefile]) |
@@ -0,0 +1,15 @@ | ||
1 | +VPATH = @srcdir@ | |
2 | +srcdir = @srcdir@ | |
3 | + | |
4 | +.PHONY: all clean mostlyclean distclean realclean | |
5 | + | |
6 | +PROGS = | |
7 | + | |
8 | +all info install-info dvi install uninstall installcheck check: | |
9 | + @echo "Nothing to be done for $@..." | |
10 | + | |
11 | +clean mostlyclean: | |
12 | + -rm -f *.o *.diff *~ core $(PROGS) | |
13 | + | |
14 | +distclean maintainer-clean realclean: clean | |
15 | + -rm -f Makefile config.status config.log gdb.log gdb.sum |