about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAjax <commial@gmail.com>2017-08-10 15:08:34 +0200
committerAjax <commial@gmail.com>2017-09-05 14:00:10 +0200
commitc08ea372f47f79c448acf3415397c700e2925579 (patch)
treedfc770acc6435bebac6628d365ac4fff5c2f6047
parentbff30d8da16a8665ca63902546ee81569a42ef46 (diff)
downloadmiasm-c08ea372f47f79c448acf3415397c700e2925579.tar.gz
miasm-c08ea372f47f79c448acf3415397c700e2925579.zip
Test DSE examples with several strategies
-rwxr-xr-xtest/test_all.py14
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):