[gdb/testsuite] Add cc-with-dwz.exp and cc-with-dwz-m.exp
authorTom de Vries <tdevries@suse.de>
Thu, 11 Apr 2019 17:13:05 +0000 (19:13 +0200)
committerTom de Vries <tdevries@suse.de>
Thu, 11 Apr 2019 17:13:05 +0000 (19:13 +0200)
commitc30391f893fd99e768c1a6282763ef553c45f1ff
tree46410cf92ab9e550edbb47caa8fe1675329b006a
parent233a00833b984319d5e94db3f5d5d9a735edc984
[gdb/testsuite] Add cc-with-dwz.exp and cc-with-dwz-m.exp

We can use CC_WITH_TWEAKS_FLAGS when cd-ing into the gdb build subdir and
invoking make check:
...
$ cd $objdir/gdb
$ make check \
    RUNTESTFLAGS='--target_board=cc-with-tweaks' \
    CC_WITH_TWEAKS_FLAGS='-z'
...

But when cd-ing into the top-level build dir and invoking make check-gdb
instead:
...
$ cd $objdir
$ make check-gdb \
    RUNTESTFLAGS='--target_board=cc-with-tweaks' \
    CC_WITH_TWEAKS_FLAGS='-z'
...
using CC_WITH_TWEAKS_FLAGS has no effect, because CC_WITH_TWEAKS_FLAGS is not
passed down from the top level Makefile.

Add cc-with-dwz.exp and cc-with-dwz-m.exp, that don't require
CC_WITH_TWEAKS_FLAGS to be set in the make invocation, allowing us to run these
test configurations from the toplevel build dir:
...
$ cd $objdir
$ make check-gdb \
    RUNTESTFLAGS='--target_board=cc-with-dwz'
...

Tested on x86_64-linux.

gdb/testsuite/ChangeLog:

2019-04-11  Tom de Vries  <tdevries@suse.de>

* boards/cc-with-dwz-m.exp: New file.
* boards/cc-with-dwz.exp: New file.
* boards/cc-with-tweaks.exp: Note that check-gdb doesn't work.
gdb/testsuite/ChangeLog
gdb/testsuite/boards/cc-with-dwz-m.exp [new file with mode: 0644]
gdb/testsuite/boards/cc-with-dwz.exp [new file with mode: 0644]
gdb/testsuite/boards/cc-with-tweaks.exp