From 83ad8a220d0fd7a183bf249ad8bbb681227dc266 Mon Sep 17 00:00:00 2001 From: Eli Bendersky Date: Tue, 4 Feb 2020 06:21:28 -0800 Subject: [PATCH] Move test file name to be included in distribution Fixes #260 --- test/test_pubtypes.py | 2 +- .../empty_pubtypes/Makefile | 4 ++-- .../empty_pubtypes/{main => main.elf} | Bin 9736 -> 9712 bytes 3 files changed, 3 insertions(+), 3 deletions(-) rename test/testfiles_for_unittests/empty_pubtypes/{main => main.elf} (75%) diff --git a/test/test_pubtypes.py b/test/test_pubtypes.py index a0eb642..ed7c6a1 100644 --- a/test/test_pubtypes.py +++ b/test/test_pubtypes.py @@ -13,7 +13,7 @@ from elftools.elf.elffile import ELFFile class TestEmptyPubtypes(unittest.TestCase): def test_empty_pubtypes(self): test_dir = os.path.join('test', 'testfiles_for_unittests') - with open(os.path.join(test_dir, 'empty_pubtypes', 'main'), 'rb') as f: + with open(os.path.join(test_dir, 'empty_pubtypes', 'main.elf'), 'rb') as f: elf = ELFFile(f) # This test targets `ELFParseError` caused by buggy handling diff --git a/test/testfiles_for_unittests/empty_pubtypes/Makefile b/test/testfiles_for_unittests/empty_pubtypes/Makefile index 20decd4..c53964f 100644 --- a/test/testfiles_for_unittests/empty_pubtypes/Makefile +++ b/test/testfiles_for_unittests/empty_pubtypes/Makefile @@ -1,2 +1,2 @@ -main: -main: CFLAGS=-gpubnames -g -O0 +main.elf: main.c + gcc -gpubnames -g -O0 main.c -o main.elf diff --git a/test/testfiles_for_unittests/empty_pubtypes/main b/test/testfiles_for_unittests/empty_pubtypes/main.elf similarity index 75% rename from test/testfiles_for_unittests/empty_pubtypes/main rename to test/testfiles_for_unittests/empty_pubtypes/main.elf index fc6c9b346e10e3a2e3719cb4abb3639097c20ff2..9a3c2c13f5419149d605216d576fbb5da0eecd49 100755 GIT binary patch delta 132 zcmeD1`QSZ4gRx+vW;Bz?P4j0~3oePT==?o1P)KOf{MjNxXE)Da+Re*oG&w{dgTsS? zfq`c^1HG@IQ#wkrMYFc%Y~f1kGP$(!+vXWeyLlN6Cx-}RC^G;7 zPdt!F1LA8e4nUHDfgMaj2&U7M?+esTUMiTTtDljdo2p-wnwX