From: Eli Bendersky <eliben@gmail.com> Date: Tue, 9 Aug 2022 23:18:01 +0000 (-0700) Subject: Rename test files with .debug X-Git-Tag: v0.29~2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=acb335b5a415c76dd3bb763606cd2ca9485e6dd2;p=pyelftools.git Rename test files with .debug This is also added to MANIFEST.in ... and make the subdirectory executable again --- diff --git a/MANIFEST.in b/MANIFEST.in index b3d07d8..d0eb0ad 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,7 +1,7 @@ recursive-include elftools *.py recursive-include scripts *.py recursive-include examples *.py *.elf *.out -recursive-include test *.py *.elf *.arm *.mips *.o *.so *.dat +recursive-include test *.py *.elf *.arm *.mips *.o *.so *.dat *.debug include README.rst include LICENSE include CHANGES diff --git a/test/test_supplementary_object_files.py b/test/test_supplementary_object_files.py index ee01a2d..1b5e15f 100644 --- a/test/test_supplementary_object_files.py +++ b/test/test_supplementary_object_files.py @@ -23,7 +23,7 @@ class TestDWARFSupplementaryObjects(unittest.TestCase): def test_gnudebugaltlink_no_followlinks(self): path = os.path.join('test', 'testfiles_for_unittests', - 'test_gnudebugaltlink1') + 'test_gnudebugaltlink1.debug') with open(path, 'rb') as f: elffile = ELFFile(f) # Check that we don't have a supplementary_dwarfinfo @@ -44,7 +44,7 @@ class TestDWARFSupplementaryObjects(unittest.TestCase): def test_gnudebugaltlink_followlinks(self): base_dir = os.path.join(b'test', b'testfiles_for_unittests') - path = os.path.join(base_dir, b'test_gnudebugaltlink1') + path = os.path.join(base_dir, b'test_gnudebugaltlink1.debug') with ELFFile.load_from_path(path) as elffile: # Check that we do have a supplementary_dwarfinfo dwarfinfo = elffile.get_dwarf_info() @@ -63,7 +63,7 @@ class TestDWARFSupplementaryObjects(unittest.TestCase): def test_debugsup_no_followlinks(self): path = os.path.join('test', 'testfiles_for_unittests', - 'test_debugsup1') + 'test_debugsup1.debug') with ELFFile.load_from_path(path) as elffile: # Check that we don't have a supplementary_dwarfinfo dwarfinfo = elffile.get_dwarf_info(follow_links=False) @@ -83,7 +83,7 @@ class TestDWARFSupplementaryObjects(unittest.TestCase): def test_debugsup_followlinks(self): base_dir = os.path.join(b'test', b'testfiles_for_unittests') - path = os.path.join(base_dir, b'test_debugsup1') + path = os.path.join(base_dir, b'test_debugsup1.debug') with ELFFile.load_from_path(path) as elffile: # Check that we do have a supplementary_dwarfinfo dwarfinfo = elffile.get_dwarf_info() diff --git a/test/testfiles_for_unittests/test_debugsup1 b/test/testfiles_for_unittests/test_debugsup1 deleted file mode 100644 index bedc082..0000000 Binary files a/test/testfiles_for_unittests/test_debugsup1 and /dev/null differ diff --git a/test/testfiles_for_unittests/test_debugsup1.debug b/test/testfiles_for_unittests/test_debugsup1.debug new file mode 100644 index 0000000..bedc082 Binary files /dev/null and b/test/testfiles_for_unittests/test_debugsup1.debug differ diff --git a/test/testfiles_for_unittests/test_debugsup2 b/test/testfiles_for_unittests/test_debugsup2 deleted file mode 100644 index bedc082..0000000 Binary files a/test/testfiles_for_unittests/test_debugsup2 and /dev/null differ diff --git a/test/testfiles_for_unittests/test_debugsup2.debug b/test/testfiles_for_unittests/test_debugsup2.debug new file mode 100644 index 0000000..bedc082 Binary files /dev/null and b/test/testfiles_for_unittests/test_debugsup2.debug differ diff --git a/test/testfiles_for_unittests/test_gnudebugaltlink1 b/test/testfiles_for_unittests/test_gnudebugaltlink1 deleted file mode 100644 index 0374b5d..0000000 Binary files a/test/testfiles_for_unittests/test_gnudebugaltlink1 and /dev/null differ diff --git a/test/testfiles_for_unittests/test_gnudebugaltlink1.debug b/test/testfiles_for_unittests/test_gnudebugaltlink1.debug new file mode 100644 index 0000000..0374b5d Binary files /dev/null and b/test/testfiles_for_unittests/test_gnudebugaltlink1.debug differ diff --git a/test/testfiles_for_unittests/test_gnudebugaltlink2 b/test/testfiles_for_unittests/test_gnudebugaltlink2 deleted file mode 100644 index 0374b5d..0000000 Binary files a/test/testfiles_for_unittests/test_gnudebugaltlink2 and /dev/null differ diff --git a/test/testfiles_for_unittests/test_gnudebugaltlink2.debug b/test/testfiles_for_unittests/test_gnudebugaltlink2.debug new file mode 100644 index 0000000..0374b5d Binary files /dev/null and b/test/testfiles_for_unittests/test_gnudebugaltlink2.debug differ