From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6950 invoked by alias); 15 Aug 2014 04:04:03 -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 6931 invoked by uid 89); 15 Aug 2014 04:04:01 -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,FROM_12LTRDOM 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; Fri, 15 Aug 2014 04:04:00 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1XI8k8-0005X2-TZ from Yao_Qi@mentor.com for gdb-patches@sourceware.org; Thu, 14 Aug 2014 21:03:56 -0700 Received: from SVR-ORW-FEM-06.mgc.mentorg.com ([147.34.97.120]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 14 Aug 2014 21:03:56 -0700 Received: from qiyao.dyndns.org.com (147.34.91.1) by SVR-ORW-FEM-06.mgc.mentorg.com (147.34.97.120) with Microsoft SMTP Server id 14.2.247.3; Thu, 14 Aug 2014 21:03:55 -0700 From: Yao Qi To: Subject: [PATCH 0/3] Keep track of files copied to host and target Date: Fri, 15 Aug 2014 04:04:00 -0000 Message-ID: <1408075184-25947-1-git-send-email-yao@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes X-SW-Source: 2014-08/txt/msg00264.txt.bz2 In current GDB testsuite, .py files (in gdb.python), file1.txt (in gdb.dwarf2), and .xml files (in gdb.xml) are copied to host at the beginning of the tests, and removed at the end of the test. However, GDB testsuite also copies files to target, but automatically track them in gdb.exp:cleanfiles, and remove them from target when each test is finished. This patch series is teach GDB testsuite to keep track of files copied to host and remove them when test is finished, the same as what we did for files copied to target. The files copied to both target and host are tracked in an unified way. Patch #1 is to extend existing cleanfiles for not only target but also host. In patch #2, we start to keep track of files copied to host in cleanfiles, so that each test doesn't have to remove them at the end. Patch #3 is to copy some needed .py files to host, to fix some fails in remote host testing. The patch series is tested in native and gdbserver on x86_64-linux. I also test it with my local board file to emulate gdb native testing in a remote host (host == target != build), result looks good. I'll tweak it a little and post it shortly. I also find some tests don't copy needed file to host, and I'll fix them separately. *** BLURB HERE *** Yao Qi (3): Extend cleanfiles for multiple hosts Keep track of downloaded file in gdb_remote_download Copy .py files to remote host gdb/testsuite/gdb.base/checkpoint.exp | 2 -- gdb/testsuite/gdb.base/step-line.exp | 2 -- gdb/testsuite/gdb.dwarf2/dw2-anonymous-func.exp | 5 +---- gdb/testsuite/gdb.dwarf2/dw2-basic.exp | 5 +---- gdb/testsuite/gdb.dwarf2/dw2-compressed.exp | 5 +---- gdb/testsuite/gdb.dwarf2/dw2-filename.exp | 5 +---- gdb/testsuite/gdb.dwarf2/dw2-intercu.exp | 2 -- gdb/testsuite/gdb.dwarf2/dw2-intermix.exp | 6 ++---- gdb/testsuite/gdb.dwarf2/dw2-producer.exp | 5 +---- gdb/testsuite/gdb.dwarf2/mac-fileno.exp | 5 +---- gdb/testsuite/gdb.python/py-finish-breakpoint.exp | 6 +++--- gdb/testsuite/gdb.python/py-finish-breakpoint2.exp | 4 +++- gdb/testsuite/gdb.python/py-frame-args.exp | 2 -- gdb/testsuite/gdb.python/py-mi.exp | 2 -- gdb/testsuite/gdb.python/py-pp-integral.exp | 2 -- gdb/testsuite/gdb.python/py-pp-re-notag.exp | 2 -- gdb/testsuite/gdb.python/py-prettyprint.exp | 4 ---- gdb/testsuite/gdb.python/py-section-script.exp | 2 -- gdb/testsuite/gdb.python/py-typeprint.exp | 2 -- gdb/testsuite/gdb.python/py-xmethods.exp | 2 -- gdb/testsuite/gdb.python/python.exp | 7 ++++-- gdb/testsuite/gdb.stabs/weird.exp | 2 -- gdb/testsuite/gdb.xml/tdesc-regs.exp | 4 ---- gdb/testsuite/lib/gdb.exp | 25 ++++++++++++++++------ 24 files changed, 37 insertions(+), 71 deletions(-) -- 1.9.0