Update all integration tests and debug platform parsing

This commit is contained in:
Loic Guegan 2022-09-13 15:49:38 +02:00
parent 17bfda379b
commit be6dafcd10
61 changed files with 167 additions and 753 deletions

View file

@ -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: