diff options
author | Mihails Strasuns <mihails.strasuns@intel.com> | 2020-02-11 13:23:25 +0100 |
---|---|---|
committer | Mihails Strasuns <mihails.strasuns@intel.com> | 2020-04-21 15:22:34 +0200 |
commit | 922a7c7c5d4040f9e4ab75a059b9ca33f45ab952 (patch) | |
tree | dbd02a57618a2e920810dce51766b9d69a02b665 | |
parent | f49c464f933172bae5685c2fb51b9e220902146c (diff) | |
download | gdb-922a7c7c5d4040f9e4ab75a059b9ca33f45ab952.zip gdb-922a7c7c5d4040f9e4ab75a059b9ca33f45ab952.tar.gz gdb-922a7c7c5d4040f9e4ab75a059b9ca33f45ab952.tar.bz2 |
[gdb/testsuite] structured rename of jit test files
Reorganizes how JIT related test files to be more clear what are related
to JIT reader system tests and what use JIT from ELF objfiles. Those two
approaches are quite different in GDB implementation and require very
different test setup. Keeping distinction clear at the file name level
makes it easier to maintain the testsuite.
gdb/testsuite/ChangeLog:
2020-02-18 Mihails Strasuns <mihails.strasuns@intel.com>
* gdb.base: Rename all jit related test and source files.
-rw-r--r-- | gdb/testsuite/gdb.base/jit-elf-dlmain.c (renamed from gdb/testsuite/gdb.base/jit-dlmain.c) | 0 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/jit-elf-main.c (renamed from gdb/testsuite/gdb.base/jit-main.c) | 0 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/jit-elf-so.exp (renamed from gdb/testsuite/gdb.base/jit-so.exp) | 6 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/jit-elf-solib.c (renamed from gdb/testsuite/gdb.base/jit-solib.c) | 0 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/jit-elf.exp (renamed from gdb/testsuite/gdb.base/jit.exp) | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/jit-reader-exec.c (renamed from gdb/testsuite/gdb.base/jit-exec.c) | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/jit-reader-exec.exp (renamed from gdb/testsuite/gdb.base/jit-exec.exp) | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/jit-reader-execd.c (renamed from gdb/testsuite/gdb.base/jit-execd.c) | 0 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/jit-reader-host.c (renamed from gdb/testsuite/gdb.base/jithost.c) | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/jit-reader-host.h (renamed from gdb/testsuite/gdb.base/jithost.h) | 0 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/jit-reader-simple-dl.c (renamed from gdb/testsuite/gdb.base/jit-simple-dl.c) | 0 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/jit-reader-simple-jit.c (renamed from gdb/testsuite/gdb.base/jit-simple-jit.c) | 0 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/jit-reader-simple.c (renamed from gdb/testsuite/gdb.base/jit-simple.c) | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/jit-reader-simple.exp (renamed from gdb/testsuite/gdb.base/jit-simple.exp) | 0 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/jit-reader.c (renamed from gdb/testsuite/gdb.base/jitreader.c) | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/jit-reader.exp | 4 |
16 files changed, 13 insertions, 13 deletions
diff --git a/gdb/testsuite/gdb.base/jit-dlmain.c b/gdb/testsuite/gdb.base/jit-elf-dlmain.c index 03b8d3c..03b8d3c 100644 --- a/gdb/testsuite/gdb.base/jit-dlmain.c +++ b/gdb/testsuite/gdb.base/jit-elf-dlmain.c diff --git a/gdb/testsuite/gdb.base/jit-main.c b/gdb/testsuite/gdb.base/jit-elf-main.c index 37c2a31..37c2a31 100644 --- a/gdb/testsuite/gdb.base/jit-main.c +++ b/gdb/testsuite/gdb.base/jit-elf-main.c diff --git a/gdb/testsuite/gdb.base/jit-so.exp b/gdb/testsuite/gdb.base/jit-elf-so.exp index 27dcdfa..526414f 100644 --- a/gdb/testsuite/gdb.base/jit-so.exp +++ b/gdb/testsuite/gdb.base/jit-elf-so.exp @@ -30,7 +30,7 @@ if {[get_compiler_info]} { # test running programs # -set testfile jit-dlmain +set testfile jit-elf-dlmain set srcfile ${testfile}.c set binfile [standard_output_file ${testfile}] if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug shlib_load}] != "" } { @@ -38,7 +38,7 @@ if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {deb return -1 } -set testfile2 jit-main +set testfile2 jit-elf-main set srcfile2 ${testfile2}.c set binfile2 [standard_output_file ${testfile2}.so] set binfile2_dlopen [shlib_target_file ${testfile2}.so] @@ -47,7 +47,7 @@ if { [gdb_compile_shlib "${srcdir}/${subdir}/${srcfile2}" ${binfile2} {debug add return -1 } -set solib_testfile "jit-solib" +set solib_testfile "jit-elf-solib" set solib_srcfile "${srcdir}/${subdir}/${solib_testfile}.c" set solib_binfile [standard_output_file ${solib_testfile}.so] set solib_binfile_test_msg "SHLIBDIR/${solib_testfile}.so" diff --git a/gdb/testsuite/gdb.base/jit-solib.c b/gdb/testsuite/gdb.base/jit-elf-solib.c index 3bdebe9..3bdebe9 100644 --- a/gdb/testsuite/gdb.base/jit-solib.c +++ b/gdb/testsuite/gdb.base/jit-elf-solib.c diff --git a/gdb/testsuite/gdb.base/jit.exp b/gdb/testsuite/gdb.base/jit-elf.exp index 094c37f..71d3e37 100644 --- a/gdb/testsuite/gdb.base/jit.exp +++ b/gdb/testsuite/gdb.base/jit-elf.exp @@ -33,7 +33,7 @@ proc compile_jit_test {testname binsuffix options} { global solib_testfile solib_srcfile solib_binfile solib_binfile_test_msg global solib_binfile_target - set testfile jit-main + set testfile jit-elf-main set srcfile ${testfile}.c set binfile [standard_output_file $testfile$binsuffix] if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" \ @@ -42,7 +42,7 @@ proc compile_jit_test {testname binsuffix options} { return -1 } - set solib_testfile "jit-solib" + set solib_testfile "jit-elf-solib" set solib_srcfile "${srcdir}/${subdir}/${solib_testfile}.c" set solib_binfile [standard_output_file ${solib_testfile}$binsuffix.so] set solib_binfile_test_msg "SHLIBDIR/${solib_testfile}$binsuffix.so" diff --git a/gdb/testsuite/gdb.base/jit-exec.c b/gdb/testsuite/gdb.base/jit-reader-exec.c index 809308f..f92aa5d 100644 --- a/gdb/testsuite/gdb.base/jit-exec.c +++ b/gdb/testsuite/gdb.base/jit-reader-exec.c @@ -17,7 +17,7 @@ /* Simple standalone program using the JIT API. */ -#include "jit-simple-jit.c" +#include "jit-reader-simple-jit.c" #include <unistd.h> int diff --git a/gdb/testsuite/gdb.base/jit-exec.exp b/gdb/testsuite/gdb.base/jit-reader-exec.exp index 327646b..4235309 100644 --- a/gdb/testsuite/gdb.base/jit-exec.exp +++ b/gdb/testsuite/gdb.base/jit-reader-exec.exp @@ -21,9 +21,9 @@ if { ![istarget "*-linux*"] } then { return } -standard_testfile jit-exec.c +standard_testfile jit-reader-exec.c -set testfile2 "jit-execd" +set testfile2 "jit-reader-execd" set srcfile2 ${testfile2}.c set binfile2 [standard_output_file ${testfile2}] diff --git a/gdb/testsuite/gdb.base/jit-execd.c b/gdb/testsuite/gdb.base/jit-reader-execd.c index a4b6f47..a4b6f47 100644 --- a/gdb/testsuite/gdb.base/jit-execd.c +++ b/gdb/testsuite/gdb.base/jit-reader-execd.c diff --git a/gdb/testsuite/gdb.base/jithost.c b/gdb/testsuite/gdb.base/jit-reader-host.c index 19cc3e1..d07acd5 100644 --- a/gdb/testsuite/gdb.base/jithost.c +++ b/gdb/testsuite/gdb.base/jit-reader-host.c @@ -23,7 +23,7 @@ #include <sys/mman.h> #include JIT_READER_H /* Please see jit-reader.exp for an explanation. */ -#include "jithost.h" +#include "jit-reader-host.h" #include "jit-protocol.h" void __attribute__((noinline)) __jit_debug_register_code () { } diff --git a/gdb/testsuite/gdb.base/jithost.h b/gdb/testsuite/gdb.base/jit-reader-host.h index 28aec5d..28aec5d 100644 --- a/gdb/testsuite/gdb.base/jithost.h +++ b/gdb/testsuite/gdb.base/jit-reader-host.h diff --git a/gdb/testsuite/gdb.base/jit-simple-dl.c b/gdb/testsuite/gdb.base/jit-reader-simple-dl.c index aee6dbf..aee6dbf 100644 --- a/gdb/testsuite/gdb.base/jit-simple-dl.c +++ b/gdb/testsuite/gdb.base/jit-reader-simple-dl.c diff --git a/gdb/testsuite/gdb.base/jit-simple-jit.c b/gdb/testsuite/gdb.base/jit-reader-simple-jit.c index 407666b..407666b 100644 --- a/gdb/testsuite/gdb.base/jit-simple-jit.c +++ b/gdb/testsuite/gdb.base/jit-reader-simple-jit.c diff --git a/gdb/testsuite/gdb.base/jit-simple.c b/gdb/testsuite/gdb.base/jit-reader-simple.c index 8ea6aec1..bcb83f0 100644 --- a/gdb/testsuite/gdb.base/jit-simple.c +++ b/gdb/testsuite/gdb.base/jit-reader-simple.c @@ -17,7 +17,7 @@ /* Simple standalone program using the JIT API. */ -#include "jit-simple-jit.c" +#include "jit-reader-simple-jit.c" int main (void) diff --git a/gdb/testsuite/gdb.base/jit-simple.exp b/gdb/testsuite/gdb.base/jit-reader-simple.exp index c036e71..c036e71 100644 --- a/gdb/testsuite/gdb.base/jit-simple.exp +++ b/gdb/testsuite/gdb.base/jit-reader-simple.exp diff --git a/gdb/testsuite/gdb.base/jitreader.c b/gdb/testsuite/gdb.base/jit-reader.c index d0dc488..c5fd7a9 100644 --- a/gdb/testsuite/gdb.base/jitreader.c +++ b/gdb/testsuite/gdb.base/jit-reader.c @@ -21,7 +21,7 @@ #include <string.h> #include JIT_READER_H /* Please see jit-reader.exp for an explanation. */ -#include "jithost.h" +#include "jit-reader-host.h" GDB_DECLARE_GPL_COMPATIBLE_READER; diff --git a/gdb/testsuite/gdb.base/jit-reader.exp b/gdb/testsuite/gdb.base/jit-reader.exp index 8663f00..c0af2fc 100644 --- a/gdb/testsuite/gdb.base/jit-reader.exp +++ b/gdb/testsuite/gdb.base/jit-reader.exp @@ -13,7 +13,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. -standard_testfile jithost.c +standard_testfile jit-reader-host.c if { (![istarget x86_64-*-*] && ![istarget i?86-*-*]) || ![is_lp64_target] } { return -1; @@ -47,7 +47,7 @@ if { [gdb_compile "${srcdir}/${subdir}/${jit_host_src}" "${jit_host_bin}" \ return -1 } -set jit_reader jitreader +set jit_reader jit-reader set jit_reader_src ${jit_reader}.c set jit_reader_bin [standard_output_file ${jit_reader}.so] |