mirror of
https://github.com/RRZE-HPC/OSACA.git
synced 2026-01-04 10:10:08 +01:00
fixed bug in tests and removed unused imports
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
import base64
|
|
||||||
import os
|
import os
|
||||||
import pickle
|
import pickle
|
||||||
import re
|
import re
|
||||||
|
|||||||
@@ -1,10 +1,7 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
import os.path
|
import os.path
|
||||||
from pathlib import Path
|
|
||||||
import hashlib
|
|
||||||
|
|
||||||
DATA_DIRS = [os.path.expanduser('~/.osaca/data'),
|
DATA_DIRS = [os.path.expanduser('~/.osaca/data'), os.path.join(os.path.dirname(__file__), 'data')]
|
||||||
os.path.join(os.path.dirname(__file__), 'data')]
|
|
||||||
CACHE_DIR = os.path.expanduser('~/.osaca/cache')
|
CACHE_DIR = os.path.expanduser('~/.osaca/cache')
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ class TestFrontend(unittest.TestCase):
|
|||||||
path_to_yaml=os.path.join(self.MODULE_DATA_DIR, 'csx.yml')
|
path_to_yaml=os.path.join(self.MODULE_DATA_DIR, 'csx.yml')
|
||||||
)
|
)
|
||||||
self.machine_model_tx2 = MachineModel(
|
self.machine_model_tx2 = MachineModel(
|
||||||
arch='tx2.yml'
|
arch='tx2'
|
||||||
)
|
)
|
||||||
self.semantics_csx = ArchSemantics(
|
self.semantics_csx = ArchSemantics(
|
||||||
self.machine_model_csx, path_to_yaml=os.path.join(self.MODULE_DATA_DIR, 'isa/x86.yml')
|
self.machine_model_csx, path_to_yaml=os.path.join(self.MODULE_DATA_DIR, 'isa/x86.yml')
|
||||||
|
|||||||
Reference in New Issue
Block a user