Method and system for realizing compatibility test of operating system and intelligent processor

By designing methods and systems for initialization, execution and analysis modules, automated compatibility testing between the operating system and the intelligent processor is realized, solving the problem of low automation in the existing technology, and improving testing efficiency and accuracy.

CN119473925AInactive Publication Date: 2025-02-18SHANDONG LANGCHAO YUNTOU INFORMATION TECH CO LTD

Patent Information

Application Number
CN202510052217.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-14
Publication Date
2025-02-18
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The compatibility testing methods between existing operating systems and smart processors are not very automated, and the testing methods are isolated and difficult to accommodate.

Method used

A method and system are designed to realize automated compatibility testing between the operating system and the intelligent processor by establishing initialization modules, execution modules and analysis modules. The initialization module obtains basic information by identifying the object to be tested, generates the environment initialization configuration and injects the test main program. The execution module automatically identifies the object to be tested, selects the set of intelligent processor models to be tested, and automatically performs configuration and testing. The analysis module uses test results to generate test reports, and summarizes test results to generate multi-dimensional compatibility reports.

Benefits of technology

It realizes automatic and fast compatibility testing between Linux operating systems and intelligent processors, improves the degree of automation and efficiency of tests, and reduces manual intervention and testing costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119473925A_ABST
    Figure CN119473925A_ABST
Patent Text Reader

Abstract

The invention discloses a method and a system for realizing compatibility test of an operating system and an intelligent processor, and belongs to the technical field of operating systems. The method comprises the following steps: establishing an initialization module, acquiring basic information by identifying a tested object, generating an environment initialization configuration description and a program based on the basic information and the supplementary data, injecting the description and the program into a test main program, and establishing association in a test database; establishing an execution module, automatically identifying a tested object, selecting a to-be-tested intelligent processor model set, and automatically executing configuration and test in combination with test database information; and establishing an analysis module, generating a test report of the tested object by using the test results, and summarizing the test results to generate a multi-dimensional compatible report. According to the invention, automatic and rapid compatibility testing of the Linux operating system and the intelligent processor can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of operating systems, and in particular to a method and system for implementing compatibility testing between an operating system and an intelligent processor. Background Art

[0002] Intelligent technology is developing rapidly, constantly creating new products, services and business models, and enabling industrial upgrading in more and more scenarios. As one of the three key elements of the intelligent era, the establishment and strengthening of computing power infrastructure is the key to the development and application of intelligent technology. The wide compatibility of the Linux operating system and intelligent processors is conducive to the construction of computing power infrastructure.

[0003] At present, the compatibility testing methods for operating systems and intelligent processors are relatively mature, but there are problems such as low automation and isolated testing methods. Summary of the invention

[0004] The technical task of the present invention is to address the above deficiencies and provide a method and system for implementing compatibility testing between an operating system and an intelligent processor, which can realize automatic and fast compatibility testing between a Linux operating system and an intelligent processor.

[0005] The technical solution adopted by the present invention to solve its technical problem is: A method for implementing compatibility testing between an operating system and an intelligent processor, the implementation of the method comprising: (1) Establish an initialization module to obtain basic information by identifying the object under test, manually supplement the unidentified information, generate environment initialization configuration instructions and programs based on the basic information and supplementary information, and inject them into the test main program, and establish associations in the test database; (2) Establish an execution module to automatically identify the object under test, select a set of intelligent processor models to be tested, and automatically perform configuration and testing based on the test database information; (3) Establish an analysis module, use the test results to generate a test report for the object under test, and summarize the test results to generate a multi-dimensional compatibility report.

[0006] Furthermore, the initialization module, Use local, remote databases and remote warehouses to ensure data read and write efficiency and achieve data and program integrity; Initialize the configuration of the operating system before testing using automatic identification and predefined methods; Use text information extraction technology to obtain the configuration of the intelligent processor and generate an automatic configuration program; Use knowledge base technology to accumulate relevant knowledge about operating systems and intelligent processor configurations to improve applicability in complex and diverse test environments; Use iterative data and program methods to improve and enrich test coverage through continuous iterative evolution.

