diff options
| author | Ajax <commial@gmail.com> | 2017-08-10 15:08:34 +0200 |
|---|---|---|
| committer | Ajax <commial@gmail.com> | 2017-09-05 14:00:10 +0200 |
| commit | c08ea372f47f79c448acf3415397c700e2925579 (patch) | |
| tree | dfc770acc6435bebac6628d365ac4fff5c2f6047 | |
| parent | bff30d8da16a8665ca63902546ee81569a42ef46 (diff) | |
| download | miasm-c08ea372f47f79c448acf3415397c700e2925579.tar.gz miasm-c08ea372f47f79c448acf3415397c700e2925579.zip | |
Test DSE examples with several strategies
| -rwxr-xr-x | test/test_all.py | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/test/test_all.py b/test/test_all.py index 17193d9f..99b0094e 100755 --- a/test/test_all.py +++ b/test/test_all.py @@ -630,10 +630,16 @@ dse_crackme = ExampleSymbolExec([Example.get_sample("dse_crackme.c"), products=[dse_crackme_out], executable="cc") testset += dse_crackme -testset += ExampleSymbolExec(["dse_crackme.py", dse_crackme_out], - depends=[dse_crackme], - products=["test.txt"], - tags=[TAGS["z3"]]) +for strategy in ["code-cov", "branch-cov", "path-cov"]: + testset += ExampleSymbolExec(["dse_crackme.py", dse_crackme_out, + "--strategy", strategy], + depends=[dse_crackme], + products=["test.txt"], + tags=[TAGS["z3"]]) + testset += ExampleSymbolExec(["dse_strategies.py", + Example.get_sample("simple_test.bin"), + strategy], + tags=[TAGS["z3"]]) ## Jitter class ExampleJitter(Example): |