dejagnu
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Make targets simulators download files to host


From: Paul Brook
Subject: [PATCH] Make targets simulators download files to host
Date: Wed, 23 Jun 2004 13:56:09 +0100
User-agent: KMail/1.6.2

I've noticed that when using a simulator based target (arm-sim) that 
remote_download arm-sim ... doesn't work properly. This eventually drops 
through to standard_download, which then tries to rcp the file to a machine 
named arm-sim. This is obviously wrong, and fails. This is visible when 
running the libstdc++ testsuite which copies data files from the source 
tree..

The most obvious solution is to add routines to sim.exp which download the 
file to the host machine. Patch below does this for both upload and download.

I don't have write access to the dejagnu repository, so please apply if you 
think this is ok.

Paul

2004-06-23  Paul Brook  <address@hidden>

        * config/sim.exp (sim_download, sim_upload): New functions.

--- sim.exp.old 2004-06-23 13:39:14.000000000 +0100
+++ sim.exp     2004-06-23 13:39:54.000000000 +0100
@@ -125,6 +125,14 @@
     return [list $result $output]
 }
 
+proc sim_download { dest file args } {
+    return [remote_download host $file $args]
+}
+
+proc sim_upload { dest srcfile destfile } {
+    return [remote_upload host $file $args]
+}
+
 set_board_info protocol  "sim"
 
 # By default, assume the simulator is slow.  This causes some tests




reply via email to

[Prev in Thread] Current Thread [Next in Thread]