| With the continuous increase in the number of domestic open source software,especially open source operating systems,the iteration and version upgrade cycles are gradually shortened,and the testing requirements are becoming more and more diverse,so building a highly integrated and unified automated testing platform has become the primary method to solve related problems.Furthermore,open source software has a series of problems or challenges such as fast cycle iteration,scattered developers,high complexity and difficulty in locating defects.Therefore,it is of great practical significance and practical value to research an automatic testing and defect location system for open source software.The research requirements of automatic testing and defect location in this paper come from the real-time embedded operating system SylixOS test project.In the process of project testing,the designed test cases need to be uploaded to the target machine one by one for execution;due to the limited number of hardware resources of the testing machine and the high repetition of manual operations,so the whole testing work is not efficient.Therefore,this paper focuses on the domestic open source operating system SylixOS,analyzes and studies the relevant automatic testing and defect location technology for open source software in detail,research and build the corresponding prototype system to improve the testing efficiency.The contributions and innovative work of this paper mainly includes:(1)Based on lkp-tests framework,an automated testing prototype system for the SylixOS system is designed and implemented.The prototype system implements automation throughout the entire testing process,including: automatically compiling system kernel source code,automatically building target test environment based on ARM or x86 instruction set architecture,automatically executing test cases in batches,and executing defect location function for failed use cases.(2)In-depth research and analysis of automatic testing and defect location technology,especially optimizing the accuracy of the compilation defect location function,by modifying the Make tool software,and more compilation error information can be obtained when compiling the source code,so that the binary defect location function can be more accurately performed.(3)Based on the SylixOS automatic testing prototype system,this paper also designs and implements system calls of SylixOS task management module and signal synchronization and communication module.The Automated test prototype system in this paper was built on Taishan server installed with Open Euler20.03 operating system,and supports the test of SylixOS based on the QEMU virtual machine.The test results of automated testing prototype system verify the usability of the automated testing method and defect location technology in this paper,which can be expected to provide testing basis and reference for the iterative development of domestic operating systems and basic software. |