From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24229 invoked by alias); 11 Jan 2015 12:36:58 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 24194 invoked by uid 89); 11 Jan 2015 12:36:55 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 11 Jan 2015 12:36:54 +0000 Received: from svr-orw-fem-05.mgc.mentorg.com ([147.34.97.43]) by relay1.mentorg.com with esmtp id 1YAHlD-0006gg-5b from Yao_Qi@mentor.com for gdb-patches@sourceware.org; Sun, 11 Jan 2015 04:36:51 -0800 Received: from GreenOnly (147.34.91.1) by svr-orw-fem-05.mgc.mentorg.com (147.34.97.43) with Microsoft SMTP Server id 14.3.224.2; Sun, 11 Jan 2015 04:36:50 -0800 From: Yao Qi To: Subject: Re: [RFC] Run tests in sub dir of testsuite/ References: <1418266428-13166-1-git-send-email-yao@codesourcery.com> <87h9wkwio8.fsf@codesourcery.com> Date: Sun, 11 Jan 2015 12:36:00 -0000 In-Reply-To: <87h9wkwio8.fsf@codesourcery.com> (Yao Qi's message of "Thu, 25 Dec 2014 10:46:15 +0800") Message-ID: <87y4p9sdci.fsf@codesourcery.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2015-01/txt/msg00271.txt.bz2 Yao Qi writes: > Subject: [PATCH] Run tests in sub dir of testsuite/ > > Here is the V2, in which we have two changes, > > 1. Don't change the location of gdb.sum and gdb.log, > 2. Rename sequential-tests by sequential-run. > > ---------------------------------------------------------------- > > This patch is to run testsuite in a subdirectory of testsuite/, in > order to facilitate 'make clean'. In sequential testing, directory > testsuite/sequential-run is created, and in parallel testing, > directory testsuite/parallel-run is created. Testing artifacts > (such as directory gdb.base, gdb.ada, object files, shared libraries > and executables) are stored in it. > > In testsuite/Makefile.in, we set OUTPUTDIR to either sequential-run > or parallel-run, determined by whether we run tests in parallel. > Makefile passes OUTPUTDIR to dejagnu, and lib/gdb.exp return the > expected file path according to OUTPUTDIR. > > This patch doesn't changes the location of gdb.sum. > > gdb/testsuite: > > 2014-12-25 Yao Qi > > * Makefile.in: Set OUTPUTDIR. > (check-single): Create dir OUTPUTDIR and pass $(OUTPUTDIR) to > runtest. > (check-parallel): Use $(OUTPUTDIR). > (check/%.exp): Pass $(OUTPUTDIR) to runtest. > (check-perf): Likewise. > (clean): Remove directory sequential-run and parallel-run. > * lib/gdb.exp (standard_output_file): Return file path name > according to new directory structure. > (gdb_init): Use $OUTPUTDIR instead of outputs. > (top-level): Create directory $OUTPUTDIR. > * lib/trace-support.exp (get_in_proc_agent): Don't use $objdir > in the path of inprocagent. > * gdb.base/completion.exp: Use ${OUTPUTDIR}. > * gdb.base/hashline1.exp: Use [pwd] instead of $objdir. Could anyone take a look? --=20 Yao (=E9=BD=90=E5=B0=A7)