Abstract:RISC-V has received widespread attention from the academic and industrial communities due to its characteristics of simplicity, open source, and customization.The software ecosystem surrounding RISC-V is gradually being perfected.In September 2021, the RISC-V Committee released version 1.0 of the RISC-V Vector Extension(RVV), which provides standard for optimizing data-level parallelism for RISC-V and some algorithm libraries(such as OpenCV)have already started the RVV-oriented porting work.The development and porting of algorithm libraries are based on clear function prototypes and semantic specifications, usually with implementations of the base(scalar)version as reference, and the development of vector version algorithms must conform to specifications to ensure compatibility.In light of this, this research proposed an automated testing technology for RVV algorithm libraries, which generates test data that conforms to the specifications by parsing the function prototypes, analyzes and compares the test results of the vector algorithm library with the reference implementation to provide test conclusions, and achieves automation testing of the algorithm library.Compared with traditional automation testing frameworks, the method proposed can save the work from manually writing test cases and provide design specifications for the target under test.The experiments show that this method can effectively test RVV algorithm libraries.