This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb] MIPS/binutils/testsuite: Define names of temporary files
- From: Maciej W.Rozycki <macro at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 10 May 2017 18:07:16 -0000
- Subject: [binutils-gdb] MIPS/binutils/testsuite: Define names of temporary files
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=40e5240e1f32b1cc36c45551eb3f59253c40f317
commit 40e5240e1f32b1cc36c45551eb3f59253c40f317
Author: Maciej W. Rozycki <macro@imgtec.com>
Date: Wed May 10 19:03:15 2017 +0100
MIPS/binutils/testsuite: Define names of temporary files
Define `tempfile' and `copyfile' in `mips.exp' so that standalone script
execution via `RUNTESTFLAGS=mips.exp' works rather than producing:
Running .../binutils/testsuite/binutils-all/mips/mips.exp ...
ERROR: tcl error sourcing
.../binutils/testsuite/binutils-all/mips/mips.exp.
ERROR: can't read "tempfile": no such variable
while executing
"binutils_assemble_flags ${srcfile} $tempfile $opts(as)"
(procedure "run_dump_test" line 207)
invoked from within
"run_dump_test "mips-ase-1""
invoked from within
"if [is_elf_format] {
run_dump_test "mips-ase-1"
run_dump_test "mips-ase-2"
run_dump_test "mips-ase-3"
run_dump_test "mixed-mips16"
..."
(file ".../binutils/testsuite/binutils-all/mips/mips.exp" line 22)
invoked from within
"source .../binutils/testsuite/binutils-all/mips/mips.exp"
("uplevel" body line 1)
invoked from within
"uplevel #0 source .../binutils/testsuite/binutils-all/mips/mips.exp"
invoked from within
"catch "uplevel #0 source $test_file_name""
testcase .../binutils/testsuite/binutils-all/mips/mips.exp completed in 0 seconds
binutils/
* testsuite/binutils-all/mips/mips.exp: Define `tempfile' and
`copyfile' variables.
Diff:
---
binutils/ChangeLog | 5 +++++
binutils/testsuite/binutils-all/mips/mips.exp | 8 ++++++++
2 files changed, 13 insertions(+)
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 4bf26f8..e47d825 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2017-05-10 Maciej W. Rozycki <macro@imgtec.com>
+
+ * testsuite/binutils-all/mips/mips.exp: Define `tempfile' and
+ `copyfile' variables.
+
2017-05-10 Claudiu Zissulescu <claziss@synopsys.com>
* readelf.c (decode_ARC_machine_flags): Recognize OSABI v4.
diff --git a/binutils/testsuite/binutils-all/mips/mips.exp b/binutils/testsuite/binutils-all/mips/mips.exp
index 672515c..33752c6 100644
--- a/binutils/testsuite/binutils-all/mips/mips.exp
+++ b/binutils/testsuite/binutils-all/mips/mips.exp
@@ -19,6 +19,14 @@ if ![istarget mips*-*-*] {
return
}
+if [is_remote host] {
+ set tempfile [remote_download host tmpdir/bintest.o]
+ set copyfile copy
+} else {
+ set tempfile tmpdir/bintest.o
+ set copyfile tmpdir/copy
+}
+
if [is_elf_format] {
run_dump_test "mips-ase-1"
run_dump_test "mips-ase-2"