From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19794 invoked by alias); 3 Aug 2009 02:11:14 -0000 Mailing-List: contact archer-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: List-Id: Received: (qmail 19779 invoked by uid 22791); 3 Aug 2009 02:11:12 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_36,SPF_PASS X-Spam-Check-By: sourceware.org From: Thiago Jung Bauermann To: archer@sourceware.org Subject: [2/2][RFA][7.0] Rename Python testcase files to be 8.3 safe Date: Mon, 03 Aug 2009 02:11:00 -0000 User-Agent: KMail/1.11.4 (Linux/2.6.30-1-amd64; KDE/4.2.4; x86_64; ; ) MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_IekdKUhZbB/n5j4" Message-Id: <200908022312.24718.thiago.bauermann@gmail.com> X-SW-Source: 2009-q3/txt/msg00077.txt.bz2 --Boundary-00=_IekdKUhZbB/n5j4 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Content-length: 2622 Hi, The second patch is also very simple. The only difference is that I had to change some .exp files to adjust the testfile variable: # On branch python # Your branch is ahead of 'archer/archer-tromey-python' by 1 commit. # # Changes to be committed: # (use "git reset HEAD ..." to unstage) # # renamed: testsuite/gdb.python/python-cmd.exp -> testsuite/gdb.python/cmd.exp # renamed: testsuite/gdb.python/python-frame.c -> testsuite/gdb.python/frame.c # renamed: testsuite/gdb.python/python-frame.exp -> testsuite/gdb.python/frame.exp # renamed: testsuite/gdb.python/python-function.exp -> testsuite/gdb.python/function.exp # renamed: testsuite/gdb.python/python-inferior.c -> testsuite/gdb.python/inferior.c # renamed: testsuite/gdb.python/python-inferior.exp -> testsuite/gdb.python/inferior.exp # renamed: testsuite/gdb.python/python-infthread.c -> testsuite/gdb.python/infthread.c # renamed: testsuite/gdb.python/python-infthread.exp -> testsuite/gdb.python/infthread.exp # renamed: testsuite/gdb.python/python-mi.exp -> testsuite/gdb.python/mi.exp # renamed: testsuite/gdb.python/python-prettyprint.c -> testsuite/gdb.python/prettyprint.c # renamed: testsuite/gdb.python/python-prettyprint.exp -> testsuite/gdb.python/prettyprint.exp # renamed: testsuite/gdb.python/python-prettyprint.py -> testsuite/gdb.python/prettyprint.py # renamed: testsuite/gdb.python/python-template.cc -> testsuite/gdb.python/template.cc # renamed: testsuite/gdb.python/python-template.exp -> testsuite/gdb.python/template.exp # renamed: testsuite/gdb.python/python-value.c -> testsuite/gdb.python/value.c # renamed: testsuite/gdb.python/python-value.exp -> testsuite/gdb.python/value.exp # # Changed but not updated: # (use "git add ..." to update what will be committed) # (use "git checkout -- ..." to discard changes in working directory) # # modified: testsuite/gdb.python/Makefile.in # modified: testsuite/gdb.python/frame.exp # modified: testsuite/gdb.python/inferior.exp # modified: testsuite/gdb.python/infthread.exp # modified: testsuite/gdb.python/mi.exp # modified: testsuite/gdb.python/prettyprint.exp # modified: testsuite/gdb.python/template.exp # modified: testsuite/gdb.python/value.exp # Again, I won't post the renaming part of the patch here, just the part which changes the contents of the files. Ok for the branch and then for upstream? With this patch series, all 327 tests in gdb.python continue to pass. It's getting late here, so I'll write the changelog part of this patch tomorrow, sorry. -- []'s Thiago Jung Bauermann --Boundary-00=_IekdKUhZbB/n5j4 Content-Type: text/x-patch; charset="UTF-8"; name="python-rename-testsuite.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="python-rename-testsuite.diff" Content-length: 3921 diff --git a/gdb/testsuite/gdb.python/Makefile.in b/gdb/testsuite/gdb.python/Makefile.in index c49f713..655e604 100644 --- a/gdb/testsuite/gdb.python/Makefile.in +++ b/gdb/testsuite/gdb.python/Makefile.in @@ -1,7 +1,7 @@ VPATH = @srcdir@ srcdir = @srcdir@ -EXECUTABLES = python-value python-prettyprint python-template +EXECUTABLES = value prettyprint template all info install-info dvi install uninstall installcheck check: @echo "Nothing to be done for $@..." diff --git a/gdb/testsuite/gdb.python/frame.exp b/gdb/testsuite/gdb.python/frame.exp index 82ae814..13af0ba 100644 --- a/gdb/testsuite/gdb.python/frame.exp +++ b/gdb/testsuite/gdb.python/frame.exp @@ -31,7 +31,7 @@ if ![python_supported] then { return -1 } -set testfile "python-frame" +set testfile "frame" set srcfile ${testfile}.c set binfile ${objdir}/${subdir}/${testfile} diff --git a/gdb/testsuite/gdb.python/inferior.exp b/gdb/testsuite/gdb.python/inferior.exp index ea413c6..435f215 100644 --- a/gdb/testsuite/gdb.python/inferior.exp +++ b/gdb/testsuite/gdb.python/inferior.exp @@ -31,7 +31,7 @@ if ![python_supported] then { return -1 } -set testfile "python-inferior" +set testfile "inferior" set srcfile ${testfile}.c set binfile ${objdir}/${subdir}/${testfile} diff --git a/gdb/testsuite/gdb.python/infthread.exp b/gdb/testsuite/gdb.python/infthread.exp index d444554..82a1f0a 100644 --- a/gdb/testsuite/gdb.python/infthread.exp +++ b/gdb/testsuite/gdb.python/infthread.exp @@ -31,7 +31,7 @@ if ![python_supported] then { return -1 } -set testfile "python-infthread" +set testfile "infthread" set srcfile ${testfile}.c set binfile ${objdir}/${subdir}/${testfile} diff --git a/gdb/testsuite/gdb.python/mi.exp b/gdb/testsuite/gdb.python/mi.exp index e7bfe54..ee000f1 100644 --- a/gdb/testsuite/gdb.python/mi.exp +++ b/gdb/testsuite/gdb.python/mi.exp @@ -24,7 +24,7 @@ if [mi_gdb_start] { continue } -set testfile "python-prettyprint" +set testfile "prettyprint" set srcfile ${testfile}.c set binfile ${objdir}/${subdir}/${testfile} if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-DMI}] != "" } { diff --git a/gdb/testsuite/gdb.python/prettyprint.exp b/gdb/testsuite/gdb.python/prettyprint.exp index b2dc85d..2134ab9 100644 --- a/gdb/testsuite/gdb.python/prettyprint.exp +++ b/gdb/testsuite/gdb.python/prettyprint.exp @@ -20,7 +20,7 @@ if $tracelevel then { strace $tracelevel } -set testfile "python-prettyprint" +set testfile "prettyprint" set srcfile ${testfile}.c set binfile ${objdir}/${subdir}/${testfile} diff --git a/gdb/testsuite/gdb.python/template.exp b/gdb/testsuite/gdb.python/template.exp index b80f56e..2d76371 100644 --- a/gdb/testsuite/gdb.python/template.exp +++ b/gdb/testsuite/gdb.python/template.exp @@ -31,7 +31,7 @@ if ![python_supported] then { return -1 } -set testfile "python-template" +set testfile "template" set srcfile ${testfile}.cc set binfile ${objdir}/${subdir}/${testfile} if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable \ diff --git a/gdb/testsuite/gdb.python/value.exp b/gdb/testsuite/gdb.python/value.exp index ccf438f..a4f58af 100644 --- a/gdb/testsuite/gdb.python/value.exp +++ b/gdb/testsuite/gdb.python/value.exp @@ -220,7 +220,7 @@ proc test_value_in_inferior {} { # A few objfile tests. proc test_objfiles {} { - gdb_test "python\nok=False\nfor file in gdb.objfiles():\n if 'python-value' in file.filename:\n ok=True\nprint ok\nend" "True" + gdb_test "python\nok=False\nfor file in gdb.objfiles():\n if 'value' in file.filename:\n ok=True\nprint ok\nend" "True" gdb_test "python print gdb.objfiles()\[0\].pretty_printers" "\\\[\\\]" @@ -275,7 +275,7 @@ if ![python_supported] then { return -1 } -set testfile "python-value" +set testfile "value" set srcfile ${testfile}.c set binfile ${objdir}/${subdir}/${testfile} --Boundary-00=_IekdKUhZbB/n5j4--