diff options
author | Alan Modra <amodra@gmail.com> | 2018-09-13 15:36:14 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2018-09-15 16:24:18 +0930 |
commit | e8d88459e6f60c13c83c3b640ccc495402e36eaf (patch) | |
tree | 348cc5dd66c71f92f64d3f971859356218d72b13 /binutils | |
parent | 04ade4bc669b28b3994197d154cb392515c758d4 (diff) | |
download | gdb-e8d88459e6f60c13c83c3b640ccc495402e36eaf.zip gdb-e8d88459e6f60c13c83c3b640ccc495402e36eaf.tar.gz gdb-e8d88459e6f60c13c83c3b640ccc495402e36eaf.tar.bz2 |
binutils run_dump_test rename not-target and not-skip
Use notarget and noskip, like the ld testsuite.
* testsuite/binutils-all/copy-2.d,
* testsuite/binutils-all/copy-3.d,
* testsuite/binutils-all/copy-4.d,
* testsuite/binutils-all/elfedit-1.d,
* testsuite/binutils-all/note-1.d,
* testsuite/binutils-all/note-2-64.d,
* testsuite/binutils-all/strip-11.d,
* testsuite/binutils-all/strip-13.d,
* testsuite/binutils-all/strip-14.d,
* testsuite/binutils-all/testranges.d,
* testsuite/binutils-all/x86-64/pr23494a-x32.d,
* testsuite/binutils-all/x86-64/pr23494a.d,
* testsuite/binutils-all/x86-64/pr23494b-x32.d,
* testsuite/binutils-all/x86-64/pr23494b.d,
* testsuite/binutils-all/x86-64/pr23494c-x32.d,
* testsuite/binutils-all/x86-64/pr23494c.d,
* testsuite/binutils-all/x86-64/pr23494d-x32.d,
* testsuite/binutils-all/x86-64/pr23494d.d,
* testsuite/binutils-all/x86-64/pr23494e-x32.d,
* testsuite/binutils-all/x86-64/pr23494e.d,
* testsuite/lib/utils-lib.exp (run_dump_test): Replace not-target
and not-skip with notarget and noskip.
Diffstat (limited to 'binutils')
22 files changed, 60 insertions, 35 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index d7ed7a8..4dd3d35 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,5 +1,30 @@ 2018-09-15 Alan Modra <amodra@gmail.com> + * testsuite/binutils-all/copy-2.d, + * testsuite/binutils-all/copy-3.d, + * testsuite/binutils-all/copy-4.d, + * testsuite/binutils-all/elfedit-1.d, + * testsuite/binutils-all/note-1.d, + * testsuite/binutils-all/note-2-64.d, + * testsuite/binutils-all/strip-11.d, + * testsuite/binutils-all/strip-13.d, + * testsuite/binutils-all/strip-14.d, + * testsuite/binutils-all/testranges.d, + * testsuite/binutils-all/x86-64/pr23494a-x32.d, + * testsuite/binutils-all/x86-64/pr23494a.d, + * testsuite/binutils-all/x86-64/pr23494b-x32.d, + * testsuite/binutils-all/x86-64/pr23494b.d, + * testsuite/binutils-all/x86-64/pr23494c-x32.d, + * testsuite/binutils-all/x86-64/pr23494c.d, + * testsuite/binutils-all/x86-64/pr23494d-x32.d, + * testsuite/binutils-all/x86-64/pr23494d.d, + * testsuite/binutils-all/x86-64/pr23494e-x32.d, + * testsuite/binutils-all/x86-64/pr23494e.d, + * testsuite/lib/utils-lib.exp (run_dump_test): Replace not-target + and not-skip with notarget and noskip. + +2018-09-15 Alan Modra <amodra@gmail.com> + * testsuite/binutils-all/group-7a.d, * testsuite/binutils-all/group-7b.d, * testsuite/binutils-all/group-7c.d, diff --git a/binutils/testsuite/binutils-all/copy-2.d b/binutils/testsuite/binutils-all/copy-2.d index b90d4ef..1cd9439 100644 --- a/binutils/testsuite/binutils-all/copy-2.d +++ b/binutils/testsuite/binutils-all/copy-2.d @@ -3,7 +3,7 @@ #objcopy: --set-section-flags foo=contents,alloc,load,code #name: copy with setting section flags 2 #source: copytest.s -#not-target: *-*-*aout *-*-aix* h8300-*-* hppa*-*-hpux* mips-*-ultrix* mips-*-osf* mips-*-ecoff* mips-*-irix mips-*-irix[2-4] mips-*-riscos* ns32k-*-netbsd +#notarget: *-*-*aout *-*-aix* h8300-*-* hppa*-*-hpux* mips-*-ultrix* mips-*-osf* mips-*-ecoff* mips-*-irix mips-*-irix[2-4] mips-*-riscos* ns32k-*-netbsd # Note - we use copytest.s and a section named "foo" rather # than .text because for some file formats (eg PE) the .text # section has a fixed set of flags and these cannot be changed. diff --git a/binutils/testsuite/binutils-all/copy-3.d b/binutils/testsuite/binutils-all/copy-3.d index b635cb8..92d81e0 100644 --- a/binutils/testsuite/binutils-all/copy-3.d +++ b/binutils/testsuite/binutils-all/copy-3.d @@ -3,7 +3,7 @@ #objcopy: --set-section-flags .text=alloc,data #name: copy with setting section flags 3 #source: bintest.s -#not-target: *-*-*aout *-*-*coff *-*-cygwin* *-*-darwin *-*-mingw* *-*-go32 *-*-*pe hppa*-*-hpux* ns32k-*-netbsd powerpc-*-aix* rs6000-*-* rx-*-* +#notarget: *-*-*aout *-*-*coff *-*-cygwin* *-*-darwin *-*-mingw* *-*-go32 *-*-*pe hppa*-*-hpux* ns32k-*-netbsd powerpc-*-aix* rs6000-*-* rx-*-* # The .text # section in PE/COFF has a fixed set of flags and these # cannot be changed. We skip it for them. diff --git a/binutils/testsuite/binutils-all/copy-4.d b/binutils/testsuite/binutils-all/copy-4.d index 47a217c..554c894 100644 --- a/binutils/testsuite/binutils-all/copy-4.d +++ b/binutils/testsuite/binutils-all/copy-4.d @@ -2,7 +2,7 @@ #source: bintest.s #strip: --strip-unneeded #nm: -n -#not-target: *-*-aix* *-*-linuxecoff +#notarget: *-*-aix* *-*-linuxecoff #name: strip --strip-unneeded on common symbol #... diff --git a/binutils/testsuite/binutils-all/elfedit-1.d b/binutils/testsuite/binutils-all/elfedit-1.d index 69e0e42..d917e56 100644 --- a/binutils/testsuite/binutils-all/elfedit-1.d +++ b/binutils/testsuite/binutils-all/elfedit-1.d @@ -4,7 +4,7 @@ #readelf: -h #name: Update ELF header 1 #target: x86_64-*-* -#not-target: x86_64-*-gnux32 x86_64-*-nacl* +#notarget: x86_64-*-gnux32 x86_64-*-nacl* #... ELF Header: diff --git a/binutils/testsuite/binutils-all/note-1.d b/binutils/testsuite/binutils-all/note-1.d index 17a7d59..c3dee97 100644 --- a/binutils/testsuite/binutils-all/note-1.d +++ b/binutils/testsuite/binutils-all/note-1.d @@ -3,7 +3,7 @@ #objcopy: --add-section .note=$srcdir/note-1.d #name: add notes section #source: copytest.s -#not-target: h8300-*-* +#notarget: h8300-*-* There are .* diff --git a/binutils/testsuite/binutils-all/note-2-64.d b/binutils/testsuite/binutils-all/note-2-64.d index 17917d5..aa0a626 100644 --- a/binutils/testsuite/binutils-all/note-2-64.d +++ b/binutils/testsuite/binutils-all/note-2-64.d @@ -3,7 +3,7 @@ #objcopy: --merge-notes #name: merge notes section (64-bits) #source: note-2-64.s -#not-target: sparc64-*-* +#notarget: sparc64-*-* # Internally the Sparc64 backend uses two relocs for every one reloc visible externally. # Unfortunately the BFD library does not provide a target specific way to delete individual # relocs, so the note merging feature fails. diff --git a/binutils/testsuite/binutils-all/strip-11.d b/binutils/testsuite/binutils-all/strip-11.d index 92a6b6b..1abe0c7 100644 --- a/binutils/testsuite/binutils-all/strip-11.d +++ b/binutils/testsuite/binutils-all/strip-11.d @@ -4,7 +4,7 @@ #readelf: -S --wide #name: strip -g empty file # The RL78 linker scripts always PROVIDE a __rl78_abs__ symbol so the stripped symbol table is never empty. -#not-target: rl78-*-* +#notarget: rl78-*-* #... \[ 0\] +NULL +0+ .* diff --git a/binutils/testsuite/binutils-all/strip-13.d b/binutils/testsuite/binutils-all/strip-13.d index 05d21ec..73ab642 100644 --- a/binutils/testsuite/binutils-all/strip-13.d +++ b/binutils/testsuite/binutils-all/strip-13.d @@ -2,7 +2,7 @@ #strip: -g #error: \A[^\n]*: unsupported relocation type 0x[0-9a-f]+\n #error: [^\n]*: bad value\Z -#not-target: rx-* +#notarget: rx-* # The RX targets do not complain about unrecognised relocs, unless they # are actually used # (which is what should really happen with the other targets...) diff --git a/binutils/testsuite/binutils-all/strip-14.d b/binutils/testsuite/binutils-all/strip-14.d index e2ce251..2c913c9 100644 --- a/binutils/testsuite/binutils-all/strip-14.d +++ b/binutils/testsuite/binutils-all/strip-14.d @@ -1,7 +1,7 @@ #PROG: strip #strip: -g #error: \A[^\n]*: relocation 0 has invalid symbol index 1048560\Z -#not-target: rx-* +#notarget: rx-* # The RX targets do not complain about bad relocs, unless they are # actually used # (which is what should really happen with the other targets...) diff --git a/binutils/testsuite/binutils-all/testranges.d b/binutils/testsuite/binutils-all/testranges.d index 07f9750..ba07a6f 100644 --- a/binutils/testsuite/binutils-all/testranges.d +++ b/binutils/testsuite/binutils-all/testranges.d @@ -2,7 +2,7 @@ #source: testranges.s #readelf: -wR --wide #name: unordered .debug_info references to .debug_ranges -#not-target: ia64-*-* +#notarget: ia64-*-* Contents of the \.z?debug_ranges section: diff --git a/binutils/testsuite/binutils-all/x86-64/pr23494a-x32.d b/binutils/testsuite/binutils-all/x86-64/pr23494a-x32.d index cba5a3f..a3a8023 100644 --- a/binutils/testsuite/binutils-all/x86-64/pr23494a-x32.d +++ b/binutils/testsuite/binutils-all/x86-64/pr23494a-x32.d @@ -3,7 +3,7 @@ #as: --x32 -mx86-used-note=yes #objcopy: -O elf64-x86-64 #readelf: -n -#not-target: x86_64-*-nacl* +#notarget: x86_64-*-nacl* Displaying notes found in: .note.gnu.property Owner Data size Description diff --git a/binutils/testsuite/binutils-all/x86-64/pr23494a.d b/binutils/testsuite/binutils-all/x86-64/pr23494a.d index 3638ce0..70e7e31 100644 --- a/binutils/testsuite/binutils-all/x86-64/pr23494a.d +++ b/binutils/testsuite/binutils-all/x86-64/pr23494a.d @@ -3,7 +3,7 @@ #as: --64 -defsym __64_bit__=1 -mx86-used-note=yes #objcopy: -O elf32-x86-64 #readelf: -n -#not-target: x86_64-*-nacl* +#notarget: x86_64-*-nacl* Displaying notes found in: .note.gnu.property Owner Data size Description diff --git a/binutils/testsuite/binutils-all/x86-64/pr23494b-x32.d b/binutils/testsuite/binutils-all/x86-64/pr23494b-x32.d index 9082650..40a23c0 100644 --- a/binutils/testsuite/binutils-all/x86-64/pr23494b-x32.d +++ b/binutils/testsuite/binutils-all/x86-64/pr23494b-x32.d @@ -3,4 +3,4 @@ #as: --x32 -mx86-used-note=yes #objcopy: -O elf64-x86-64 -R .note.gnu.property #readelf: -n -#not-target: x86_64-*-nacl* +#notarget: x86_64-*-nacl* diff --git a/binutils/testsuite/binutils-all/x86-64/pr23494b.d b/binutils/testsuite/binutils-all/x86-64/pr23494b.d index b0ded58..74b0bc1 100644 --- a/binutils/testsuite/binutils-all/x86-64/pr23494b.d +++ b/binutils/testsuite/binutils-all/x86-64/pr23494b.d @@ -3,4 +3,4 @@ #as: --64 -defsym __64_bit__=1 -mx86-used-note=yes #objcopy: -O elf32-x86-64 -R .note.gnu.property #readelf: -n -#not-target: x86_64-*-nacl* +#notarget: x86_64-*-nacl* diff --git a/binutils/testsuite/binutils-all/x86-64/pr23494c-x32.d b/binutils/testsuite/binutils-all/x86-64/pr23494c-x32.d index 52a16ae..2639929 100644 --- a/binutils/testsuite/binutils-all/x86-64/pr23494c-x32.d +++ b/binutils/testsuite/binutils-all/x86-64/pr23494c-x32.d @@ -3,7 +3,7 @@ #as: --x32 -mx86-used-note=no #objcopy: -O elf64-x86-64 #readelf: -n -#not-target: x86_64-*-nacl* +#notarget: x86_64-*-nacl* Displaying notes found in: .note.gnu.property Owner Data size Description diff --git a/binutils/testsuite/binutils-all/x86-64/pr23494c.d b/binutils/testsuite/binutils-all/x86-64/pr23494c.d index 8ff87e2..859e583 100644 --- a/binutils/testsuite/binutils-all/x86-64/pr23494c.d +++ b/binutils/testsuite/binutils-all/x86-64/pr23494c.d @@ -3,7 +3,7 @@ #as: --64 -defsym __64_bit__=1 -mx86-used-note=no #objcopy: -O elf32-x86-64 #readelf: -n -#not-target: x86_64-*-nacl* +#notarget: x86_64-*-nacl* Displaying notes found in: .note.gnu.property Owner Data size Description diff --git a/binutils/testsuite/binutils-all/x86-64/pr23494d-x32.d b/binutils/testsuite/binutils-all/x86-64/pr23494d-x32.d index 5f42bd5..f7019a8 100644 --- a/binutils/testsuite/binutils-all/x86-64/pr23494d-x32.d +++ b/binutils/testsuite/binutils-all/x86-64/pr23494d-x32.d @@ -3,7 +3,7 @@ #as: --x32 -mx86-used-note=yes #objcopy: -O elf64-x86-64 --decompress-debug-sections #readelf: -n -#not-target: x86_64-*-nacl* +#notarget: x86_64-*-nacl* Displaying notes found in: .note.gnu.property Owner Data size Description diff --git a/binutils/testsuite/binutils-all/x86-64/pr23494d.d b/binutils/testsuite/binutils-all/x86-64/pr23494d.d index 8190327..969c71d 100644 --- a/binutils/testsuite/binutils-all/x86-64/pr23494d.d +++ b/binutils/testsuite/binutils-all/x86-64/pr23494d.d @@ -3,7 +3,7 @@ #as: --64 -defsym __64_bit__=1 -mx86-used-note=yes #objcopy: -O elf32-x86-64 --decompress-debug-sections #readelf: -n -#not-target: x86_64-*-nacl* +#notarget: x86_64-*-nacl* Displaying notes found in: .note.gnu.property Owner Data size Description diff --git a/binutils/testsuite/binutils-all/x86-64/pr23494e-x32.d b/binutils/testsuite/binutils-all/x86-64/pr23494e-x32.d index 63cd9f0..cc477bd 100644 --- a/binutils/testsuite/binutils-all/x86-64/pr23494e-x32.d +++ b/binutils/testsuite/binutils-all/x86-64/pr23494e-x32.d @@ -3,7 +3,7 @@ #as: --x32 -mx86-used-note=yes #objcopy: -O elf64-x86-64 --decompress-debug-sections #readelf: -n -#not-target: x86_64-*-nacl* +#notarget: x86_64-*-nacl* Displaying notes found in: .note.gnu.property Owner Data size Description diff --git a/binutils/testsuite/binutils-all/x86-64/pr23494e.d b/binutils/testsuite/binutils-all/x86-64/pr23494e.d index e60f262..e8c8bcf 100644 --- a/binutils/testsuite/binutils-all/x86-64/pr23494e.d +++ b/binutils/testsuite/binutils-all/x86-64/pr23494e.d @@ -3,7 +3,7 @@ #as: --64 -defsym __64_bit__=1 -mx86-used-note=yes #objcopy: -O elf32-x86-64 --decompress-debug-sections #readelf: -n -#not-target: x86_64-*-nacl* +#notarget: x86_64-*-nacl* Displaying notes found in: .note.gnu.property Owner Data size Description diff --git a/binutils/testsuite/lib/utils-lib.exp b/binutils/testsuite/lib/utils-lib.exp index ede77b2..5f5ce03 100644 --- a/binutils/testsuite/lib/utils-lib.exp +++ b/binutils/testsuite/lib/utils-lib.exp @@ -229,11 +229,11 @@ proc exe_ext {} { # in the space-separated list each glob is passed to "istarget" and # each proc is called as a TCL procedure. List items are interpreted # such that procs are denoted by surrounding square brackets, and any -# other items are consired globs. If the call evaluates true for any -# of them, the test will be run, otherwise it will be marked +# other items are considered globs. If the call evaluates true for +# any of them, the test will be run, otherwise it will be marked # unsupported. # -# not-target: GLOB|PROC ... +# notarget: GLOB|PROC ... # Do not run this test on a specified list of targets. Again, each # glob in the space-separated list is passed to "istarget" and each # proc is called as a TCL procedure, and the test is run if it @@ -241,8 +241,8 @@ proc exe_ext {} { # unsupported. # # skip: GLOB|PROC ... -# not-skip: GLOB|PROC ... -# These are exactly the same as "not-target" and "target", +# noskip: GLOB|PROC ... +# These are exactly the same as "notarget" and "target", # respectively, except that they do nothing at all if the check # fails. They should only be used in groups, to construct a single # test which is run on all targets but with variant options or @@ -320,9 +320,9 @@ proc run_dump_test { name {extra_options {}} } { set opts(error_output) {} set opts(warning_output) {} set opts(target) {} - set opts(not-target) {} + set opts(notarget) {} set opts(skip) {} - set opts(not-skip) {} + set opts(noskip) {} foreach i $opt_array { set opt_name [lindex $i 0] @@ -440,11 +440,11 @@ proc run_dump_test { name {extra_options {}} } { } # Handle skipping the test on specified targets. - # You can have both skip/not-skip and target/not-target, but you can't - # have both skip and not-skip, or target and not-target, in the same file. + # You can have both skip/noskip and target/notarget, but you can't + # have both skip and noskip, or target and notarget, in the same file. if { $opts(skip) != "" } then { - if { $opts(not-skip) != "" } then { - perror "$testname: mixing skip and not-skip directives is invalid" + if { $opts(noskip) != "" } then { + perror "$testname: mixing skip and noskip directives is invalid" unresolved $testname return } @@ -452,9 +452,9 @@ proc run_dump_test { name {extra_options {}} } { if {[match_target $glob]} { return } } } - if { $opts(not-skip) != "" } then { + if { $opts(noskip) != "" } then { set skip 1 - foreach glob $opts(not-skip) { + foreach glob $opts(noskip) { if {[match_target $glob]} { set skip 0 break @@ -475,8 +475,8 @@ proc run_dump_test { name {extra_options {}} } { return } } - if { $opts(not-target) != "" } then { - foreach glob $opts(not-target) { + if { $opts(notarget) != "" } then { + foreach glob $opts(notarget) { if {[match_target $glob]} { unsupported $testname return |