[0007] The establishment of the initialization module is specifically implemented as follows: (1.1) Establish a database to store basic information: Basic information includes the name, version, type, server architecture, etc. of the Linux operating system, the series and model of the intelligent processor, etc., which is used as metadata for environment initialization, knowledge base establishment, test execution, and result analysis; Establish a local database and use JSON files to store basic information. Using a local database can simplify the implementation of the test system and facilitate the use of the test system in an offline environment. You can also selectively establish a remote database to regularly synchronize local data to the remote database and synchronize the program to the remote code library to ensure that data and programs are not lost. JSON files are easy to read and write, and also easy to synchronize data. (1.2) Identify the basic information of the Linux operating system: Obtain basic operating system information through common operating system commands, including name, version, type, server architecture, etc.; (1.3) Manage Linux operating system initialization configuration: Maintain operating system software source information and configuration programs. Software source information includes local warehouses and remote warehouses to adapt to offline and online environments. According to the classification of Linux operating systems, including Redhat series systems, Debian series systems and other systems, with the help of knowledge base recommendations, maintain different configuration programs. When executing tests, software source configuration can be automatically performed on the test environment according to the operating system type, name and version; configuration programs are written into Shell files; (1.4) Extract the initialization configuration of the intelligent processor: The initialization configuration of the intelligent processor is obtained by combining automatic extraction and manual extraction: using the automatic extraction method, the user manual related to the intelligent processor is uploaded to the specified directory, and the configuration instructions and existing scripts in the manual are extracted through text information extraction technology; using the manual extraction method, for processors that cannot be extracted due to lack of user manuals, with the help of knowledge base recommendations, the configuration is manually searched and the necessary scripts are written, the configuration instructions are written into the Markdown file, and the script is written into the temp Shell file; (1.5) Convert the initialization configuration to the knowledge base: Deposit operating system configuration, intelligent processor configuration and programs into the knowledge base to provide configuration and program generation references for other types of environments; (1.6) Generate intelligent processor configuration script: The configuration script includes environment check and environment configuration, which are implemented through scripting languages ​​such as Shell. Combined with the initialization configuration extracted in step (1.4), by defining standard methods, input parameters and return values ​​for environment check and configuration, and defining a prompt template, an executable script is generated using intelligent content generation technology. The prompt template is such as "Please combine the following configuration description to generate an executable Shell script. The script should contain two functions: environment check check and environment configuration config. Each function returns the execution status code code and execution return information. Configuration description:<temp Shell content> "; The generated script is written to the Shell file; (1.7) Write a test program for the intelligent processor: Abstract the test process, divide it into driver test and intelligent framework test, and write specific implementation for each intelligent processor; classify the test content, including general function test and personalized function test, to achieve the reuse of common test programs; (1.8) Save basic information to the database: Write the basic information of Linux operating system and intelligent processor into the test database; (1.9) Inject environment configuration and scripts into the package: Put the configuration description file and script file into the test program package, store them in directories according to the operating system name and processor name, put them into the v1 subdirectory under the directory for the first time, write the v1 identifier into the test database, and associate them with the operating system and processor; when there are different versions later, create v2, v3...vN subdirectories in sequence to distinguish them, and associate them in the database; (1.10) Iterate databases and packages: Whenever a new operating system and processor are initialized, the local database is synchronized to the remote database and remote code repository to improve and enrich the test coverage through continuous self-iteration.

[0008] Furthermore, the execution module, Automatically load the test script to perform the test. After the test is completed, save the test log and test results, and automatically archive the current configuration of the environment. Automatically perform batch testing. After completing the test of an intelligent processor, call the configuration script to restore the configuration, clean up the environment, and then proceed to the next test.

[0009] The establishment of the execution module is specifically implemented as follows: (2.1) Identify the object to be measured: Identify the operating system name and version, and match the environment configuration and script version from the local database; scan the operating system hardware device, combine the intelligent processor information loaded from the local database, display the matched intelligent processor information for testers to choose, and match the corresponding processor configuration and script from the local database according to the tester's choice; (2.2) Configuration environment: According to the identified tested objects and related configurations and scripts, for those that require manual configuration, the configuration description Markdown file is loaded and displayed, prompting the user to configure and mark the completion. After the user marks the completion, the script check is automatically executed; for scripted configurations, the test main program automatically loads the script Shell file and executes it; (2.3) Execution test: According to the identified tested object and its script, the main test program automatically loads the test script Shell file for testing; after the test is completed, the test log and test results are saved, and the current configuration of the environment is automatically archived; (2.4) Batch testing: After completing the test of one intelligent processor, the test main program calls the configuration script to restore the configuration, clean up the environment, and then proceed to test the next intelligent processor.

[0010] Furthermore, the analysis module includes: Define the test result template, calculate and reorganize the test results according to the template to form the transformation results and render the result template to generate a directly usable compatibility result report; The test results are summarized to form compatibility results in the operating system and intelligent processor dimensions.

