This script is designed to run tests for different architectures, specifically RISC-V and MIPS. The script automates the testing process by running various test categories and comparing the actual output with expected results. Its main use is regression testing.
The script can be run from the command line to execute tests on different architectures with options for filtering based on categories.
python test.py-
--arch: Filter tests by architecture. Acceptable values areriscvormips.python test.py --arch riscv
-
--category: Filter by test category (e.g., examples, syscalls).python test.py --category examples
-
--list: List available architectures and categories.python test.py --list
-
--nocolor: Disable colored output for test results. Useful when saving the output to a filepython test.py --nocolor
To save the output:
python test.py --nocolor > report.txt