Wenyong Huang 724858c731 Update wasm app build scripts for wasi-sdk-12 and refine interpreter (#481) 5 年之前
..
framework 01e85144f4 Enable aarch64 support, add component test framework and test suite (#211) 5 年之前
harness 01e85144f4 Enable aarch64 support, add component test framework and test suite (#211) 5 年之前
host-clients 01e85144f4 Enable aarch64 support, add component test framework and test suite (#211) 5 年之前
suites 724858c731 Update wasm app build scripts for wasi-sdk-12 and refine interpreter (#481) 5 年之前
README.md 01e85144f4 Enable aarch64 support, add component test framework and test suite (#211) 5 年之前
__init__.py 01e85144f4 Enable aarch64 support, add component test framework and test suite (#211) 5 年之前
set_dev_env.sh 01e85144f4 Enable aarch64 support, add component test framework and test suite (#211) 5 年之前
start.py 01e85144f4 Enable aarch64 support, add component test framework and test suite (#211) 5 年之前

README.md

Component Test

The purpose of this test suite is to verify the basic components of WAMR work well in combination. It is highly recommended to run pass all suites before each commitment.

Prerequisites

  • clang is available to build wasm application.
  • python is installed to run test script.

Run the test

start.py [-h] [-s SUITE_ID [SUITE_ID ...]] [-t CASE_ID [CASE_ID ...]]
              [-n REPEAT_TIME] [--shuffle_all]
              [--cases_list CASES_LIST_FILE_PATH] [--skip_proc]
              [-b BINARIES] [-d] [--rebuild]

It builds out the simple project binary including WAMR runtime binary simple and the testing tool host_tool before running the test suites.

Test output is like:

Test Execution Summary:
        Success:              8
        Cases fails:          0
        Setup fails:          0
        Case load fails:      0


------------------------------------------------------------
The run folder is [run-03-23-16-29]
that's all. bye
kill to quit..
Killed

The detailed report and log is generated in run folder. The binaries copy is also put in that folder.

Usage samples

Run default test suite:


Rebuild all test apps and then run default test suite:
</br>

python start.py --rebuild```

Run a specified test suite:


Run a specified test case:
</br>

python start.py -t 01-install```