[0011] The establishment of the analysis module is specifically implemented as follows: (3.1) Generate test report: Define the test result template, and pre-set the test display method, display format, and display data: the display methods include HTML, Doc, etc., the display format includes general text content and text style, and the display data includes direct test results and conversion results, etc. Generate a result report. The test main program loads the result template, calculates and reorganizes the test results according to the template to form a conversion result, and then uses the test result data to render the result template to generate a directly usable Linux operating system X version and intelligent processor Y model compatibility result report; (3.2) Summarize test results: Summarize the test results to form compatibility results in the operating system dimension and the intelligent processor dimension; in the operating system dimension, summarize the compatibility of each operating system with all tested intelligent processors including drivers, intelligent frameworks, etc.; in the intelligent processor dimension, summarize the compatibility of each intelligent processor with all operating systems and different versions.

[0012] The present invention also claims a system for implementing compatibility testing between an operating system and an intelligent processor, comprising: The initialization module is used to obtain basic information by identifying the object under test, generate environment initialization configuration instructions and programs based on the basic information and supplementary materials, inject them into the test main program, and establish associations in the test database; An execution module is used to automatically identify the object to be tested, select a set of intelligent processor models to be tested, and automatically perform configuration and testing in combination with the test database information; The analysis module is used to generate a test report of the tested object using the test results and to summarize the test results to generate a multi-dimensional compatible report; The system realizes automatic compatibility testing between the operating system and the intelligent processor through the above method.

[0013] The present invention also claims a device for implementing compatibility testing between an operating system and an intelligent processor, comprising: at least one memory and at least one processor; The at least one memory is used to store a machine-readable program; The at least one processor is used to call the machine-readable program to implement the above method.

[0014] The present invention also claims protection for a computer-readable medium having computer instructions stored thereon, which, when executed by a processor, causes the processor to perform the above method.

[0015] Compared with the prior art, the method and system for implementing compatibility testing between an operating system and an intelligent processor of the present invention have the following beneficial effects: The automatic initialization method defined in the present invention can simplify the configuration of the operating system before testing by automatic identification and pre-definition, and the text information extraction method can quickly obtain the configuration of the intelligent processor and generate an automatic configuration program, thereby reducing the cumbersome steps of initializing the test environment in the past.

[0016] The test system construction method using knowledge base technology defined in the present invention can accumulate knowledge related to server, operating system and intelligent processor configuration, provide reference for different environments, and thus improve the applicability of the test method in complex and diverse test environments.

[0017] The present invention uses the idea of ​​iterative evolution to continuously increase support for operating system types and intelligent processor models, and can continuously improve test coverage.

[0018] The automatic testing and batch testing methods defined in the present invention can reduce manual intervention in the testing process and shorten the testing time through automatic testing; and can reuse the common testing environment through batch testing to improve the testing efficiency.

[0019] The test result analysis method defined in the present invention automatically generates result reports through templates, replacing the previous method of manually writing test reports, thereby reducing test costs; and generates multi-dimensional results by aggregating data, thereby reducing the complexity of data sorting. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 It is a flowchart of a method for implementing compatibility testing between an operating system and an intelligent processor provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0021] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.

[0022] The embodiment of the present invention provides a method for implementing compatibility testing between an operating system and an intelligent processor, realizing automated compatibility testing between a Linux operating system and an intelligent processor, and continuously enriching and improving test coverage by using iterative evolution. The method supports automatic initialization of test environment configuration, supports sedimentation of environment configuration knowledge base to provide reference for different environments, supports automatic and batch testing to improve test efficiency, and supports test result report generation and data aggregation.

[0023] The implementation of this method includes: 1. Establish an initialization module, obtain basic information by identifying the object under test, manually supplement the unidentified information, generate environment initialization configuration instructions and programs based on the basic information and supplementary information, and inject them into the test main program, and establish associations in the test database.

[0024] Using a local, remote database and remote warehouse approach can ensure data reading and writing efficiency while achieving data and program integrity.

[0025] Use automatic identification and predefined methods to initialize the configuration of the operating system before testing.

[0026] Using text information extraction technology, the configuration of the intelligent processor can be quickly obtained and an automatic configuration program can be generated.

[0027] Use knowledge base technology to accumulate relevant knowledge about operating systems and intelligent processor configurations to improve applicability in complex and diverse test environments.

[0028] Use iterative data and program methods to improve and enrich test coverage through continuous iterative evolution.

[0029] The establishment of the initialization module is specifically implemented as follows: (1) Establish a database to store basic information.

[0030] Basic information includes the name, version, type, server architecture, etc. of the Linux operating system, the series and model of the intelligent processor, etc., which is used as metadata for environment initialization, knowledge base establishment, test execution, and result analysis.

