Use wabt binary instead of building from source in spec test (#1700)
Directly download wabt binary and use it in spec test instead of building it from source to fasten the spec test.
This commit is contained in:
@ -121,7 +121,7 @@ def test_case(
|
||||
):
|
||||
return True
|
||||
|
||||
CMD = ["python", "runtest.py"]
|
||||
CMD = ["python3", "runtest.py"]
|
||||
CMD.append("--wast2wasm")
|
||||
CMD.append(WAST2WASM_CMD)
|
||||
CMD.append("--interpreter")
|
||||
@ -270,9 +270,9 @@ def test_suite(
|
||||
verbose_flag,
|
||||
)
|
||||
successful_case += 1
|
||||
except Exception:
|
||||
except Exception as e:
|
||||
failed_case += 1
|
||||
break
|
||||
raise e
|
||||
|
||||
print(
|
||||
f"IN ALL {case_count} cases: {successful_case} PASS, {failed_case} FAIL, {case_count - successful_case - failed_case} SKIP"
|
||||
|
||||
@ -413,6 +413,7 @@ function spec_test()
|
||||
fi
|
||||
|
||||
cd ${WORK_DIR}
|
||||
echo "python3 ./all.py ${ARGS_FOR_SPEC_TEST} | tee -a ${REPORT_DIR}/spec_test_report.txt"
|
||||
python3 ./all.py ${ARGS_FOR_SPEC_TEST} | tee -a ${REPORT_DIR}/spec_test_report.txt
|
||||
[[ ${PIPESTATUS[0]} -ne 0 ]] && exit 1
|
||||
cd -
|
||||
|
||||
Reference in New Issue
Block a user