On Fri, 2014-02-14 at 11:12 +0000, Richard Sandiford wrote:
> Using target in itself should be OK. The hostname for rsh/ssh should be
> [board_info $board hostname] rather than $board itself. So in this case
> [board_info "multi-sim/-EL" hostname] should be multi-sim. The usual way
> to set that up is to put:
>
> set_board_info hostname multi-sim
>
> in multi-sim.exp.
>
> Thanks,
> Richard
Richard and Joseph, thanks for the pointers. I tried Richards change
and it partially fixed the problem. My board started doing an rsh/ssh
to 'multi-sim' instead of 'multi-sim/-EL' but that command times out
because multi-sim is not a machine that I can rsh/ssh to, it is just the
name of my dejagnu baseboard. Looking around some more I found sim.exp
in dejagnu (which I include in my board) and I see it has overrides for
load, upload, and download but no override for exec. I added this to
config/sim.exp:
proc sim_exec { dest srcfile args } {
return [remote_exec host $srcfile $args]
}
to match the sim_upload and sim_download definitions and things seem to
work now. In fact, now that I have this change to sim.exp I no longer
need to set hostname in multi-sim.exp.
I will submit the config/sim.exp patch to the dejagnu mailing list later
today.
Steve Ellcey
[email protected]