mirror of
https://gitlab.com/manzerbredes/esds.git
synced 2025-04-19 03:59:45 +00:00
Update all integration tests and debug platform parsing
This commit is contained in:
parent
17bfda379b
commit
be6dafcd10
61 changed files with 167 additions and 753 deletions
|
@ -10,12 +10,12 @@ tests_path = os.path.dirname(os.path.realpath(__file__))
|
|||
for file in os.listdir(tests_path):
|
||||
current_test_path=os.path.join(tests_path,file)
|
||||
if os.path.isdir(current_test_path):
|
||||
simulator_path=os.path.join(current_test_path,"simulator.py")
|
||||
platform_path=os.path.join(current_test_path,"platform.yaml")
|
||||
out_path=os.path.join(current_test_path,"out")
|
||||
print("- %-40s%s " % (file,"=>"),end='')
|
||||
try:
|
||||
start_at=time.time()
|
||||
out=subprocess.check_output([sys.executable, simulator_path],stderr=subprocess.STDOUT,timeout=tests_timeout,encoding="utf-8")
|
||||
out=subprocess.check_output(["esds", "run", platform_path],stderr=subprocess.STDOUT,timeout=tests_timeout,encoding="utf-8")
|
||||
out_expected=open(out_path).read()
|
||||
end_at=time.time()
|
||||
if out_expected != out:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue