From patchwork Wed Apr 10 09:40:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom de Vries X-Patchwork-Id: 32244 Received: (qmail 29089 invoked by alias); 10 Apr 2019 09:40:29 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 28843 invoked by uid 89); 10 Apr 2019 09:40:29 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-25.5 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_SHORT, SPF_PASS autolearn=ham version=3.3.1 spammy=cc-with-tweaks.sh, ccwithtweakssh, UD:cc-with-tweaks.exp, sk:ccwith X-HELO: mx1.suse.de Received: from mx2.suse.de (HELO mx1.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 10 Apr 2019 09:40:27 +0000 Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 43186AC3A for ; Wed, 10 Apr 2019 09:40:25 +0000 (UTC) Date: Wed, 10 Apr 2019 11:40:23 +0200 From: Tom de Vries To: gdb-patches@sourceware.org Subject: [PATCH, testsuite] Add cc-with-dwz.exp add cc-with-dwz-m.exp Message-ID: <20190410094021.GA20379@delia> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-IsSubscribed: yes Hi, While we can use CC_WITH_TWEAKS_FLAGS like this: ... $ cd $objdir/gdb $ make check \ RUNTESTFLAGS='--target_board=cc-with-tweaks' \ CC_WITH_TWEAKS_FLAGS='-z' ... this doesn't work: ... $ cd $objdir $ make check-gdb \ RUNTESTFLAGS='--target_board=cc-with-tweaks' \ CC_WITH_TWEAKS_FLAGS='-z' ... Add cc-with-dwz.exp add cc-with-dwz-m.exp, that can be used like this: ... $ cd $objdir $ make check-gdb \ RUNTESTFLAGS='--target_board=cc-with-dwz' ... Tested on x86_64-linux. OK for trunk? Thanks, - Tom [gdb/testsuite] Add cc-with-dwz.exp add cc-with-dwz-m.exp gdb/testsuite/ChangeLog: 2019-04-10 Tom de Vries * boards/cc-with-dwz-m.exp: New file. * boards/cc-with-dwz.exp: New file. * boards/cc-with-tweaks.exp: Note that check-gdb doesn't work. --- gdb/testsuite/boards/cc-with-dwz-m.exp | 28 ++++++++++++++++++++++++++++ gdb/testsuite/boards/cc-with-dwz.exp | 28 ++++++++++++++++++++++++++++ gdb/testsuite/boards/cc-with-tweaks.exp | 3 +++ 3 files changed, 59 insertions(+) diff --git a/gdb/testsuite/boards/cc-with-dwz-m.exp b/gdb/testsuite/boards/cc-with-dwz-m.exp new file mode 100644 index 0000000000..f5348508a1 --- /dev/null +++ b/gdb/testsuite/boards/cc-with-dwz-m.exp @@ -0,0 +1,28 @@ +# Copyright 2019 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +# This file is a dejagnu "board file" and is used to run the testsuite +# with contrib/cc-with-tweaks.sh -m. +# +# NOTE: We assume dwz is in $PATH. +# +# Example usage: +# bash$ cd $objdir +# bash$ make check-gdb \ +# RUNTESTFLAGS='--target_board=cc-with-dwz-m' \ +# + +set CC_WITH_TWEAKS_FLAGS "-m" +load_board_description "cc-with-tweaks" diff --git a/gdb/testsuite/boards/cc-with-dwz.exp b/gdb/testsuite/boards/cc-with-dwz.exp new file mode 100644 index 0000000000..dcf44f48c3 --- /dev/null +++ b/gdb/testsuite/boards/cc-with-dwz.exp @@ -0,0 +1,28 @@ +# Copyright 2019 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +# This file is a dejagnu "board file" and is used to run the testsuite +# with contrib/cc-with-tweaks.sh -z. +# +# NOTE: We assume dwz is in $PATH. +# +# Example usage: +# bash$ cd $objdir +# bash$ make check-gdb \ +# RUNTESTFLAGS='--target_board=cc-with-dwz' \ +# + +set CC_WITH_TWEAKS_FLAGS "-z" +load_board_description "cc-with-tweaks" diff --git a/gdb/testsuite/boards/cc-with-tweaks.exp b/gdb/testsuite/boards/cc-with-tweaks.exp index 59a53a87f9..2fac669453 100644 --- a/gdb/testsuite/boards/cc-with-tweaks.exp +++ b/gdb/testsuite/boards/cc-with-tweaks.exp @@ -19,10 +19,13 @@ # NOTE: If using dwz, We assume it is in $PATH. # # Example usage: +# bash$ cd $objdir/gdb # bash$ make check \ # RUNTESTFLAGS='--target_board=cc-with-tweaks' \ # CC_WITH_TWEAKS_FLAGS='-z' # +# Note: this does not work from $objdir with make check-gdb. +# # The default value of CC_WITH_TWEAKS_FLAGS is "". if ![info exists CC_WITH_TWEAKS_FLAGS] {