[0031] Establish a local database and use JSON files to store basic information. Using a local database can simplify the implementation of the test system and facilitate the use of the test system in an offline environment. At the same time, you can also establish a remote database and regularly synchronize local data to the remote database, and synchronize the program to the remote code library to ensure that data and programs are not lost. JSON files are easy to read and write, and also easy to synchronize data.

[0032] (2)Identify the basic information of the Linux operating system.

[0033] The basic information of the operating system, such as name, version, type, and server architecture, can be obtained through common operating system commands.

[0034] (3) Manage the initialization configuration of the Linux operating system.

[0035] Maintain operating system software source information and configuration programs. Software source information includes local warehouses and remote warehouses to adapt to offline and online environments. According to the classification of Linux operating systems, Redhat series systems, Debian series systems and other systems, with the help of knowledge base recommendations, maintain different configuration programs. When performing tests, you can automatically configure the software source in the test environment according to the operating system type, name and version. The configuration program is written to the Shell file.

[0036] (4) Extract the initialization configuration of the intelligent processor.

[0037] The initialization configuration of the intelligent processor is obtained by combining automatic extraction and manual extraction. Using the automatic extraction method, upload the user manual related to the intelligent processor to the specified directory, and extract the configuration instructions and existing scripts in the manual through text information extraction technology. Using the manual extraction method, for processors that cannot be extracted due to the lack of user manuals, with the help of knowledge base recommendations, manually search for configurations and write necessary scripts. The configuration instructions are written to the Markdown file, and the scripts are written to the temp Shell file.

[0038] (5) Convert the initialization configuration into the knowledge base.

[0039] The operating system configuration, intelligent processor configuration and program are deposited into the knowledge base to provide configuration and program generation reference for other types of environments.

[0040] (6) Generate intelligent processor configuration script.

[0041] Configuration scripts usually include two aspects, namely environment check and environment configuration, which are implemented through scripting languages ​​such as Shell. Combined with the initialization configuration extracted in step (4), by defining standard methods, input parameters and return values ​​for environment check and configuration, and defining a Prompt template, an executable script is generated using intelligent content generation technology. The Prompt template is such as "Please combine the following configuration description to generate an executable Shell script. The script should contain two functions: environment check check and environment configuration config. Each function returns the execution status code code and execution return information. Configuration description:<temp Shellcontent> The generated script is written to the shell file.

[0042] (7) Write a test program for the intelligent processor.

[0043] Abstract the test process, divide it into driver test and intelligent framework test, and write specific implementation for each intelligent processor. Categorize the test content, including general function test and personalized function test, to achieve the reuse of common test programs.

[0044] (8) Save basic information to the database.

[0045] Write the basic information of Linux operating system and intelligent processor into the test database.

[0046] (9) Inject environment configuration and scripts into the package.

[0047] Put the configuration description file and script file into the test package, store them in directories according to the operating system name and processor name, and put them into the v1 subdirectory under the directory for the first time, and write the v1 identifier into the test database to associate them with the operating system and processor. When there are different versions later, create v2, v3...vN subdirectories in sequence to distinguish them and associate them in the database.

[0048] (10)Iterate databases and packages.

[0049] Whenever a new operating system and processor are initialized, the local database is synchronized to the remote database and remote code repository to improve and enrich the test coverage through continuous self-iteration.

[0050] 2. Establish an execution module to automatically identify the object under test, select a set of intelligent processor models to be tested, and automatically perform configuration and testing based on the test database information.

[0051] Automatically load the test script to perform the test. After the test is completed, save the test log and test results, and automatically archive the current configuration of the environment. Automatically perform batch testing. After completing the test of an intelligent processor, call the configuration script to restore the configuration, clean up the environment, and then proceed to the next test.

[0052] The establishment of the execution module is specifically implemented as follows: (1) Identify the object to be measured.

[0053] Identify the operating system name and version, and match the environment configuration and script version from the local database. Scan the operating system hardware device, combine the intelligent processor information loaded from the local database, display the matched intelligent processor information for testers to choose, and match the corresponding processor configuration and script from the local database according to the tester's choice.

[0054] (2) Configure the environment.

[0055] According to the identified objects under test and related configurations and scripts, for those that require manual configuration, the configuration description Markdown file is loaded and displayed, prompting the user to configure and mark the completion. After the user marks the completion, the script check is automatically executed; for scripted configurations, the test main program automatically loads the script Shell file and executes it.

[0056] (3) Execute the test.

[0057] According to the identified tested object and its script, the main test program automatically loads the test script Shell file for testing. After the test is completed, the test log and test results are saved, and the current configuration of the environment is automatically archived.

