From acb335b5a415c76dd3bb763606cd2ca9485e6dd2 Mon Sep 17 00:00:00 2001 From: Eli Bendersky Date: Tue, 9 Aug 2022 16:18:01 -0700 Subject: [PATCH] Rename test files with .debug This is also added to MANIFEST.in ... and make the subdirectory executable again --- MANIFEST.in | 2 +- test/test_supplementary_object_files.py | 8 ++++---- .../{test_debugsup1 => test_debugsup1.debug} | Bin .../{test_debugsup2 => test_debugsup2.debug} | Bin ...gnudebugaltlink1 => test_gnudebugaltlink1.debug} | Bin ...gnudebugaltlink2 => test_gnudebugaltlink2.debug} | Bin 6 files changed, 5 insertions(+), 5 deletions(-) rename test/testfiles_for_unittests/{test_debugsup1 => test_debugsup1.debug} (100%) rename test/testfiles_for_unittests/{test_debugsup2 => test_debugsup2.debug} (100%) rename test/testfiles_for_unittests/{test_gnudebugaltlink1 => test_gnudebugaltlink1.debug} (100%) rename test/testfiles_for_unittests/{test_gnudebugaltlink2 => test_gnudebugaltlink2.debug} (100%) 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.debug similarity index 100% rename from test/testfiles_for_unittests/test_debugsup1 rename to test/testfiles_for_unittests/test_debugsup1.debug diff --git a/test/testfiles_for_unittests/test_debugsup2 b/test/testfiles_for_unittests/test_debugsup2.debug similarity index 100% rename from test/testfiles_for_unittests/test_debugsup2 rename to test/testfiles_for_unittests/test_debugsup2.debug diff --git a/test/testfiles_for_unittests/test_gnudebugaltlink1 b/test/testfiles_for_unittests/test_gnudebugaltlink1.debug similarity index 100% rename from test/testfiles_for_unittests/test_gnudebugaltlink1 rename to test/testfiles_for_unittests/test_gnudebugaltlink1.debug diff --git a/test/testfiles_for_unittests/test_gnudebugaltlink2 b/test/testfiles_for_unittests/test_gnudebugaltlink2.debug similarity index 100% rename from test/testfiles_for_unittests/test_gnudebugaltlink2 rename to test/testfiles_for_unittests/test_gnudebugaltlink2.debug -- 2.30.2