Tool detection system and method, electronic equipment and storage medium
By installing the target hardware driver platform and tooling detection module in the SONiC device, the problem of inability to effectively detect SONiC devices in the prior art is solved, and efficient tooling detection of SONiC devices is achieved.
Patent Information
- Application Number
- CN202311325704.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-12
- Publication Date
- 2025-04-22
AI Technical Summary
In the prior art, the tooling detection technology of black box equipment cannot fully adapt to the SONiC white box system environment, resulting in the inability to effectively complete the tooling detection of SONiC equipment, affecting the factory quality of the equipment.
Provide a tooling inspection system, including creating modules, compiling image file modules, upgrading new image file modules, installing tooling inspection modules and starting tooling inspection modules. Through the combination of these modules, tooling inspection of SONiC equipment is realized.
The system can install the target hardware driver platform and tool testing module in the SONiC device, and perform tool testing on the equipment by starting the tool testing module, which improves the tool testing efficiency of SONiC devices and is suitable for tool testing of SONiC devices.
Smart Images

Figure CN119861932A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of tooling detection, and in particular to a tooling detection system, method, electronic device and storage medium. Background Art
[0002] SONiC (Software for Open Networking in the Cloud) is a cloud open network software environment. It is a collection of software that builds the functions required for network devices (such as switches) and runs on hardware switches. It is a network operating system required for white box switches. With the gradual popularization of white box switches, SONiC as an open source network operating system will be increasingly deployed in data center network environments, giving SONiC devices a broader market development space. Therefore, how to build an efficient, independent and convenient tooling detection device for devices that use SONiC as a network operating system in large quantities is a problem that needs to be solved today.
[0003] In the prior art, there is a tooling inspection device system for black box equipment, but the tooling inspection technology of black box equipment cannot fully adapt to the SONiC white box system environment. Therefore, it is necessary to provide a set of tooling inspection devices for SONiC equipment to complete the tooling inspection of SONiC equipment and ensure the factory quality of SONiC equipment. Summary of the invention
[0004] The purpose of this application is to provide a tool detection system, method, electronic device and storage medium to improve the tool detection efficiency of SONiC equipment in response to the above-mentioned deficiencies in the prior art.
[0005] To achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:
[0006] In a first aspect, an embodiment of the present application provides a tooling detection system, the system comprising a creation module, a compilation image file module, an upgrade new image file module, an installation tooling detection module, and a startup tooling detection module;
[0007] The creation module is used to create a program for the tool detection module for the target hardware driver platform, create a package compression processing program, create a program for the association relationship between the compiler of the target hardware driver platform and the package compression program of the tool detection module, create a service program, and create an installation program for the tool detection module;
[0008] The image file compiling module is used to compile the program of the tooling detection module created by the creation module, the packaging and compression processing program, the association relationship between the compiler of the target hardware driver platform and the packaging and compression program of the tooling detection module, the service program and the installation program of the tooling detection module into an image file;
[0009] The new image file upgrade module is used to install the target hardware driver platform in the SONiC device based on the image file, and to notify the installation tool detection module to install the tool detection module in the corresponding directory of the target hardware driver platform of the SONiC device based on the image file;
[0010] The starting tooling detection module is used to start and run the tooling detection module, and the tooling detection module is used to respond to the tooling test instruction sent by the tooling test platform to perform tooling test on the SONiC device.
[0011] Optionally, the packaging and compression processing program is used to:
[0012] Packing the program of the tooling detection module into a data packet in a target format;
[0013] The data packet in the target format and the configuration file of the tooling detection module are packaged and compressed into a compressed file.
[0014] Optionally, the program for associating the compiler program of the target hardware driver platform with the package compression program of the tooling detection module is used to:
[0015] Establishing an association relationship between the compiler program of the target hardware driver platform and the package compression program of the tooling detection module, wherein the association relationship is used to perform package compression processing on the tooling detection module program through the association relationship when installing the target hardware driver platform to obtain a compressed file;
[0016] Packing the compressed file into a compilation package of the target hardware driver platform;
[0017] When the target hardware driver platform is started and installed for the first time, the compressed file is extracted to a preset path.
[0018] Optionally, the service program is used to:
[0019] The service program is called and started during the target hardware driver platform installation process to complete the installation function of notifying the tooling detection module.
[0020] Optionally, the installation program of the tooling detection module is used to:
[0021] Decompressing the compressed file of the tooling detection module to obtain a configuration file and a data packet in a target format;
[0022] Copy the configuration file of the tooling detection module to a preset directory;
[0023] The tooling detection module is installed into a corresponding directory of the target hardware driver platform by installing the data packet in the target format.
[0024] Optionally, the creation module is specifically used for:
[0025] Creating a corresponding working directory for the target hardware driver platform;
[0026] Creating a detection program for the tooling detection module according to the detection program code input by the user in the working directory;
[0027] Creating the package compression processing program according to the compression program code input by the user in the working directory;
[0028] Establishing an association relationship between the compiler of the target hardware driver platform and the packaged compression program of the tooling detection module, and creating a program for establishing an association relationship between the compiler of the target hardware driver platform and the packaged compression program of the tooling detection module;
[0029] Creating the service program according to the service program code input by the user in the working directory;
[0030] An installation program for the tooling detection module is created according to the installation program code input by the user in the working directory.
[0031] In a second aspect, an embodiment of the present application further provides a tooling detection method, which is applied to the tooling detection module described in the first aspect, and the method includes:
[0032] Send a test request to the tooling test platform;
[0033] After the tooling test platform logs in to the SONiC device, the tooling test items in the SONiC device are obtained, and the tooling test items are sent to the tooling test platform;
[0034] Receiving a tool test calling instruction sent by the tool test platform, wherein the tool test instruction includes a test command and a target test item in the tool test items;
[0035] The target test item is tested according to the test command, and the test result is returned to the tooling test platform.
[0036] Optionally, sending a test request to the tooling test platform includes:
[0037] Determining whether a current detection mode of the SONiC device is a tooling detection mode;
[0038] If yes, a test request is sent to the tooling test platform.
[0039] In the third aspect, an embodiment of the present application also provides an electronic device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores program instructions executable by the processor, and when the application is running, the processor communicates with the storage medium through the bus, and the processor executes the program instructions to perform the steps of the tooling detection method described in the second aspect above.
[0040] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and the computer program is read and executes the steps of the tooling detection method described in the second aspect above.
[0041] The beneficial effects of this application are:
[0042] The present application provides a tooling detection system, method, electronic device and storage medium. The tooling detection system consists of creating modules, compiling image file modules, upgrading new image file modules, installing tooling detection modules and starting tooling detection modules. The system can be implemented in SONiC devices by installing a target hardware driver platform and a corresponding tooling detection module, and tooling detection of the SONiC device can be performed by starting the tooling detection module. The tooling detection system can be applicable to SONiC devices, realizes tooling detection of SONiC devices, and also improves the efficiency of tooling detection of SONiC devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0044] Figure 1 A schematic diagram of the software and hardware architecture of a SoNIC system provided in an embodiment of the present application;
[0045] Figure 2 A schematic diagram of the structure of a tooling detection system provided in an embodiment of the present application;
[0046] Figure 3 A schematic diagram of a process flow of a tooling detection method provided in an embodiment of the present application;
[0047] Figure 4 A structural block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0048] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of the present application, or remove one or more operations from the flowchart.
[0049] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0050] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.
[0051] Figure 1 A schematic diagram of the software and hardware architecture of a SoNIC system provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the software module of the SoNIC system may include multiple applications, such as a database application, a swss application, a syncd application, a pmon application, and an app application. Combining the software module of the SoNIC system with the hardware driver platform module of the SONiC device constitutes the hardware and software architecture of the SONiC device. Hardware driver platforms from different manufacturers can be installed in the SONiC device, and corresponding tooling detection modules can be installed in the hardware driver platforms of different manufacturers based on the tooling detection system provided in the present application, so as to use the installed tooling detection module to implement tooling detection of the SONiC device installed with the hardware driver platform of the manufacturer. This not only meets the tooling detection function of the SONiC device, but also improves the efficiency of tooling detection of the SONiC device.
[0052] Among them, the hardware driver platform module of the SONiC device may include hardware driver platforms of multiple manufacturers, and each manufacturer's hardware driver platform may include a corresponding hardware driver platform package, through which the corresponding hardware driver platform can be installed.
[0053] Figure 2 A schematic diagram of the structure of a tool detection system provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, the tooling detection system may include a creation module, a compilation image file module, an upgrade new image file module, an installation tooling detection module, and a startup tooling detection module.
[0054] Continue to refer to Figure 2 The creation module can be used to create the target hardware driver platform package for the target hardware driver platform, and create a program for the tooling detection module under the created target hardware driver platform package, create a packaging and compression processing program, create a program for the association between the compiler program of the target hardware driver platform and the packaging and compression program of the tooling detection module, create a service program, and create an installation program for the tooling detection module.
[0055] Specifically, a target hardware driver platform package can be created for the target hardware driver platform, and a program for a tooling detection module can be created under the target hardware driver platform package, a packaging and compression processing program can be created, a program for creating an association between a compiler for the target hardware driver platform and a packaging and compression program for the tooling detection module can be created, a service program can be created, and an installation program for the tooling detection module can be created.
[0056] Among them, the target hardware driver platform package may refer to the hardware driver platform package corresponding to the hardware driver platform of any manufacturer. For example, sonic-platform-module-xxx may be used to represent it, where xxx represents the manufacturer's identifier. For example, for the manufacturer Vender1, the manufacturer's hardware driver platform package may be sonic-platform-module-Vender1; for the manufacturer Vender2, the manufacturer's hardware driver platform package may be sonic-platform-module-Vender2; for the manufacturer Vender3, the manufacturer's hardware driver platform package may be sonic-platform-module-Vender3. The manufacturers here are only exemplary, and may also include other manufacturers and hardware driver platform packages of other manufacturers, without limitation.
[0057] Among them, for the creation of the tooling detection module program, you can first create a directory for the tooling detection module under the target hardware driver platform package, for example, you can create a diagTest directory, and then create the tooling detection module detection program and configuration file under the diagTest directory of the tooling detection module, where the configuration file can be a configuration file in JSON format.
[0058] Continue to refer to Figure 2 The image file compilation module can be used to compile the target hardware driver platform package created by the creation module and the program of the tooling detection module under the target hardware driver platform package, the packaging and compression processing program, the program of the association relationship between the compiler program of the target hardware driver platform and the packaging and compression program of the tooling detection module, the service program and the installation program of the tooling detection module into an image file.
[0059] Optionally, the above-mentioned new image file upgrade module can be used to install the target hardware driver platform in the SONiC device based on the image file, and notify the installation tool detection module to install the tool detection module in the corresponding directory of the target hardware driver platform of the SONiC device based on the image file.
[0060] Optionally, the tool detection module installation program may be used to install a tool detection module corresponding to the target hardware driver platform.
[0061] Optionally, the startup tooling detection module can be used to start and run the tooling detection module, and the tooling detection module can be used to respond to a tooling test instruction sent by a tooling detection platform to perform a tooling test on the SONiC device.
[0062] In this embodiment, by creating a module, compiling an image file module, upgrading a new image file module, installing a tooling detection module and starting a tooling detection module, a tooling detection system can be implemented in the SONiC device by installing a target hardware driver platform and a corresponding tooling detection module, and tooling detection of the SONiC device can be performed by starting the tooling detection module. The tooling detection system can be applicable to SONiC devices, realizes tooling detection of SONiC devices, and also improves the efficiency of tooling detection of SONiC devices.
[0063] The specific functions of each of the above programs are further described below.
[0064] Optionally, the above-mentioned packaging and compression processing program can be used to: package the detection program of the tooling detection module into a data packet in a target format. The data packet in the target format can be, for example, a whl package, and the program of the tooling detection module can refer to the detection program of the tooling detection module created above. Then, the packaged data packet in the target format and the configuration file of the tooling detection module are packaged and compressed into a separate compressed file.
[0065] Exemplarily, the packaging and compression processing program diagTest_pkg.sh may be used to first package the detection program of the tooling detection module into a diagTest.whl package, and then the configuration file of the tooling detection module and the diagTest.whl package may be packaged and compressed into a diagTest.tgz compressed file.
[0066] Optionally, the program for associating the compiler program of the target hardware driver platform with the packaging and compression program of the tooling detection module can be used for:
[0067] Specifically, an association relationship is established between the compiler program of the target hardware driver platform and the packaging and compression program of the tooling detection module, wherein the association relationship can be used to perform packaging and compression processing on the tooling detection module program through the association relationship when installing the target hardware driver platform package to obtain a compressed file, which can refer to the diagTest.tgz compressed file mentioned above.
[0068] Specifically, the obtained compressed file can be packaged into the compilation package of the target hardware driver platform. Specifically, a copy processing program can be added to the compilation script of the target hardware driver platform, and the compressed compressed file can be copied to the compilation package of the target hardware driver platform by using the copy processing program, so that the compressed file can be included in the target hardware driver platform package, thereby including the tooling detection program in the compressed file.
[0069] Specifically, when the target hardware driver platform is started and installed for the first time, the compressed file is extracted to a preset path. Specifically, it can be extracted to a preset path of the file system, which can facilitate subsequent search for the compressed file.
[0070] Optionally, the above service program can be used to:
[0071] The service program refers to a service program that notifies the tooling detection module to install after the target hardware driver platform is installed, such as diagTest.install.service. The service program calls the installation program of the tooling detection module through an asynchronous call.
[0072] Specifically, the service program is called during the target hardware driver platform installation process. When the target hardware driver platform is installed, the service program is started. After completion, the installation tool detection module is notified to start the installation of the tool detection module.
[0073] Optionally, the installation program of the tooling detection module can be used to:
[0074] Specifically, the compressed file of the tool detection module is compressed to obtain the configuration file of the tool detection module and the data package of the target format. For example, the decompression package command can be called to decompress the compressed file diagTest.tgz of the tool detection module to obtain the configuration file of the tool detection module and the detection program package diagTest.whl of the tool detection module.
[0075] Specifically, the decompressed configuration file of the tooling detection module may be copied to a preset directory, wherein the preset directory may be a configuration directory of the file system, so that the tooling detection module may be viewed through the directory later.
[0076] Specifically, the tool detection module is installed into the corresponding directory of the target hardware driver platform through the target format data packet. For example, the pip install command can be called to install the detection package diagTest.whl of the tool detection module, so that the tool detection module is installed into the file system.
[0077] Specifically, the tooling detection module self-starting service may also be enabled so that the tooling detection module can start automatically when the system is restarted next time.
[0078] Optionally, the above creation module is specifically used for:
[0079] Optionally, first create a working directory for the target hardware driver platform, and then create a detection program for the tooling detection module according to the detection program code entered by the user in the working directory; create a packaged compression processing program according to the compression program code entered by the user in the working directory; and establish an association between the compiler program of the target hardware driver platform and the packaged compression program of the tooling detection module, and create a program for the association between the compiler program of the target hardware driver platform and the packaged compression program of the tooling detection module; create a service program according to the service program code entered by the user in the working directory; and create an installation program for the tooling detection module according to the installation program code entered by the user in the working directory.
[0080] In order to more clearly describe the relationship between the modules in the above specific embodiment, a complete description is given through the following embodiment. The above tooling detection system may include the above five parts, the first part: creation module, the second part: compilation image file module, the third part: upgrade new image file module, the fourth part: installation tooling detection module and the fifth part: start tooling detection module.
[0081] Part 1: The creation part includes 1) creating the detection program and configuration file of the tooling detection module; 2) creating a packaging and compression processing program; 3) creating a program to associate the compiler program of the target hardware driver platform with the packaging and compression program of the tooling detection module; 4) creating a service program; 5) creating an installation program for the tooling detection module.
[0082] Part 2: Compile the image file module: After completing the creation work in the first part, compile the programs created in the first part into the image file through make all. During the make all process, the automatic packaging processing of the tooling detection module can be completed. In other words, the detection program and configuration file of the tooling detection module can be packaged and compressed into a compressed file according to the packaging compression program created in the first part.
[0083] Part 3: Upgrade the new image file module, upgrade the image file compiled in the second part. During the upgrade process, the target hardware driver platform package can be installed. At the same time, when installing the target hardware driver platform package, the compressed file packaged and compressed in the second part can be extracted to the preset path according to the association between the compiler program of the target hardware driver platform created in the first part and the packaging and compression program of the tooling detection module. After the target hardware driver platform is successfully installed, the service program created in the first part is called to complete the notification of the tooling detection module for installation.
[0084] Part 4: Install the tooling detection module. You can first decompress the compressed file to obtain the configuration file of the tooling detection and the detection package of the tooling detection (data package in the target format). Secondly, copy the configuration file of the tooling detection module to the configuration directory of the file system, call the installation command to install the tooling detection package, so that the tooling detection module is successfully installed in the file system, and enable the self-starting service of the tooling detection module so that the tooling detection module can start automatically when the system is restarted next time.
[0085] Part 5: Start the tooling detection module, through which the tooling test command sent by the tooling test platform can be responded to and the tooling test can be performed on the SONiC device. The specific test method is described by the following tooling detection method.
[0086] Figure 3A schematic diagram of a process flow of a tool detection method provided in an embodiment of the present application, wherein the execution subject of the method is such as the tool detection module mentioned above, such as Figure 3 As shown, the method may include:
[0087] S101. Send a test request to a tooling inspection platform.
[0088] Optionally, when the SONiC device installed with the above-mentioned tooling detection module sends a test request to the tooling detection platform, after the tooling test platform receives the test request, it can log in to the SONiC device through remote login SSH.
[0089] S102: After logging into the SONiC device on the tooling inspection platform, obtain the tooling inspection items in the SONiC device, and send the tooling inspection items to the tooling inspection platform.
[0090] Specifically, the tooling detection platform can call the tooling command of the SONiC device to obtain the tooling test items in the tooling detection module of the SONiC device, which may include one or more tooling detection items, and the SONiC device can send all the obtained tooling detection items to the tooling detection platform. Among them, the tooling detection item may include the identification of the tooling detection item, such as the tooling test item number.
[0091] Optionally, after the tooling inspection platform receives the tooling inspection items sent by the inspection module, the received tooling inspection items can be stored and displayed in a table, so that the tooling inspection platform can call the corresponding tooling test items according to the numbers of the displayed tooling inspection items. Specifically, the tooling test items can be called separately in the order of the displayed tooling test items, or the tooling test items that need to be tested can be selectively called according to actual needs.
[0092] S103, receiving a tooling test instruction sent by the tooling test platform.
[0093] The test instruction may include a test command and a target test item in a tooling test item, for example, a work detection command+target test item number.
[0094] S104. Test the target test items according to the test command and return the test results to the tooling test platform.
[0095] Optionally, when the test result of the target test item received by the test platform is a successful test, the next tooling test item can be called until all tooling test items have completed the test; if the test result of the target test item received by the test platform is a failure, the test platform stops the test task and returns a failure prompt message.
[0096] Optionally, sending a test request to the tooling inspection platform in S101 may include:
[0097] Optionally, determine whether the current detection mode of the SONiC device is a tooling detection mode, and if so, send a test request to the tooling detection platform.
[0098] Figure 4 A structural block diagram of an electronic device 200 provided in an embodiment of the present application is shown in FIG. Figure 4 As shown, the electronic device may include: a processor 201 and a memory 202 .
[0099] Optionally, a bus 203 may also be included, wherein the memory 202 is used to store machine-readable instructions executable by the processor 201. When the electronic device 200 is running, the processor 201 communicates with the memory 202 through the bus 203. When the machine-readable instructions are executed by the processor 201, the method steps in the above method embodiment are performed.
[0100] An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method steps in the above-mentioned tooling detection method embodiment are executed.
[0101] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the method embodiment, and will not be repeated in this application. In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation. For example, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0102] In addition, each functional unit in each embodiment of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), disk or optical disk and other media that can store program code.
[0103] The above are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be covered by the protection scope of the present application.
Claims
1. A tooling detection system, characterized in that: The system includes a creation module, a compilation image file module, an upgrade new image file module, an installation tool detection module, and a startup tool detection module; The creation module is used to create the target hardware driver platform package for the target hardware driver platform, and create a program of the tooling detection module under the target hardware driver platform package, create a package compression processing program, create a program for the association relationship between the compiler of the target hardware driver platform and the package compression program of the tooling detection module, create a service program, and create an installation program of the tooling detection module; The compiling image file module is used to compile the target hardware driver platform package created by the creating module, the program of the tooling detection module under the target hardware driver platform package, the packaging and compression processing program, the association relationship between the compiler program of the target hardware driver platform and the packaging and compression program of the tooling detection module, the service program and the installation program of the tooling detection module into an image file; The new image file upgrade module is used to install the target hardware driver platform in the SONiC device based on the image file, and to notify the installation tool detection module to install the tool detection module program in the corresponding directory of the target hardware driver platform of the SONiC device based on the image file; The starting tooling detection module is used to start and run the tooling detection module, and the tooling detection module is used to respond to the tooling test instruction sent by the tooling test platform to perform tooling test on the SONiC device.
2. The tooling detection system according to claim 1, characterized in that: The packaging compression processing program is used to: Packing the program of the tooling detection module into a data packet in a target format; The data packet in the target format and the configuration file of the tooling detection module are packaged and compressed into a compressed file.
3. The tooling detection system according to claim 1, characterized in that: The program of the association relationship between the compiler program of the target hardware driver platform and the package compression program of the tooling detection module is used for: Establishing an association relationship between the compiler program of the target hardware driver platform and the package compression program of the tooling detection module, wherein the association relationship is used to perform package compression processing on the tooling detection module program through the association relationship when installing the target hardware driver platform to obtain a compressed file; Packing the compressed file into a compilation package of the target hardware driver platform; When the target hardware driver platform is started and installed for the first time, the compressed file is extracted to a preset path.
4. The tooling detection system according to claim 1, characterized in that: The service program is used to: The service program is called and started during the target hardware driver platform installation process to complete the installation function of notifying the tooling detection module.
5. The tooling detection system according to claim 1, characterized in that: The installation program of the tooling detection module is used to: Decompressing the compressed file of the tooling detection module to obtain a configuration file and a data packet in a target format; Copy the configuration file of the tooling detection module to a preset directory; The tooling detection module is installed into a corresponding directory of the target hardware driver platform by installing the data packet in the target format.
6. The tooling detection system according to claim 1, characterized in that: The creation module is specifically used for: Create a corresponding working directory on the target hardware driver platform; Creating a detection program for the tooling detection module according to the detection program code input by the user in the working directory; Creating the package compression processing program according to the compression program code input by the user in the working directory; Establishing an association relationship between the compiler program of the target hardware driver platform and the package compression program of the tooling detection module, and creating a program of the association relationship; Creating the service program according to the service program code input by the user in the working directory; An installation program for the tooling detection module is created according to the installation program code input by the user in the working directory.
7. A tooling detection method, characterized in that: Applied to the tooling detection module according to any one of claims 1 to 5, the method comprising: Send a test request to the tooling test platform; After the tooling test platform logs in to the SONiC device, the tooling test items in the SONiC device are obtained, and the tooling test items are sent to the tooling test platform; Receiving a tool test calling instruction sent by the tool test platform, wherein the tool test instruction includes a test command and a target test item in the tool test items; The target test item is tested according to the test command, and the test result is returned to the tooling test platform.
8. The tooling detection method according to claim 7, characterized in that: Send a test request to the tooling test platform, including: Determining whether a current detection mode of the SONiC device is a tooling detection mode; If yes, a test request is sent to the tooling test platform.
9. An electronic device, characterized in that: It comprises a memory and a processor, wherein the memory stores a computer program executable by the processor, and when the processor executes the computer program, the steps of the tooling detection method described in any one of claims 7 to 8 are implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the tooling detection method as described in any one of claims 7 to 8 are executed.