diff options
| author | Ajax <commial@gmail.com> | 2018-08-29 16:47:48 +0200 |
|---|---|---|
| committer | Ajax <commial@gmail.com> | 2018-08-30 08:10:45 +0200 |
| commit | a5d6b89ec71b088011888636f87a5cea07c55af7 (patch) | |
| tree | 7dac55812688fc666699bd0ca061a1caa8f6c469 | |
| parent | 7c0d412120abbcfaa51fdb1dd231a27595c873ed (diff) | |
| download | miasm-a5d6b89ec71b088011888636f87a5cea07c55af7.tar.gz miasm-a5d6b89ec71b088011888636f87a5cea07c55af7.zip | |
Mark Linux specific tests with a tag
| -rwxr-xr-x | test/test_all.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/test/test_all.py b/test/test_all.py index 48ac04ca..a3661081 100755 --- a/test/test_all.py +++ b/test/test_all.py @@ -2,8 +2,9 @@ import argparse from distutils.spawn import find_executable -import time import os +import platform +import time import tempfile from utils.test import Test @@ -20,6 +21,7 @@ TAGS = {"regression": "REGRESSION", # Regression tests "z3": "Z3", # Z3 dependecy is needed "qemu": "QEMU", # QEMU tests (several tests) "cparser": "CPARSER", # pycparser is needed + "linux": "LINUX", # Test must be run on a Linux } # Regression tests @@ -688,7 +690,7 @@ for jitter in ExampleJitter.jitter_engines: products=[Example.get_sample("box_upx_exe_unupx.bin")], tags=tags.get(jitter, [])) if jitter != "python": - tags = tags.get(jitter, []) + [TAGS["long"]] + tags = tags.get(jitter, []) + [TAGS["long"], TAGS["linux"]] ls_path = find_executable("ls") file_path = find_executable("file") # Launch simulation of "file /bin/ls", with access to libs and ld info @@ -855,6 +857,11 @@ By default, all tag are considered." % ", ".join(TAGS.keys()), default="") if TAGS["cparser"] not in exclude_tags: exclude_tags.append(TAGS["cparser"]) + # Handle Linux tests + if platform.system() != "Linux": + if TAGS["linux"] not in exclude_tags: + exclude_tags.append(TAGS["linux"]) + test_ko = [] test_ok = [] |