diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2020-02-28 10:54:58 +0100 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2020-02-28 11:01:23 +0100 |
| commit | fb5ec3e3568d7c2e6f27975d76acdd8a1db5afa9 (patch) | |
| tree | e0f26f3e8cad43c9fd91607b5bf7ae96c49df64f /test/test_all.py | |
| parent | 886f05bcc6c4285bf60cb296186b9e975698356a (diff) | |
| download | miasm-fb5ec3e3568d7c2e6f27975d76acdd8a1db5afa9.tar.gz miasm-fb5ec3e3568d7c2e6f27975d76acdd8a1db5afa9.zip | |
Fix Automod code
Diffstat (limited to 'test/test_all.py')
| -rwxr-xr-x | test/test_all.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/test_all.py b/test/test_all.py index 7fb43525..a8bf5330 100755 --- a/test/test_all.py +++ b/test/test_all.py @@ -548,6 +548,13 @@ test_x86_32_if_reg = ExampleShellcode(['x86_32', 'x86_32_if_reg.S', "x86_32_if_r test_x86_32_seh = ExampleShellcode(["x86_32", "x86_32_seh.S", "x86_32_seh.bin", "--PE"]) test_x86_32_dead = ExampleShellcode(['x86_32', 'x86_32_dead.S', "x86_32_dead.bin"]) +test_x86_32_automod_2 = ExampleShellcode( + [ + 'x86_32', 'x86_32_automod_2.S', "x86_32_automod_2.bin", "--PE" + ] +) + + test_x86_32_dis = ExampleShellcode( [ "x86_32", "test_x86_32_dis.S", "test_x86_32_dis.bin", "--PE" @@ -573,6 +580,7 @@ testset += test_x86_32_seh testset += test_x86_32_dead testset += test_human testset += test_x86_32_dis +testset += test_x86_32_automod_2 class ExampleDisassembler(Example): """Disassembler examples specificities: @@ -801,6 +809,8 @@ for script, dep in [(["x86_32.py", Example.get_sample("x86_32_sc.bin")], []), (["arm_sc.py", "0", Example.get_sample("demo_arm_l.bin"), "l", "-a", "0"], [test_arml]), (["sandbox_call.py", Example.get_sample("md5_arm")], []), + (["sandbox_pe_x86_32.py", Example.get_sample("x86_32_automod_2.bin")], + [test_x86_32_automod_2]) ] + [(["sandbox_pe_x86_32.py", Example.get_sample("x86_32_" + name + ".bin")], [test_box[name]]) |