[0058] (4) Batch testing: After completing the test of one intelligent processor, the test main program calls the configuration script to restore the configuration, clean up the environment, and then proceed to test the next intelligent processor.

[0059] 3. Establish an analysis module, use the test results to generate a test report for the object under test, and summarize the test results to generate a multi-dimensional compatibility report.

[0060] Define the test result template, calculate and reorganize the test results according to the template to form the transformation results and render the result template to generate a directly usable compatibility result report; The test results are summarized to form compatibility results in the operating system and intelligent processor dimensions.

[0061] The establishment of the analysis module is specifically implemented as follows: (1) Generate a test report.

[0062] Define the test result template, and pre-set the test display method, display format, and display data. Display methods include HTML, Doc, etc. Display formats include general text content and text style. Display data include direct test results, conversion results, etc.

[0063] Generate a result report. The test main program loads the result template, calculates and reorganizes the test results according to the template to form a conversion result, and then uses the test result data to render the result template to generate a directly usable Linux operating system X version and intelligent processor Y model compatibility result report.

[0064] (2) Summarize the test results.

[0065] Summarize the test results to form compatibility results in the operating system and intelligent processor dimensions. In the operating system dimension, summarize the compatibility of each operating system with all tested intelligent processors, including drivers, intelligent frameworks, etc.; in the intelligent processor dimension, summarize the compatibility of each intelligent processor with all operating systems and different versions.

[0066] An embodiment of the present invention also provides a system for implementing compatibility testing between an operating system and an intelligent processor. The system implements automated compatibility testing between a Linux operating system and an intelligent processor through the method for implementing compatibility testing between an operating system and an intelligent processor described in the above embodiment.

[0067] The system includes: 1. Initialization module, used to obtain basic information by identifying the object under test, generate environment initialization configuration instructions and programs based on the basic information and supplementary materials, inject them into the test main program, and establish associations in the test database.

[0068] Using a local, remote database and remote warehouse approach can ensure data reading and writing efficiency while achieving data and program integrity.

[0069] Use automatic identification and predefined methods to initialize the configuration of the operating system before testing.

[0070] Using text information extraction technology, the configuration of the intelligent processor can be quickly obtained and an automatic configuration program can be generated.

[0071] Use knowledge base technology to accumulate relevant knowledge about operating systems and intelligent processor configurations to improve applicability in complex and diverse test environments.

[0072] Use iterative data and program methods to improve and enrich test coverage through continuous iterative evolution.

[0073] 2. The execution module is used to automatically identify the object under test, select the set of intelligent processor models to be tested, and automatically perform configuration and testing in combination with the test database information.

[0074] Automatically load the test script to perform the test. After the test is completed, save the test log and test results, and automatically archive the current configuration of the environment. Automatically perform batch testing. After completing the test of an intelligent processor, call the configuration script to restore the configuration, clean up the environment, and then proceed to the next test.

[0075] 3. Analysis module, used to generate test reports of the tested objects using test results, and to summarize test results to generate multi-dimensional compatibility reports.

[0076] Define the test result template, calculate and reorganize the test results according to the template to form the transformation results and render the result template to generate a directly usable compatibility result report; The test results are summarized to form compatibility results in the operating system and intelligent processor dimensions.

[0077] The specific implementation of the system to realize the automated test of the compatibility between the Linux operating system and the intelligent processor is as follows: 1. Establish an initialization module, obtain basic information by identifying the object under test, generate environment initialization configuration instructions and programs based on the basic information and supplementary materials, and inject them into the test main program, and establish associations in the test database.

[0078] (1) Establish a database to store basic information. Basic information includes the name, version, type, server architecture, etc. of the Linux operating system, the series and model of the intelligent processor, etc., which is used as metadata for environment initialization, knowledge base establishment, test execution, and result analysis. Establish a local database and use JSON files to store basic information. Using a local database can simplify the implementation of the test system and facilitate the use of the test system in an offline environment. At the same time, a remote database can be established to regularly synchronize local data to the remote database, and synchronize the program to the remote code library to ensure that data and programs are not lost. JSON files are easy to read and write, and also easy to synchronize data.

[0079] (2) Identify the basic information of the Linux operating system. The basic information of the operating system, such as name, version, type, and server architecture, can be obtained through the general commands of the operating system.

[0080] (2) Manage the initial configuration of the Linux operating system. Maintain the operating system software source information and configuration program. The software source information includes local warehouses and remote warehouses to adapt to offline and online environments. According to the classification of Linux operating systems, Redhat, Debian and other systems, with the help of knowledge base recommendations, maintain different configuration programs. When executing tests, the software source configuration can be automatically performed on the test environment according to the operating system type, name and version. The configuration program is written to the Shell file.

