diff options
| author | Ajax <commial@gmail.com> | 2018-12-03 15:57:17 +0100 |
|---|---|---|
| committer | Ajax <commial@gmail.com> | 2018-12-04 12:27:25 +0100 |
| commit | dfa0c750566dbb7a854bbc6b90920b96865fe68c (patch) | |
| tree | 1d0b8a7389b312d46b1f04926fbf0034121ee173 | |
| parent | 7b69ac4c84c1cdbf3d54f431ae0f948ea25f679e (diff) | |
| download | miasm-dfa0c750566dbb7a854bbc6b90920b96865fe68c.tar.gz miasm-dfa0c750566dbb7a854bbc6b90920b96865fe68c.zip | |
Tests/QEMU-x86_64: Enable currently supported tests
| -rwxr-xr-x | test/test_all.py | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/test/test_all.py b/test/test_all.py index 7ea55235..d2aa5d20 100755 --- a/test/test_all.py +++ b/test/test_all.py @@ -189,6 +189,56 @@ for test_name in QEMU_TESTS: testset += QEMUTest(test_name, jitter, tags=tags) +class QEMUTestx86_64(QEMUTest): + SAMPLE_NAME = "test-x86_64" + SCRIPT_NAME = "testqemu64.py" + EXPECTED_PATH = "expected_x86_64" + + +# Test name -> supported jitter engines +QEMU_TESTS_x86_64 = [ + "adc", + "add", + "and", + "btc", + "bt", + "btr", + "bts", + "cmp", + "conv", + "dec", + "inc", + "jcc", + "lea", + "misc", + "mul", + "neg", + "not", + "or", + "rcl", + "rcr", + "rol", + "ror", + "sar", + "sbb", + "shld", + "shl", + "shrd", + "shr", + "string", + "sub", + "xor", + # Unsupported + # "sse", "floats", "loop", "xchg", "fxsave" +] + + +for test_name in QEMU_TESTS_x86_64: + for jitter in QEMUTestx86_64.jitter_engines: + tags = [TAGS[jitter]] if jitter in TAGS else [] + testset += QEMUTestx86_64(test_name, jitter, tags=tags) + + ## Semantic class SemanticTestAsm(RegressionTest): """Assemble an asm file""" |