[gdb/testsuite] Add gdb.testsuite/board-sanity.exp
authorTom de Vries <tdevries@suse.de>
Tue, 14 Mar 2023 13:11:01 +0000 (14:11 +0100)
committerTom de Vries <tdevries@suse.de>
Tue, 14 Mar 2023 13:11:01 +0000 (14:11 +0100)
commitff581559f9d6586d1d05c5a25d777c78edab3517
treea4406dead38cf4768eaee3b4eac0491e6c61d802
parent7506fc9bf1fef7904a213c89a2df915e652ed3b9
[gdb/testsuite] Add gdb.testsuite/board-sanity.exp

Add a test-case that tests the sanity of target/host boards.

It contains a number of tests related to remote file manipulation, exercising:
- remote_upload
- remote_download
- remote_file exists
- remote_file delete
which check that these work together as expected.

Tested on x86_64-linux, with all relevant gdb/testsuite/boards/*.exp boards.

For target board remote-stdio-gdbserver.exp, this revealed a trivial problem
with the return value of proc ${board}_file for delete, so fix this.

The test-case shows that the proc ${board}_download in
local-remote-host-native.exp is broken, so remove it.

Likewise for board local-remote-host.exp, so remove proc ${board}_download and
associated ${board}_file.

Tested on x86_64-linux.
gdb/testsuite/boards/local-remote-host-native.exp
gdb/testsuite/boards/local-remote-host.exp
gdb/testsuite/boards/remote-stdio-gdbserver.exp
gdb/testsuite/gdb.testsuite/board-sanity.exp [new file with mode: 0644]