aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/Makefile.in
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2013-09-25 12:41:45 +0800
committerYao Qi <yao@codesourcery.com>2013-11-06 13:10:37 +0800
commit7636ccf9f2517bd3005c983de3c89f4861be04a5 (patch)
tree0062b477805b7a963875e934d457fc6617e1cec1 /gdb/testsuite/Makefile.in
parent2bc56d66132a8d4a06520b0531b8708108197c9b (diff)
downloadfsf-binutils-gdb-7636ccf9f2517bd3005c983de3c89f4861be04a5.zip
fsf-binutils-gdb-7636ccf9f2517bd3005c983de3c89f4861be04a5.tar.gz
fsf-binutils-gdb-7636ccf9f2517bd3005c983de3c89f4861be04a5.tar.bz2
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.
Diffstat (limited to 'gdb/testsuite/Makefile.in')
-rw-r--r--gdb/testsuite/Makefile.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/testsuite/Makefile.in b/gdb/testsuite/Makefile.in
index 46dac13..93e9b5b 100644
--- a/gdb/testsuite/Makefile.in
+++ b/gdb/testsuite/Makefile.in
@@ -192,6 +192,10 @@ do-check-parallel: $(TEST_TARGETS)
@GMAKE_TRUE@ -mkdir -p outputs/$*
@GMAKE_TRUE@ @$(DO_RUNTEST) GDB_PARALLEL=yes --outdir=outputs/$* $*.exp $(RUNTESTFLAGS)
+check-perf: all $(abs_builddir)/site.exp
+ @if test ! -d gdb.perf; then mkdir gdb.perf; fi
+ $(DO_RUNTEST) --directory=gdb.perf --outdir gdb.perf GDB_PERFTEST_MODE=both $(RUNTESTFLAGS)
+
force:;
clean mostlyclean: