diff options
| author | Ajax <commial@gmail.com> | 2018-07-17 12:12:25 +0200 |
|---|---|---|
| committer | Ajax <commial@gmail.com> | 2018-07-24 13:46:38 +0200 |
| commit | ab0cf7308e9fb0c5ddeb2e49da75193cd7d50304 (patch) | |
| tree | 3bb319291b2bd1dc1deeec4bbb76878739a508bc /test/test_all.py | |
| parent | bcd764692b084ebd61868a2561d710dbb0d4ffb9 (diff) | |
| download | miasm-ab0cf7308e9fb0c5ddeb2e49da75193cd7d50304.tar.gz miasm-ab0cf7308e9fb0c5ddeb2e49da75193cd7d50304.zip | |
Add an example for LinuxEnvironment & Syscall handling
Diffstat (limited to 'test/test_all.py')
| -rwxr-xr-x | test/test_all.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/test_all.py b/test/test_all.py index 3fb0a5b7..9bf54608 100755 --- a/test/test_all.py +++ b/test/test_all.py @@ -1,6 +1,7 @@ #! /usr/bin/env python2 import argparse +from distutils.spawn import find_executable import time import os import tempfile @@ -686,6 +687,18 @@ for jitter in ExampleJitter.jitter_engines: ["--jitter", jitter], products=[Example.get_sample("box_upx_exe_unupx.bin")], tags=tags.get(jitter, [])) + if jitter != "python": + tags = tags.get(jitter, []) + [TAGS["long"]] + ls_path = find_executable("ls") + file_path = find_executable("file") + # Launch simulation of "file /bin/ls", with access to libs and ld info + testset += ExampleJitter(["run_with_linuxenv.py", "-v", "-p", + '/(.*lib.*\.so(\.\d+)?)|(/etc/ld.so.*)|(.*magic.*)|(%s)' % ls_path, + ] + ["--jitter", jitter] + [ + file_path, ls_path, + ], + tags=tags) + for script, dep in [(["x86_32.py", Example.get_sample("x86_32_sc.bin")], []), (["arm.py", Example.get_sample("md5_arm"), "--mimic-env"], |