public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Fix run_list_test for MIPS gas
@ 2007-07-23 13:20 Richard Sandiford
  2007-07-23 14:55 ` Nick Clifton
  2007-07-30 18:15 ` Thiemo Seufer
  0 siblings, 2 replies; 4+ messages in thread
From: Richard Sandiford @ 2007-07-23 13:20 UTC (permalink / raw)
  To: binutils

I'm getting the following testsuite output for MIPS gas:

-----------------------------------------------------------------------
ERROR: wrong # args: should be "run_list_test name opts"
ERROR: wrong # args: should be "run_list_test name opts"
ERROR: wrong # args: should be "run_list_test name opts"
ERROR: wrong # args: should be "run_list_test name opts"
ERROR: wrong # args: should be "run_list_test name opts"
ERROR: wrong # args: should be "run_list_test name opts"
ERROR: wrong # args: should be "run_list_test name opts"
ERROR: wrong # args: should be "run_list_test name opts"
ERROR: wrong # args: should be "run_list_test name opts"
ERROR: wrong # args: should be "run_list_test name opts"
ERROR: wrong # args: should be "run_list_test name opts"
ERROR: wrong # args: should be "run_list_test name opts"
ERROR: wrong # args: should be "run_list_test name opts"
ERROR: wrong # args: should be "run_list_test name opts"
ERROR: wrong # args: should be "run_list_test name opts"
ERROR: wrong # args: should be "run_list_test name opts"
ERROR: wrong # args: should be "run_list_test name opts"
ERROR: wrong # args: should be "run_list_test name opts"
FAIL: MIPS ELF reloc 2 (32-bit)
FAIL: MIPS ld-st-la constants (ABI o32)
FAIL: MIPS ld-st-la constants (ABI o32, shared)
ERROR: tcl error sourcing /scratch/richard/binutils/HEAD/src/gas/testsuite/gas/mips/mips.exp.
ERROR: wrong # args: should be "run_list_test name opts"
    while executing
"run_list_test "ldstla-32-1" "-mabi=32"  "MIPS ld-st-la bad constants (ABI o32)""
    invoked from within
"if { [istarget mips*-*-vxworks*] } {
    run_dump_test "vxworks1"
    run_dump_test "vxworks1-xgot"
    run_dump_test "vxworks1-el"
    run_dump_test ..."
    (file "/scratch/richard/binutils/HEAD/src/gas/testsuite/gas/mips/mips.exp" line 369)
    invoked from within
"source /scratch/richard/binutils/HEAD/src/gas/testsuite/gas/mips/mips.exp"
    ("uplevel" body line 1)
    invoked from within
"uplevel #0 source /scratch/richard/binutils/HEAD/src/gas/testsuite/gas/mips/mips.exp"
    invoked from within
"catch "uplevel #0 source $test_file_name""
-----------------------------------------------------------------------

There are two problems: mips.exp uses run_list_test with no options
argument, and cr16.exp overrides the gas-defs.exp definition before
mips.exp runs.

I think the best fix for the first problem is to make the options
optional.  For the second, it's trivially safe to delete the cr16.exp
definition because cr16.exp contains no list tests.

Tested on mipsisa64-elf.  OK to install?

Richard


gas/testsuite/
	* lib/gas-defs.exp (run_list_test): Make the options optional.
	* gas/cr16/cr16.exp (run_list_test): Delete.

Index: gas/testsuite/lib/gas-defs.exp
===================================================================
RCS file: /cvs/src/src/gas/testsuite/lib/gas-defs.exp,v
retrieving revision 1.26
diff -u -p -r1.26 gas-defs.exp
--- gas/testsuite/lib/gas-defs.exp	3 Jul 2007 11:01:12 -0000	1.26
+++ gas/testsuite/lib/gas-defs.exp	23 Jul 2007 11:41:18 -0000
@@ -890,14 +890,14 @@ if ![string length [info proc prune_warn
     }
 }
 
-# run_list_test NAME OPTS (optional): TESTNAME
+# run_list_test NAME (optional): OPTS TESTNAME
 #
 # Assemble the file "NAME.d" with command line options OPTS and
 # compare the assembler standard error output against thee regular
 # expressions given in the file "NAME.l".  If TESTNAME is provided,
 # it will be used as the name of the test.
 
