diff --git a/.gitignore b/.gitignore index b66a0ae71d5cd7dc62f3b22b02ce18349e9ffe00..e9083fb16bd7208ffb04b1e5620fdc4120460c7c 100644 --- a/.gitignore +++ b/.gitignore @@ -31,19 +31,19 @@ examples/writer/writer.exe # generated elf files -elf_examples/*_copy -elf_examples/*_copy.elf -elf_examples/elf_dummy_header_i386_32.elf -elf_examples/elf_dummy_header_i386_64.elf -elf_examples/elf_dummy_header_ppc_32.elf -elf_examples/elf_dummy_header_ppc_64.elf -elf_examples/write_exe_i386_32 -elf_examples/write_exe_i386_32_w_addr -elf_examples/write_exe_i386_32_wo_addr -elf_examples/write_exe_i386_32_section_added -elf_examples/ppc-32bit-testcopy*.elf -elf_examples/null_section_inside_segment* -elf_examples/segment_containing_no_section* +tests/elf_examples/*_copy +tests/elf_examples/*_copy.elf +tests/elf_examples/elf_dummy_header_i386_32.elf +tests/elf_examples/elf_dummy_header_i386_64.elf +tests/elf_examples/elf_dummy_header_ppc_32.elf +tests/elf_examples/elf_dummy_header_ppc_64.elf +tests/elf_examples/write_exe_i386_32 +tests/elf_examples/write_exe_i386_32_w_addr +tests/elf_examples/write_exe_i386_32_wo_addr +tests/elf_examples/write_exe_i386_32_section_added +tests/elf_examples/ppc-32bit-testcopy*.elf +tests/elf_examples/null_section_inside_segment* +tests/elf_examples/segment_containing_no_section* # various unwanted files (backups, objects, cmake artifacts) *~ diff --git a/.vscode/launch.json b/.vscode/launch.json index 951074b41f9a2b44d20d805e6d46c6093045ed7a..89c5dc4a1d1bf380681c52cd447f1d92b5a688c3 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -30,7 +30,7 @@ "type": "cppdbg", "request": "launch", "program": "${workspaceFolder}/examples/elfdump/elfdump", - "args": ["elf_examples/crash.elf"], + "args": ["tests/elf_examples/crash.elf"], "stopAtEntry": false, "cwd": "${workspaceFolder}", "environment": [], diff --git a/tests/ELFIOTest.cpp b/tests/ELFIOTest.cpp index b6b59e3c813c1afaf0b9ede24f1d75557c7b63ad..f3cd9726f754a151fd9f06c86172eeca8489b68e 100644 --- a/tests/ELFIOTest.cpp +++ b/tests/ELFIOTest.cpp @@ -184,7 +184,7 @@ void BOOST_AUTO_TEST_CASE( load32 ) { elfio reader; - BOOST_REQUIRE_EQUAL( reader.load( "../elf_examples/hello_32" ), true ); + BOOST_REQUIRE_EQUAL( reader.load( "elf_examples/hello_32" ), true ); checkHeader( reader, ELFCLASS32, ELFDATA2LSB, EV_CURRENT, ET_EXEC, EM_386, 1, 0x80482b0, 0, 28, 7, 0, 0 ); @@ -284,7 +284,7 @@ BOOST_AUTO_TEST_CASE( load64 ) { elfio reader; - BOOST_REQUIRE_EQUAL( reader.load( "../elf_examples/hello_64" ), true ); + BOOST_REQUIRE_EQUAL( reader.load( "elf_examples/hello_64" ), true ); //////////////////////////////////////////////////////////////////////////// // Check ELF header @@ -393,7 +393,7 @@ BOOST_AUTO_TEST_CASE( hello_64_o ) { elfio reader; - BOOST_REQUIRE_EQUAL( reader.load( "../elf_examples/hello_64.o" ), true ); + BOOST_REQUIRE_EQUAL( reader.load( "elf_examples/hello_64.o" ), true ); //////////////////////////////////////////////////////////////////////////// // Check ELF header @@ -458,7 +458,7 @@ BOOST_AUTO_TEST_CASE( hello_32_o ) { elfio reader; - BOOST_REQUIRE_EQUAL( reader.load( "../elf_examples/hello_32.o" ), true ); + BOOST_REQUIRE_EQUAL( reader.load( "elf_examples/hello_32.o" ), true ); //////////////////////////////////////////////////////////////////////////// // Check ELF header @@ -517,7 +517,7 @@ BOOST_AUTO_TEST_CASE( test_ppc_o ) { elfio reader; - BOOST_REQUIRE_EQUAL( reader.load( "../elf_examples/test_ppc.o" ), true ); + BOOST_REQUIRE_EQUAL( reader.load( "elf_examples/test_ppc.o" ), true ); //////////////////////////////////////////////////////////////////////////// // Check ELF header @@ -594,7 +594,7 @@ BOOST_AUTO_TEST_CASE( test_ppc ) { elfio reader; - BOOST_REQUIRE_EQUAL( reader.load( "../elf_examples/test_ppc" ), true ); + BOOST_REQUIRE_EQUAL( reader.load( "elf_examples/test_ppc" ), true ); //////////////////////////////////////////////////////////////////////////// // Check ELF header @@ -725,10 +725,10 @@ BOOST_AUTO_TEST_CASE( test_dummy_out_i386_32 ) BOOST_CHECK_EQUAL( note_sec->get_index(), 2 ); // Create ELF file - writer.save( "../elf_examples/elf_dummy_header_i386_32.elf" ); + writer.save( "elf_examples/elf_dummy_header_i386_32.elf" ); elfio reader; - BOOST_REQUIRE_EQUAL( reader.load( "../elf_examples/elf_dummy_header_i386_32.elf" ), + BOOST_REQUIRE_EQUAL( reader.load( "elf_examples/elf_dummy_header_i386_32.elf" ), true ); //////////////////////////////////////////////////////////////////////////// @@ -781,10 +781,10 @@ BOOST_AUTO_TEST_CASE( test_dummy_out_ppc_32 ) BOOST_CHECK_EQUAL( note_sec->get_index(), 2 ); // Create ELF file - writer.save( "../elf_examples/elf_dummy_header_ppc_32.elf" ); + writer.save( "elf_examples/elf_dummy_header_ppc_32.elf" ); elfio reader; - BOOST_REQUIRE_EQUAL( reader.load( "../elf_examples/elf_dummy_header_ppc_32.elf" ), + BOOST_REQUIRE_EQUAL( reader.load( "elf_examples/elf_dummy_header_ppc_32.elf" ), true ); //////////////////////////////////////////////////////////////////////////// @@ -837,10 +837,10 @@ BOOST_AUTO_TEST_CASE( test_dummy_out_i386_64 ) BOOST_CHECK_EQUAL( note_sec->get_index(), 2 ); // Create ELF file - writer.save( "../elf_examples/elf_dummy_header_i386_64.elf" ); + writer.save( "elf_examples/elf_dummy_header_i386_64.elf" ); elfio reader; - BOOST_REQUIRE_EQUAL( reader.load( "../elf_examples/elf_dummy_header_i386_64.elf" ), + BOOST_REQUIRE_EQUAL( reader.load( "elf_examples/elf_dummy_header_i386_64.elf" ), true ); //////////////////////////////////////////////////////////////////////////// @@ -893,10 +893,10 @@ BOOST_AUTO_TEST_CASE( test_dummy_out_ppc_64 ) BOOST_CHECK_EQUAL( note_sec->get_index(), 2 ); // Create ELF file - writer.save( "../elf_examples/elf_dummy_header_ppc_64.elf" ); + writer.save( "elf_examples/elf_dummy_header_ppc_64.elf" ); elfio reader; - BOOST_REQUIRE_EQUAL( reader.load( "../elf_examples/elf_dummy_header_ppc_64.elf" ), + BOOST_REQUIRE_EQUAL( reader.load( "elf_examples/elf_dummy_header_ppc_64.elf" ), true ); //////////////////////////////////////////////////////////////////////////// @@ -927,7 +927,7 @@ BOOST_AUTO_TEST_CASE( test_dynamic_64_1 ) { elfio reader; - BOOST_REQUIRE_EQUAL( reader.load( "../elf_examples/main" ), + BOOST_REQUIRE_EQUAL( reader.load( "elf_examples/main" ), true ); section* dynsec = reader.sections[".dynamic"]; @@ -963,7 +963,7 @@ BOOST_AUTO_TEST_CASE( test_dynamic_64_2 ) { elfio reader; - BOOST_REQUIRE_EQUAL( reader.load( "../elf_examples/libfunc.so" ), + BOOST_REQUIRE_EQUAL( reader.load( "elf_examples/libfunc.so" ), true ); section* dynsec = reader.sections[".dynamic"]; @@ -996,7 +996,7 @@ BOOST_AUTO_TEST_CASE( test_dynamic_64_3 ) { elfio reader; - BOOST_REQUIRE_EQUAL( reader.load( "../elf_examples/main" ), + BOOST_REQUIRE_EQUAL( reader.load( "elf_examples/main" ), true ); section* dynsec = reader.sections[".dynamic"]; diff --git a/tests/ELFIOTest1.cpp b/tests/ELFIOTest1.cpp index 90d31f8a2c3a2c1598cef8402b97fe33b0f3c74c..16d2972d917bf2d31abc836ceefb928cf06f0651 100644 --- a/tests/ELFIOTest1.cpp +++ b/tests/ELFIOTest1.cpp @@ -104,8 +104,8 @@ bool write_obj_i386( bool is64bit ) // Create ELF file writer.save( is64bit ? - "../elf_examples/write_obj_i386_64.o" : - "../elf_examples/write_obj_i386_32.o" + "elf_examples/write_obj_i386_64.o" : + "elf_examples/write_obj_i386_32.o" ); return true; @@ -116,8 +116,8 @@ bool write_obj_i386( bool is64bit ) BOOST_AUTO_TEST_CASE( write_obj_i386_32 ) { BOOST_CHECK_EQUAL( true, write_obj_i386( false ) ); - output_test_stream output( "../elf_examples/write_obj_i386_32_match.o", true, false ); - std::ifstream input( "../elf_examples/write_obj_i386_32.o", std::ios::binary ); + output_test_stream output( "elf_examples/write_obj_i386_32_match.o", true, false ); + std::ifstream input( "elf_examples/write_obj_i386_32.o", std::ios::binary ); output << input.rdbuf(); BOOST_CHECK( output.match_pattern() ); } @@ -127,8 +127,8 @@ BOOST_AUTO_TEST_CASE( write_obj_i386_32 ) BOOST_AUTO_TEST_CASE( write_obj_i386_64 ) { BOOST_CHECK_EQUAL( true, write_obj_i386( true ) ); - output_test_stream output( "../elf_examples/write_obj_i386_64_match.o", true, false ); - std::ifstream input( "../elf_examples/write_obj_i386_64.o", std::ios::binary ); + output_test_stream output( "elf_examples/write_obj_i386_64_match.o", true, false ); + std::ifstream input( "elf_examples/write_obj_i386_64.o", std::ios::binary ); output << input.rdbuf(); BOOST_CHECK( output.match_pattern() ); } @@ -210,8 +210,8 @@ bool write_exe_i386( const std::string& filename, bool is64bit, bool set_addr = //////////////////////////////////////////////////////////////////////////////// BOOST_AUTO_TEST_CASE( write_exe_i386_32 ) { - const std::string generated_file ( "../elf_examples/write_exe_i386_32" ); - const std::string reference_file ( "../elf_examples/write_exe_i386_32_match" ); + const std::string generated_file ( "elf_examples/write_exe_i386_32" ); + const std::string reference_file ( "elf_examples/write_exe_i386_32_match" ); BOOST_CHECK_EQUAL( true, write_exe_i386( generated_file, false ) ); output_test_stream output( reference_file, true, false ); std::ifstream input( generated_file, std::ios::binary ); @@ -332,16 +332,16 @@ void checkExeAreEqual( std::string file_name1, std::string file_name2, int skipT //////////////////////////////////////////////////////////////////////////////// BOOST_AUTO_TEST_CASE( elf_object_copy_32 ) { - checkObjestsAreEqual( "../elf_examples/hello_32.o", - "../elf_examples/hello_32_copy.o" ); - checkObjestsAreEqual( "../elf_examples/hello_64.o", - "../elf_examples/hello_64_copy.o" ); - checkObjestsAreEqual( "../elf_examples/test_ppc.o", - "../elf_examples/test_ppc_copy.o" ); - checkObjestsAreEqual( "../elf_examples/write_obj_i386_32.o", - "../elf_examples/write_obj_i386_32_copy.o" ); - checkObjestsAreEqual( "../elf_examples/write_obj_i386_64.o", - "../elf_examples/write_obj_i386_64_copy.o" ); + checkObjestsAreEqual( "elf_examples/hello_32.o", + "elf_examples/hello_32_copy.o" ); + checkObjestsAreEqual( "elf_examples/hello_64.o", + "elf_examples/hello_64_copy.o" ); + checkObjestsAreEqual( "elf_examples/test_ppc.o", + "elf_examples/test_ppc_copy.o" ); + checkObjestsAreEqual( "elf_examples/write_obj_i386_32.o", + "elf_examples/write_obj_i386_32_copy.o" ); + checkObjestsAreEqual( "elf_examples/write_obj_i386_64.o", + "elf_examples/write_obj_i386_64_copy.o" ); } @@ -350,7 +350,7 @@ BOOST_AUTO_TEST_CASE( section_header_address_update ) { elfio reader; - const std::string file_w_addr ( "../elf_examples/write_exe_i386_32_w_addr" ); + const std::string file_w_addr ( "elf_examples/write_exe_i386_32_w_addr" ); write_exe_i386( file_w_addr, false, true, 0x08048100 ); reader.load( file_w_addr ); section* sec = reader.sections[".text"]; @@ -358,7 +358,7 @@ BOOST_AUTO_TEST_CASE( section_header_address_update ) BOOST_CHECK_EQUAL( sec->get_address(), 0x08048100 ); - const std::string file_wo_addr ( "../elf_examples/write_exe_i386_32_wo_addr" ); + const std::string file_wo_addr ( "elf_examples/write_exe_i386_32_wo_addr" ); write_exe_i386( file_wo_addr, false, false, 0 ); reader.load( file_wo_addr ); sec = reader.sections[".text"]; @@ -372,7 +372,7 @@ BOOST_AUTO_TEST_CASE( elfio_copy ) { elfio e; - const std::string filename ( "../elf_examples/write_exe_i386_32_section_added" ); + const std::string filename ( "elf_examples/write_exe_i386_32_section_added" ); write_exe_i386( filename, false, true, 0x08048100 ); e.load( filename ); @@ -386,48 +386,48 @@ BOOST_AUTO_TEST_CASE( elfio_copy ) //////////////////////////////////////////////////////////////////////////////// BOOST_AUTO_TEST_CASE( elf_exe_copy_64 ) { - checkExeAreEqual( "../elf_examples/64bitLOAD.elf", - "../elf_examples/64bitLOAD_copy.elf" ); - checkExeAreEqual( "../elf_examples/asm64", - "../elf_examples/asm64_copy" ); - checkExeAreEqual( "../elf_examples/hello_64", - "../elf_examples/hello_64_copy" ); + checkExeAreEqual( "elf_examples/64bitLOAD.elf", + "elf_examples/64bitLOAD_copy.elf" ); + checkExeAreEqual( "elf_examples/asm64", + "elf_examples/asm64_copy" ); + checkExeAreEqual( "elf_examples/hello_64", + "elf_examples/hello_64_copy" ); // The last segment (GNU_RELRO) is bigger than necessary. // I don't see why but it contains a few bits of the .got.plt section. // -> load, store, compare cycle fails -// checkExeAreEqual( "../elf_examples/main", -// "../elf_examples/main_copy" ); -// checkExeAreEqual( "../elf_examples/ls", -// "../elf_examples/ls_copy" ); +// checkExeAreEqual( "elf_examples/main", +// "elf_examples/main_copy" ); +// checkExeAreEqual( "elf_examples/ls", +// "elf_examples/ls_copy" ); } //////////////////////////////////////////////////////////////////////////////// BOOST_AUTO_TEST_CASE( elf_exe_copy_32 ) { - checkExeAreEqual( "../elf_examples/asm", - "../elf_examples/asm_copy" ); - checkExeAreEqual( "../elf_examples/arm_v7m_test_debug.elf", - "../elf_examples/arm_v7m_test_debug_copy.elf" ); - checkExeAreEqual( "../elf_examples/arm_v7m_test_release.elf", - "../elf_examples/arm_v7m_test_release_copy.elf" ); - checkExeAreEqual( "../elf_examples/hello_32", - "../elf_examples/hello_32_copy" ); - checkExeAreEqual( "../elf_examples/hello_arm", - "../elf_examples/hello_arm_copy" ); - checkExeAreEqual( "../elf_examples/hello_arm_stripped", - "../elf_examples/hello_arm_stripped_copy" ); - checkExeAreEqual( "../elf_examples/read_write_arm_elf32_input", - "../elf_examples/read_write_arm_elf32_input_copy" ); - checkExeAreEqual( "../elf_examples/test_ppc", - "../elf_examples/test_ppc_copy" ); + checkExeAreEqual( "elf_examples/asm", + "elf_examples/asm_copy" ); + checkExeAreEqual( "elf_examples/arm_v7m_test_debug.elf", + "elf_examples/arm_v7m_test_debug_copy.elf" ); + checkExeAreEqual( "elf_examples/arm_v7m_test_release.elf", + "elf_examples/arm_v7m_test_release_copy.elf" ); + checkExeAreEqual( "elf_examples/hello_32", + "elf_examples/hello_32_copy" ); + checkExeAreEqual( "elf_examples/hello_arm", + "elf_examples/hello_arm_copy" ); + checkExeAreEqual( "elf_examples/hello_arm_stripped", + "elf_examples/hello_arm_stripped_copy" ); + checkExeAreEqual( "elf_examples/read_write_arm_elf32_input", + "elf_examples/read_write_arm_elf32_input_copy" ); + checkExeAreEqual( "elf_examples/test_ppc", + "elf_examples/test_ppc_copy" ); } //////////////////////////////////////////////////////////////////////////////// BOOST_AUTO_TEST_CASE( elf_exe_loadsave_ppc32big3 ) { - std::string in = "../elf_examples/ppc-32bit-specimen3.elf"; - std::string out = "../elf_examples/ppc-32bit-testcopy3.elf"; + std::string in = "elf_examples/ppc-32bit-specimen3.elf"; + std::string out = "elf_examples/ppc-32bit-testcopy3.elf"; elfio elf; BOOST_REQUIRE_EQUAL( elf.load( in ), true ); BOOST_REQUIRE_EQUAL( elf.save( out ), true ); @@ -446,7 +446,7 @@ BOOST_AUTO_TEST_CASE( get_symbol_32 ) unsigned char type; ELFIO::Elf_Half section_index; unsigned char other; - std::string in = "../elf_examples/hello_32"; + std::string in = "elf_examples/hello_32"; BOOST_REQUIRE_EQUAL( elf.load(in), true ); section* psymsec = elf.sections[ ".symtab" ]; @@ -470,7 +470,7 @@ BOOST_AUTO_TEST_CASE( get_symbol_64 ) unsigned char type; ELFIO::Elf_Half section_index; unsigned char other; - std::string in = "../elf_examples/hello_64"; + std::string in = "elf_examples/hello_64"; BOOST_REQUIRE_EQUAL( elf.load(in), true ); section* psymsec = elf.sections[ ".symtab" ]; @@ -491,7 +491,7 @@ BOOST_AUTO_TEST_CASE( null_section_inside_segment ) // See https://github.com/serge1/ELFIO/issues/19 // // Note: The test case checking the load/save of a segment containing no section - // is covered by elf_object_copy_32: ../elf_examples/hello_32 has empty segments + // is covered by elf_object_copy_32: elf_examples/hello_32 has empty segments // Create an ELF file with SHT_NULL sections at the beginning/middle/end of a segment elfio writer; @@ -543,8 +543,8 @@ BOOST_AUTO_TEST_CASE( null_section_inside_segment ) // Setup entry point writer.set_entry( 0x08048000 ); // Create ELF file - std::string f1 = "../elf_examples/null_section_inside_segment1"; - std::string f2 = "../elf_examples/null_section_inside_segment2"; + std::string f1 = "elf_examples/null_section_inside_segment1"; + std::string f2 = "elf_examples/null_section_inside_segment2"; BOOST_CHECK_EQUAL( writer.save(f1), true ); // Load and check the ELF file created above @@ -564,7 +564,7 @@ BOOST_AUTO_TEST_CASE(invalid_file) unsigned char type; ELFIO::Elf_Half section_index; unsigned char other; - std::string in = "../elf_examples/crash.elf"; + std::string in = "elf_examples/crash.elf"; BOOST_REQUIRE_EQUAL(elf.load(in), true); section *psymsec = elf.sections[".symtab"]; diff --git a/elf_examples/64bitLOAD.elf b/tests/elf_examples/64bitLOAD.elf similarity index 100% rename from elf_examples/64bitLOAD.elf rename to tests/elf_examples/64bitLOAD.elf diff --git a/elf_examples/ARMSCII-8.so b/tests/elf_examples/ARMSCII-8.so similarity index 100% rename from elf_examples/ARMSCII-8.so rename to tests/elf_examples/ARMSCII-8.so diff --git a/elf_examples/arm_v7m_test_debug.elf b/tests/elf_examples/arm_v7m_test_debug.elf similarity index 100% rename from elf_examples/arm_v7m_test_debug.elf rename to tests/elf_examples/arm_v7m_test_debug.elf diff --git a/elf_examples/arm_v7m_test_release.elf b/tests/elf_examples/arm_v7m_test_release.elf similarity index 100% rename from elf_examples/arm_v7m_test_release.elf rename to tests/elf_examples/arm_v7m_test_release.elf diff --git a/elf_examples/asm b/tests/elf_examples/asm similarity index 100% rename from elf_examples/asm rename to tests/elf_examples/asm diff --git a/elf_examples/asm.lst b/tests/elf_examples/asm.lst similarity index 100% rename from elf_examples/asm.lst rename to tests/elf_examples/asm.lst diff --git a/elf_examples/asm.o b/tests/elf_examples/asm.o similarity index 100% rename from elf_examples/asm.o rename to tests/elf_examples/asm.o diff --git a/elf_examples/asm.readelf b/tests/elf_examples/asm.readelf similarity index 100% rename from elf_examples/asm.readelf rename to tests/elf_examples/asm.readelf diff --git a/elf_examples/asm.s b/tests/elf_examples/asm.s similarity index 100% rename from elf_examples/asm.s rename to tests/elf_examples/asm.s diff --git a/elf_examples/asm64 b/tests/elf_examples/asm64 similarity index 100% rename from elf_examples/asm64 rename to tests/elf_examples/asm64 diff --git a/elf_examples/asm64.lst b/tests/elf_examples/asm64.lst similarity index 100% rename from elf_examples/asm64.lst rename to tests/elf_examples/asm64.lst diff --git a/elf_examples/asm64.o b/tests/elf_examples/asm64.o similarity index 100% rename from elf_examples/asm64.o rename to tests/elf_examples/asm64.o diff --git a/elf_examples/crash-060833f08dc14d1712428742b3cad7af17b36bb7 b/tests/elf_examples/crash-060833f08dc14d1712428742b3cad7af17b36bb7 similarity index 100% rename from elf_examples/crash-060833f08dc14d1712428742b3cad7af17b36bb7 rename to tests/elf_examples/crash-060833f08dc14d1712428742b3cad7af17b36bb7 diff --git a/elf_examples/crash-7d695153fd8052529d480c2352d4ada33a44bada b/tests/elf_examples/crash-7d695153fd8052529d480c2352d4ada33a44bada similarity index 100% rename from elf_examples/crash-7d695153fd8052529d480c2352d4ada33a44bada rename to tests/elf_examples/crash-7d695153fd8052529d480c2352d4ada33a44bada diff --git a/elf_examples/crash-b82f05b0b25c8fdc98480e6d76b6d5f9164ae2bc b/tests/elf_examples/crash-b82f05b0b25c8fdc98480e6d76b6d5f9164ae2bc similarity index 100% rename from elf_examples/crash-b82f05b0b25c8fdc98480e6d76b6d5f9164ae2bc rename to tests/elf_examples/crash-b82f05b0b25c8fdc98480e6d76b6d5f9164ae2bc diff --git a/elf_examples/crash-e1ce7cecf01cf800397a4302854d9d76fa19763c b/tests/elf_examples/crash-e1ce7cecf01cf800397a4302854d9d76fa19763c similarity index 100% rename from elf_examples/crash-e1ce7cecf01cf800397a4302854d9d76fa19763c rename to tests/elf_examples/crash-e1ce7cecf01cf800397a4302854d9d76fa19763c diff --git a/elf_examples/crash-e3c41070342cf84dea077356ddbb8ebf4326a601 b/tests/elf_examples/crash-e3c41070342cf84dea077356ddbb8ebf4326a601 similarity index 100% rename from elf_examples/crash-e3c41070342cf84dea077356ddbb8ebf4326a601 rename to tests/elf_examples/crash-e3c41070342cf84dea077356ddbb8ebf4326a601 diff --git a/elf_examples/crash.elf b/tests/elf_examples/crash.elf similarity index 100% rename from elf_examples/crash.elf rename to tests/elf_examples/crash.elf diff --git a/elf_examples/elf_header_i386_32.elf b/tests/elf_examples/elf_header_i386_32.elf similarity index 100% rename from elf_examples/elf_header_i386_32.elf rename to tests/elf_examples/elf_header_i386_32.elf diff --git a/elf_examples/entropy.so b/tests/elf_examples/entropy.so similarity index 100% rename from elf_examples/entropy.so rename to tests/elf_examples/entropy.so diff --git a/elf_examples/hello.c b/tests/elf_examples/hello.c similarity index 100% rename from elf_examples/hello.c rename to tests/elf_examples/hello.c diff --git a/elf_examples/hello_32 b/tests/elf_examples/hello_32 similarity index 100% rename from elf_examples/hello_32 rename to tests/elf_examples/hello_32 diff --git a/elf_examples/hello_32.o b/tests/elf_examples/hello_32.o similarity index 100% rename from elf_examples/hello_32.o rename to tests/elf_examples/hello_32.o diff --git a/elf_examples/hello_32.txt b/tests/elf_examples/hello_32.txt similarity index 100% rename from elf_examples/hello_32.txt rename to tests/elf_examples/hello_32.txt diff --git a/elf_examples/hello_32_o.txt b/tests/elf_examples/hello_32_o.txt similarity index 100% rename from elf_examples/hello_32_o.txt rename to tests/elf_examples/hello_32_o.txt diff --git a/elf_examples/hello_64 b/tests/elf_examples/hello_64 similarity index 100% rename from elf_examples/hello_64 rename to tests/elf_examples/hello_64 diff --git a/elf_examples/hello_64.o b/tests/elf_examples/hello_64.o similarity index 100% rename from elf_examples/hello_64.o rename to tests/elf_examples/hello_64.o diff --git a/elf_examples/hello_64.txt b/tests/elf_examples/hello_64.txt similarity index 100% rename from elf_examples/hello_64.txt rename to tests/elf_examples/hello_64.txt diff --git a/elf_examples/hello_64_o.txt b/tests/elf_examples/hello_64_o.txt similarity index 100% rename from elf_examples/hello_64_o.txt rename to tests/elf_examples/hello_64_o.txt diff --git a/elf_examples/hello_arm b/tests/elf_examples/hello_arm similarity index 100% rename from elf_examples/hello_arm rename to tests/elf_examples/hello_arm diff --git a/elf_examples/hello_arm.o b/tests/elf_examples/hello_arm.o similarity index 100% rename from elf_examples/hello_arm.o rename to tests/elf_examples/hello_arm.o diff --git a/elf_examples/hello_arm_stripped b/tests/elf_examples/hello_arm_stripped similarity index 100% rename from elf_examples/hello_arm_stripped rename to tests/elf_examples/hello_arm_stripped diff --git a/elf_examples/libfunc.so b/tests/elf_examples/libfunc.so similarity index 100% rename from elf_examples/libfunc.so rename to tests/elf_examples/libfunc.so diff --git a/elf_examples/libfunc32.so b/tests/elf_examples/libfunc32.so similarity index 100% rename from elf_examples/libfunc32.so rename to tests/elf_examples/libfunc32.so diff --git a/elf_examples/ls b/tests/elf_examples/ls similarity index 100% rename from elf_examples/ls rename to tests/elf_examples/ls diff --git a/elf_examples/ls.readelf b/tests/elf_examples/ls.readelf similarity index 100% rename from elf_examples/ls.readelf rename to tests/elf_examples/ls.readelf diff --git a/elf_examples/main b/tests/elf_examples/main similarity index 100% rename from elf_examples/main rename to tests/elf_examples/main diff --git a/elf_examples/main32 b/tests/elf_examples/main32 similarity index 100% rename from elf_examples/main32 rename to tests/elf_examples/main32 diff --git a/elf_examples/ppc-32bit-specimen3.elf b/tests/elf_examples/ppc-32bit-specimen3.elf similarity index 100% rename from elf_examples/ppc-32bit-specimen3.elf rename to tests/elf_examples/ppc-32bit-specimen3.elf diff --git a/elf_examples/read_write_arm_elf32_input b/tests/elf_examples/read_write_arm_elf32_input similarity index 100% rename from elf_examples/read_write_arm_elf32_input rename to tests/elf_examples/read_write_arm_elf32_input diff --git a/elf_examples/startup.eln b/tests/elf_examples/startup.eln similarity index 100% rename from elf_examples/startup.eln rename to tests/elf_examples/startup.eln diff --git a/elf_examples/startup_orig.eln b/tests/elf_examples/startup_orig.eln similarity index 100% rename from elf_examples/startup_orig.eln rename to tests/elf_examples/startup_orig.eln diff --git a/elf_examples/test_ppc b/tests/elf_examples/test_ppc similarity index 100% rename from elf_examples/test_ppc rename to tests/elf_examples/test_ppc diff --git a/elf_examples/test_ppc.cpp b/tests/elf_examples/test_ppc.cpp similarity index 100% rename from elf_examples/test_ppc.cpp rename to tests/elf_examples/test_ppc.cpp diff --git a/elf_examples/test_ppc.o b/tests/elf_examples/test_ppc.o similarity index 100% rename from elf_examples/test_ppc.o rename to tests/elf_examples/test_ppc.o diff --git a/elf_examples/test_ppc.txt b/tests/elf_examples/test_ppc.txt similarity index 100% rename from elf_examples/test_ppc.txt rename to tests/elf_examples/test_ppc.txt diff --git a/elf_examples/test_ppc_o.txt b/tests/elf_examples/test_ppc_o.txt similarity index 100% rename from elf_examples/test_ppc_o.txt rename to tests/elf_examples/test_ppc_o.txt diff --git a/elf_examples/write_exe_i386_32_match b/tests/elf_examples/write_exe_i386_32_match similarity index 100% rename from elf_examples/write_exe_i386_32_match rename to tests/elf_examples/write_exe_i386_32_match diff --git a/elf_examples/write_exe_i386_32_work_dump.txt b/tests/elf_examples/write_exe_i386_32_work_dump.txt similarity index 100% rename from elf_examples/write_exe_i386_32_work_dump.txt rename to tests/elf_examples/write_exe_i386_32_work_dump.txt diff --git a/elf_examples/write_obj_i386_32_match.o b/tests/elf_examples/write_obj_i386_32_match.o similarity index 100% rename from elf_examples/write_obj_i386_32_match.o rename to tests/elf_examples/write_obj_i386_32_match.o diff --git a/elf_examples/write_obj_i386_64_match.o b/tests/elf_examples/write_obj_i386_64_match.o similarity index 100% rename from elf_examples/write_obj_i386_64_match.o rename to tests/elf_examples/write_obj_i386_64_match.o