AutoTest Usage Guide
AutoTest provides a flexible automated testing solution that supports customizing stress test duration and test iterations via the configuration file config.ini. It also allows users to extend test cases according to their specific requirements, thereby fulfilling diverse testing needs. Developed on top of driver unit tests, this tool implements automated testing functionality while remaining independent from functional unit tests and fully reusing existing code resources.
AutoTest Directory Structure
AutoTest uses the startup.sh script to read the config/config.ini configuration file to launch tests. Users can customize test content by modifying the config/config.ini file. When performing stability or stress tests across multiple functionalities, this approach significantly reduces repetitive configuration efforts. Currently, AutoTest has already reused the following test items from driver functional unit tests:
#:~/sdk/source/hobot-multimedia-samples/debian/app/multimedia_samples/chip_base_test$ tree
.
├── 01_cpu_bpu_ddr
│ └── scripts
│ └── stress_test.sh # CPU-BPU-DDR stress test
├── 02_emmc
│ └── emmc_stability_test.sh # eMMC stability test
├── 03_uart_test
│ └── uartstress.sh # UART stress test
├── 04_spi_test
│ └── spistress.sh # SPI stress test
├── config
│ └── config.ini # Configuration file for automated testing
└── startup.sh # Script for auto-start configuration