-proc run_list_test { name opts {testname {}} } {
+proc run_list_test { name {opts {}} {testname {}} } {
     global srcdir subdir
     if { [string length $testname] == 0 } then {
 	set testname "[file tail $subdir] $name"
Index: gas/testsuite/gas/cr16/cr16.exp
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/cr16/cr16.exp,v
retrieving revision 1.1
diff -u -p -r1.1 cr16.exp
--- gas/testsuite/gas/cr16/cr16.exp	29 Jun 2007 14:09:31 -0000	1.1
+++ gas/testsuite/gas/cr16/cr16.exp	23 Jul 2007 11:41:18 -0000
@@ -2,19 +2,6 @@
 # Driver for CR16 assembler testsuite
 #
 
-proc run_list_test { name opts } {
-  global srcdir subdir
-  set testname "cr16 $name"
-  set file $srcdir/$subdir/$name
-  gas_run ${name}.s $opts ">&dump.out"
-  if {[regexp_diff "dump.out" "${file}.l"] } {
-    fail $testname
-    verbose "output is [file_contents "dump.out"]" 2
-    return
-  }
-  pass $testname
-}
-
 if ![istarget cr16-*-*] {
     return
 }

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Fix run_list_test for MIPS gas
  2007-07-23 13:20 Fix run_list_test for MIPS gas Richard Sandiford
@ 2007-07-23 14:55 ` Nick Clifton
  2007-07-30 18:15 ` Thiemo Seufer
  1 sibling, 0 replies; 4+ messages in thread
From: Nick Clifton @ 2007-07-23 14:55 UTC (permalink / raw)
  To: binutils, richard

Hi Richard,

> gas/testsuite/
> 	* lib/gas-defs.exp (run_list_test): Make the options optional.
> 	* gas/cr16/cr16.exp (run_list_test): Delete.

Approved - please apply.

Cheers
   Nick


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Fix run_list_test for MIPS gas
  2007-07-23 13:20 Fix run_list_test for MIPS gas Richard Sandiford
  2007-07-23 14:55 ` Nick Clifton
@ 2007-07-30 18:15 ` Thiemo Seufer
  2007-07-30 18:36   ` David Daney
  1 sibling, 1 reply; 4+ messages in thread
From: Thiemo Seufer @ 2007-07-30 18:15 UTC (permalink / raw)
  To: binutils, richard

Richard Sandiford wrote:
[snip]
> There are two problems: mips.exp uses run_list_test with no options
> argument, and cr16.exp overrides the gas-defs.exp definition before
> mips.exp runs.
> 
> I think the best fix for the first problem is to make the options
> optional.  For the second, it's trivially safe to delete the cr16.exp
> definition because cr16.exp contains no list tests.
> 
> Tested on mipsisa64-elf.  OK to install?
> 
> Richard
> 
> 
> gas/testsuite/
> 	* lib/gas-defs.exp (run_list_test): Make the options optional.
> 	* gas/cr16/cr16.exp (run_list_test): Delete.

Could somebody please review this patch? It looks good to me, but I
can't approve it.


Thiemo


> Index: gas/testsuite/lib/gas-defs.exp
> ===================================================================
> RCS file: /cvs/src/src/gas/testsuite/lib/gas-defs.exp,v
> retrieving revision 1.26
> diff -u -p -r1.26 gas-defs.exp
> --- gas/testsuite/lib/gas-defs.exp	3 Jul 2007 11:01:12 -0000	1.26
> +++ gas/testsuite/lib/gas-defs.exp	23 Jul 2007 11:41:18 -0000
> @@ -890,14 +890,14 @@ if ![string length [info proc prune_warn
>      }
>  }
>  
> -# run_list_test NAME OPTS (optional): TESTNAME
> +# run_list_test NAME (optional): OPTS TESTNAME
>  #
>  # Assemble the file "NAME.d" with command line options OPTS and
>  # compare the assembler standard error output against thee regular
>  # expressions given in the file "NAME.l".  If TESTNAME is provided,
>  # it will be used as the name of the test.
>  
> -proc run_list_test { name opts {testname {}} } {
> +proc run_list_test { name {opts {}} {testname {}} } {
>      global srcdir subdir
>      if { [string length $testname] == 0 } then {
>  	set testname "[file tail $subdir] $name"
> Index: gas/testsuite/gas/cr16/cr16.exp
> ===================================================================
> RCS file: /cvs/src/src/gas/testsuite/gas/cr16/cr16.exp,v
> retrieving revision 1.1
> diff -u -p -r1.1 cr16.exp
> --- gas/testsuite/gas/cr16/cr16.exp	29 Jun 2007 14:09:31 -0000	1.1
> +++ gas/testsuite/gas/cr16/cr16.exp	23 Jul 2007 11:41:18 -0000
> @@ -2,19 +2,6 @@
>  # Driver for CR16 assembler testsuite
>  #
>  
> -proc run_list_test { name opts } {
> -  global srcdir subdir
> -  set testname "cr16 $name"
> -  set file $srcdir/$subdir/$name
> -  gas_run ${name}.s $opts ">&dump.out"
> -  if {[regexp_diff "dump.out" "${file}.l"] } {
> -    fail $testname
> -    verbose "output is [file_contents "dump.out"]" 2
> -    return
> -  }
> -  pass $testname
> -}
> -
>  if ![istarget cr16-*-*] {
>      return
>  }
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Fix run_list_test for MIPS gas
  2007-07-30 18:15 ` Thiemo Seufer
@ 2007-07-30 18:36   ` David Daney
  0 siblings, 0 replies; 4+ messages in thread
From: David Daney @ 2007-07-30 18:36 UTC (permalink / raw)
  To: Thiemo Seufer; +Cc: binutils, richard

Thiemo Seufer wrote:
> Richard Sandiford wrote:
> [snip]
>> There are two problems: mips.exp uses run_list_test with no options
>> argument, and cr16.exp overrides the gas-defs.exp definition before
>> mips.exp runs.
>>
>> I think the best fix for the first problem is to make the options
>> optional.  For the second, it's trivially safe to delete the cr16.exp
>> definition because cr16.exp contains no list tests.
>>
>> Tested on mipsisa64-elf.  OK to install?
>>
>> Richard
>>
>>
>> gas/testsuite/
>> 	* lib/gas-defs.exp (run_list_test): Make the options optional.
>> 	* gas/cr16/cr16.exp (run_list_test): Delete.
> 
> Could somebody please review this patch? It looks good to me, but I
> can't approve it.
> 

http://sourceware.org/ml/binutils/2007-07/msg00353.html

> 
> Thiemo

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-07-30 18:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-23 13:20 Fix run_list_test for MIPS gas Richard Sandiford
2007-07-23 14:55 ` Nick Clifton
2007-07-30 18:15 ` Thiemo Seufer
2007-07-30 18:36   ` David Daney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).