diff options
| author | Camille Mougey <camille.mougey@cea.fr> | 2015-02-16 17:00:54 +0100 |
|---|---|---|
| committer | Camille Mougey <camille.mougey@cea.fr> | 2015-02-16 17:00:54 +0100 |
| commit | 98ff3797626fa942833a171f8803bd10b9cd97e3 (patch) | |
| tree | d221608d806aeb666e3249fefde8a1fae7e73182 /test/test_all.py | |
| parent | 13a3fcbb168589703d56d6c36312d788f68786e3 (diff) | |
| download | miasm-98ff3797626fa942833a171f8803bd10b9cd97e3.tar.gz miasm-98ff3797626fa942833a171f8803bd10b9cd97e3.zip | |
TestAll: Never launch tests from `miasm2` root (files are used before modules)
Diffstat (limited to 'test/test_all.py')
| -rw-r--r-- | test/test_all.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/test/test_all.py b/test/test_all.py index 5f0721fc..a2fd6df3 100644 --- a/test/test_all.py +++ b/test/test_all.py @@ -48,13 +48,12 @@ for script in ["x86/sem.py", class SemanticTestAsm(RegressionTest): """Assemble an asm file""" - shellcode_script = os.path.join("example", "asm", "shellcode.py") + shellcode_script = os.path.join("..", "example", "asm", "shellcode.py") container_dct = {"PE": "--PE"} def __init__(self, arch, container, *args, **kwargs): super(SemanticTestAsm, self).__init__(*args, **kwargs) - self.base_dir = os.path.join(self.base_dir, "..") - sample_dir = os.path.join("test", "samples", arch) + sample_dir = os.path.join("samples", arch) base_filename = os.path.join(sample_dir, self.command_line[0]) input_filename = base_filename + ".S" output_filename = base_filename + ".bin" @@ -70,12 +69,11 @@ class SemanticTestExec(RegressionTest): """Execute a binary file""" launcher_dct = {("PE", "x86_64"): "sandbox_pe_x86_64.py"} - launcher_base = os.path.join("example", "jitter") + launcher_base = os.path.join("..", "example", "jitter") def __init__(self, arch, container, address, *args, **kwargs): super(SemanticTestExec, self).__init__(*args, **kwargs) - self.base_dir = os.path.join(self.base_dir, "..") - sample_dir = os.path.join("test", "samples", arch) + sample_dir = os.path.join("samples", arch) base_filename = os.path.join(sample_dir, self.command_line[0]) input_filename = base_filename + ".bin" launcher = os.path.join(self.launcher_base, |