[0081] (4) Extract the initialization configuration of the intelligent processor. The initialization configuration of the intelligent processor is obtained by combining automatic extraction and manual extraction. Using the automatic extraction method, upload the user manual related to the intelligent processor to the specified directory, and extract the configuration instructions and existing scripts in the manual through text information extraction technology. Using the manual extraction method, for processors that cannot be extracted due to the lack of user manuals, with the help of knowledge base recommendations, manually search for configurations and write necessary scripts. The configuration instructions are written into the Markdown file, and the scripts are written into the temp Shell file.

[0082] (5) Convert the initialization configuration into the knowledge base. The operating system configuration, intelligent processor configuration and program are deposited into the knowledge base to provide configuration and program generation reference for other types of environments.

[0083] (6) Generate an intelligent processor configuration script. The configuration script usually includes two aspects, namely environment check and environment configuration, which are implemented through scripting languages ​​such as Shell. Combined with the initialization configuration extracted in the previous step, by defining standard methods, input parameters and return values ​​for environment check and configuration, and defining a Prompt template, use intelligent content generation technology to generate an executable script. The Prompt template is such as "Please combine the following configuration description to generate an executable Shell script. The script should contain two functions: environment check check and environment configuration config. Each function returns the execution status code code and execution return information. Configuration description:<temp Shell content> The generated script is written to the shell file.

[0084] (7) Write intelligent processor test programs. Abstract the test process and divide it into driver testing and intelligent framework testing. Write specific implementations for each intelligent processor. Classify test content, including general function testing and personalized function testing, to achieve the reuse of common test programs.

[0085] (8) Save basic information to the database. Write the basic information of the Linux operating system and intelligent processor into the test database.

[0086] (9) Inject environment configuration and scripts into the program package. Place configuration files and script files into the test program package, and store them in directories according to the operating system name and processor name. For the first time, place them in the v1 subdirectory under the directory, and write the v1 identifier into the test database to associate them with the operating system and processor. When there are different versions later, create v2, v3...vN subdirectories in sequence to distinguish them, and associate them in the database.

[0087] (10) Iterate databases and packages. Whenever a new operating system and processor are initialized, the local database is synchronized to the remote database and remote code repository, and the test coverage is improved and enriched through continuous self-iteration.

[0088] 2. Establish an execution module to automatically identify the object under test, select a set of intelligent processor models to be tested, and automatically perform configuration and testing based on the test database information.

[0089] (1) Identify the object under test. Identify the name and version of the operating system, and match the environment configuration and script version from the local database. Scan the operating system hardware device, load the intelligent processor information from the local database, display the matched intelligent processor information for the tester to choose, and match the corresponding processor configuration and script from the local database according to the tester's choice.

[0090] (2) Configuration environment. Based on the identified test objects and related configurations and scripts, for those that require manual configuration, the configuration instructions Markdown file is loaded and displayed, prompting the user to configure and mark the completion. After the user marks the completion, the script check is automatically executed; for scripted configurations, the test main program automatically loads the script Shell file and executes it.

[0091] (3) Execute the test. Based on the identified test object and its script, the test main program automatically loads the test script Shell file for testing. After the test is completed, the test log and test results are saved, and the current configuration of the environment is automatically archived.

[0092] (4) Batch testing. After completing the test of an intelligent processor, the main test program calls the configuration script to restore the configuration, clean up the environment, and then test the next intelligent processor.

[0093] 3. Establish an analysis module, use the test results to generate a test report for the object under test, and summarize the test results to generate a multi-dimensional compatibility report.

[0094] (1) Generate a test report. Define the test result template and pre-set the test display method, display format, and display data. Display methods include HTML, Doc, etc. Display formats include general text content and text styles. Display data include direct test results and conversion results. Generate a result report. The test main program loads the result template, calculates and reorganizes the test results according to the template to form a conversion result, and then uses the test result data to render the result template to generate a directly usable Linux operating system version X and intelligent processor model Y compatibility result report.

[0095] (2) Summarize the test results. Summarize the test results to form compatibility results in the operating system dimension and the intelligent processor dimension. In the operating system dimension, summarize the compatibility of each operating system with all tested intelligent processors, including drivers, intelligent frameworks, etc.; in the intelligent processor dimension, summarize the compatibility of each intelligent processor with all operating systems and different versions.

