An Interface Static Test Method for POSIX Standard
Aiming at the interface compliance test process of the POSIX standard of the operating system,an interface static test method for POSIX standard based on the 1003.1—2017 standard and the regular expression is proposed. Firstly,the interface information is extracted based on the 1003.1—2017 standard and the interface information library of the POSIX standard is formed. Then,regular expressions are designed according to the interface information,and regular expressions match the interface information,and the static test script is automatically generated through the matching result. Next,the static test script set is compiled on the operating system under test,and based on the compilation output information,whether the operating system under test provides function interfaces that conform to the POSIX standard is determined. Finally,taking a domestic embedded operating system as the test object,static test scripts are selected and tested,and according to the compilation information,whether the POSIX function interface declaration provided by the operating system meets the standard can be determined.
software testingPOSIXregular expressiontest scriptoperating system