• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

修订版7636ccf9f2517bd3005c983de3c89f4861be04a5 (tree)
时间2013-11-06 14:10:37
作者Yao Qi <yao@code...>
CommiterYao Qi

Log Message

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:

1) typical 'make check' should not run performance tests. In each perf
test case, GDB_PERFTEST_MODE is checked. If it doesn't exist, return.
2) run perf tests easily. We add a new makefile target 'check-perf'.

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.

更改概述

差异

--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
1+2013-11-06 Yao Qi <yao@codesourcery.com>
2+
3+ * Makefile.in (check-perf): New target.
4+
15 2013-11-05 Will Newton <will.newton@linaro.org>
26
37 PR gdb/7670
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -1009,6 +1009,14 @@ check: force
10091009 $(MAKE) $(TARGET_FLAGS_TO_PASS) check; \
10101010 else true; fi
10111011
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+
10121020 # The idea is to parallelize testing of multilibs, for example:
10131021 # make -j3 check//sh-hms-sim/{-m1,-m2,-m3,-m3e,-m4}/{,-nofpu}
10141022 # will run 3 concurrent sessions of check, eventually testing all 10
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -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+
18 2013-11-04 Tom Tromey <tromey@redhat.com>
29
310 * Makefile.in (TEST_DIRS): Remove.
--- a/gdb/testsuite/Makefile.in
+++ b/gdb/testsuite/Makefile.in
@@ -192,6 +192,10 @@ do-check-parallel: $(TEST_TARGETS)
192192 @GMAKE_TRUE@ -mkdir -p outputs/$*
193193 @GMAKE_TRUE@ @$(DO_RUNTEST) GDB_PARALLEL=yes --outdir=outputs/$* $*.exp $(RUNTESTFLAGS)
194194
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+
195199 force:;
196200
197201 clean mostlyclean:
--- a/gdb/testsuite/configure
+++ b/gdb/testsuite/configure
@@ -3448,7 +3448,7 @@ done
34483448
34493449
34503450
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"
34523452
34533453 cat >confcache <<\_ACEOF
34543454 # This file is a shell script that caches the results of configure
@@ -4176,6 +4176,7 @@ do
41764176 "gdb.opencl/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.opencl/Makefile" ;;
41774177 "gdb.opt/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.opt/Makefile" ;;
41784178 "gdb.pascal/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.pascal/Makefile" ;;
4179+ "gdb.perf/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.perf/Makefile" ;;
41794180 "gdb.python/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.python/Makefile" ;;
41804181 "gdb.reverse/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.reverse/Makefile" ;;
41814182 "gdb.stabs/Makefile") CONFIG_FILES="$CONFIG_FILES gdb.stabs/Makefile" ;;
--- a/gdb/testsuite/configure.ac
+++ b/gdb/testsuite/configure.ac
@@ -97,5 +97,5 @@ AC_OUTPUT([Makefile \
9797 gdb.hp/gdb.defects/Makefile gdb.linespec/Makefile \
9898 gdb.mi/Makefile gdb.modula2/Makefile gdb.multi/Makefile \
9999 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 \
101101 gdb.threads/Makefile gdb.trace/Makefile gdb.xml/Makefile])
--- /dev/null
+++ b/gdb/testsuite/gdb.perf/Makefile.in
@@ -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