[0096] An embodiment of the present invention also provides a device for implementing compatibility testing between an operating system and an intelligent processor, comprising: at least one memory and at least one processor; The at least one memory is used to store a machine-readable program; The at least one processor is used to call the machine-readable program to implement the method for implementing compatibility testing between the operating system and the intelligent processor described in the above embodiment.

[0097] The embodiment of the present invention further provides a computer-readable medium, on which computer instructions are stored, and when the computer instructions are executed by a processor, the processor executes the method for implementing the compatibility test between the operating system and the intelligent processor described in the above embodiment. Specifically, a system or device equipped with a storage medium can be provided, on which software program codes for implementing the functions of any of the above embodiments are stored, and a computer (or CPU or MPU) of the system or device is enabled to read and execute the program code stored in the storage medium.

[0098] In this case, the program code itself read from the storage medium can realize the function of any one of the above-mentioned embodiments, and thus the program code and the storage medium storing the program code constitute a part of the present invention.

[0099] The storage medium embodiments for providing the program code include a floppy disk, a hard disk, a magneto-optical disk, an optical disk (such as CD-ROM, CD-R, CD-RW, DVD-ROM, DVD-RAM, DVD-RW, DVD+RW), a magnetic tape, a non-volatile memory card, and a ROM. Alternatively, the program code can be downloaded from a server computer via a communication network.

[0100] In addition, it should be clear that the functions of any of the above embodiments can be implemented not only by executing the program code read by the computer, but also by enabling an operating system operating on the computer to complete part or all of the actual operations based on instructions from the program code.

[0101] In addition, it can be understood that the program code read from the storage medium is written to a memory provided in an expansion board inserted into the computer or to a memory provided in an expansion unit connected to the computer, and then based on the instructions of the program code, a CPU installed on the expansion board or the expansion unit is enabled to perform part or all of the actual operations, thereby realizing the functions of any of the above-mentioned embodiments.

[0102] The present invention has been shown and described in detail above through the accompanying drawings and preferred embodiments. However, the present invention is not limited to these disclosed embodiments. Based on the above multiple embodiments, those skilled in the art can know that the code review means in the above different embodiments can be combined to obtain more embodiments of the present invention, and these embodiments are also within the protection scope of the present invention.

Claims

1. A method for implementing compatibility testing between an operating system and an intelligent processor, characterized in that: The implementation of this method includes: (1) Establish an initialization module to obtain basic information by identifying the object under test, manually supplement the unidentified information, generate environment initialization configuration instructions and programs based on the basic information and supplementary information, and inject them into the test main program, and establish associations in the test database; (2) Establish an execution module to automatically identify the object under test, select a set of intelligent processor models to be tested, and automatically perform configuration and testing based on the test database information; (3) Establish an analysis module, use the test results to generate a test report for the object under test, and summarize the test results to generate a multi-dimensional compatibility report.

2. A method for implementing compatibility testing between an operating system and an intelligent processor according to claim 1, characterized in that: The establishment of the initialization module is specifically implemented as follows: (1.1) Establish a database to store basic information: Basic information includes the name, version, type, server architecture of the Linux operating system, the series and model of the intelligent processor, and metadata used for environment initialization, knowledge base establishment, test execution, and result analysis; Establish a local database to store basic information; optionally establish a remote database to regularly synchronize local data to the remote database, and synchronize the program to the remote code library; (1.2) Identify the basic information of the Linux operating system: Obtain basic operating system information through common operating system commands; (1.3) Manage Linux operating system initialization configuration: Maintain operating system software source information and configuration programs. Software source information includes local warehouses and remote warehouses to adapt to offline and online environments. According to the classification of Linux operating systems, including Redhat series systems and Debian series systems, maintain different configuration programs with the help of knowledge base recommendations. When executing tests, automatically configure software sources on the test environment according to the operating system type, name and version; write configuration programs to Shell files; (1.4) Extract the initialization configuration of the intelligent processor: The initialization configuration of the intelligent processor is obtained by combining automatic extraction and manual extraction: using the automatic extraction method, the user manual related to the intelligent processor is uploaded to the specified directory, and the configuration instructions and existing scripts in the manual are extracted through text information extraction technology; using the manual extraction method, for processors that cannot be extracted, with the help of knowledge base recommendations, the configuration is manually searched and the necessary scripts are written, the configuration instructions are written into the Markdown file, and the script is written into the temp Shell file; (1.5) Convert the initialization configuration to the knowledge base: Deposit operating system configuration, intelligent processor configuration and programs into the knowledge base; (1.6) Generate intelligent processor configuration script: The configuration script includes environment checking and environment configuration, which are implemented through scripting language. Combined with the initialization configuration extracted in step (1.4), by defining standard methods, input parameters and return values ​​for environment checking and configuration, and defining prompt templates, an executable script is generated using intelligent content generation technology. The generated script is written into a Shell file. (1.7) Write a test program for the intelligent processor: Abstract the test process, divide it into driver test and intelligent framework test, and write specific implementation for each intelligent processor; classify the test content, including general function test and personalized function test, to achieve the reuse of common test programs; (1.8) Save basic information to the database: Write the basic information of Linux operating system and intelligent processor into the test database; (1.9) Inject environment configuration and scripts into the package: Put the configuration description file and script file into the test program package, store them in directories according to the operating system name and processor name, put them into the v1 subdirectory under the directory for the first time, write the v1 identifier into the test database, and associate them with the operating system and processor; when there are different versions later, create v2, v3...vN subdirectories in sequence to distinguish them, and associate them in the database; (1.10) Iterate databases and packages: Whenever a new operating system and processor are initialized, the local database is synchronized to the remote database and remote code repository to improve and enrich the test coverage through continuous self-iteration.

