diff options
| author | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2017-02-13 12:56:25 +0100 |
|---|---|---|
| committer | Fabrice Desclaux <fabrice.desclaux@cea.fr> | 2017-02-17 14:53:45 +0100 |
| commit | de06847ea27d841d885cac5030c75bf63b58f5c6 (patch) | |
| tree | 65994518fa3ed5ff4b23fffa06fb432802a3ec0e /test | |
| parent | f66a44ed97f792596c84f1110e1d563ac8146766 (diff) | |
| download | miasm-de06847ea27d841d885cac5030c75bf63b58f5c6.tar.gz miasm-de06847ea27d841d885cac5030c75bf63b58f5c6.zip | |
Test: add access_c/expr_c example
Diffstat (limited to 'test')
| -rwxr-xr-x | test/test_all.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/test_all.py b/test/test_all.py index 65a30c69..86d40bcb 100755 --- a/test/test_all.py +++ b/test/test_all.py @@ -18,6 +18,7 @@ TAGS = {"regression": "REGRESSION", # Regression tests "tcc": "TCC", # TCC dependency is required "z3": "Z3", # Z3 dependecy is needed "qemu": "QEMU", # QEMU tests (several tests) + "cparser": "CPARSER", # pycparser is needed } # Regression tests @@ -521,6 +522,14 @@ testset += ExampleExpression(["solve_condition_stp.py", Example.get_sample("simple_test.bin")], products=["graph_instr.dot", "out.dot"]) +testset += ExampleExpression(["access_c.py", Example.get_sample("human.bin")], + depends=[test_human], + products=["graph_irflow.dot"], + tags=[TAGS["cparser"]]) + +testset += ExampleExpression(["expr_c.py"], + tags=[TAGS["cparser"]]) + for script in [["basic_op.py"], ["basic_simplification.py"], ["simplification_tools.py"], @@ -743,6 +752,16 @@ By default, all tag are considered." % ", ".join(TAGS.keys()), default="") "Z3 and its python binding are necessary for TranslatorZ3." if TAGS["z3"] not in exclude_tags: exclude_tags.append(TAGS["z3"]) + + # Handle pycparser dependency + try: + import pycparser + except ImportError: + print "%(red)s[PYCPARSER]%(end)s " % cosmetics.colors + \ + "pycparser are necessary for Objc." + if TAGS["cparser"] not in exclude_tags: + exclude_tags.append(TAGS["cparser"]) + test_ko = [] test_ok = [] |