3. A method for implementing compatibility testing between an operating system and an intelligent processor according to claim 1 or 2, characterized in that: The establishment of the execution module is specifically implemented as follows: (2.1) Identify the object to be measured: Identify the operating system name and version, and match the environment configuration and script version from the local database; scan the operating system hardware device, combine the intelligent processor information loaded from the local database, display the matched intelligent processor information for testers to choose, and match the corresponding processor configuration and script from the local database according to the tester's choice; (2.2) Configuration environment: According to the identified tested objects and related configurations and scripts, for those that require manual configuration, the configuration description Markdown file is loaded and displayed, prompting the user to configure and mark the completion. After the user marks the completion, the script check is automatically executed; for scripted configurations, the test main program automatically loads the script Shell file and executes it; (2.3) Execution test: According to the identified tested object and its script, the main test program automatically loads the test script Shell file for testing; after the test is completed, the test log and test results are saved, and the current configuration of the environment is automatically archived; (2.4) Batch testing: After completing the test of one intelligent processor, the test main program calls the configuration script to restore the configuration, clean up the environment, and then proceed to test the next intelligent processor.

4. A method for implementing compatibility testing between an operating system and an intelligent processor according to claim 1, characterized in that: The establishment of the analysis module is specifically implemented as follows: (3.1) Generate test report: Define the test result template, and pre-set the test display method, display format, and display data: the display methods include HTML and Doc, the display formats include general text content and text style, and the display data include direct test results and conversion results; Generate a result report. The test main program loads the result template, calculates and reorganizes the test results according to the template to form a conversion result, and then uses the test result data to render the result template to generate a directly usable Linux operating system X version and intelligent processor Y model compatibility result report; (3.2) Summarize test results: Summarize the test results to form compatibility results in the operating system dimension and the intelligent processor dimension; in the operating system dimension, summarize the compatibility of each operating system with all tested intelligent processors including drivers and intelligent frameworks; in the intelligent processor dimension, summarize the compatibility of each intelligent processor with all operating systems and different versions.

5. A system for implementing compatibility testing between an operating system and an intelligent processor, characterized in that: include: The initialization module is used to obtain basic information by identifying the object under test, generate environment initialization configuration instructions and programs based on the basic information and supplementary materials, inject them into the test main program, and establish associations in the test database; An execution module is used to automatically identify the object to be tested, select a set of intelligent processor models to be tested, and automatically perform configuration and testing in combination with the test database information; The analysis module is used to generate a test report of the tested object using the test results and to summarize the test results to generate a multi-dimensional compatible report; The system realizes automatic compatibility testing between the operating system and the intelligent processor through the method described in any one of claims 1 to 4.

6. A device for implementing compatibility testing between an operating system and an intelligent processor, characterized in that: include: at least one memory and at least one processor; The at least one memory is used to store a machine-readable program; The at least one processor is used to call the machine-readable program to implement the method described in any one of claims 1 to 4.

7. A computer-readable medium, characterized in that The computer readable medium stores computer instructions, and when the computer instructions are executed by a processor, the processor executes the method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Industrial software compatibility testing method under multiple localization platforms

    CN113918452A

  • Compatibility test method and device, electronic equipment and readable storage medium

    CN113918465A

  • Android application function automatic testing method and device based on Linux operating system

    CN115576816A

  • Software engineering automation test system based on Internet

    CN118626391A

  • Method and system for automatic detection, configuration and management of hardware platform environment

    CN119025095A

Cited By

  • Machine type compatible method, fault analysis device and intelligent fault diagnosis instrument

    CN121349754A