CN114584499A - Switch production line testing method, system, terminal and storage medium - Google Patents

Switch production line testing method, system, terminal and storage medium Download PDF

Info

Publication number
CN114584499A
CN114584499A CN202210130382.4A CN202210130382A CN114584499A CN 114584499 A CN114584499 A CN 114584499A CN 202210130382 A CN202210130382 A CN 202210130382A CN 114584499 A CN114584499 A CN 114584499A
Authority
CN
China
Prior art keywords
switch
production line
test
type
network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN202210130382.4A
Other languages
Chinese (zh)
Inventor
田周鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202210130382.4A priority Critical patent/CN114584499A/en
Publication of CN114584499A publication Critical patent/CN114584499A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)

Abstract

The invention relates to the technical field of switches, in particular to a method, a system, a terminal and a storage medium for testing a switch production line, which comprise the following steps: selecting a system loading and unloading tool according to the type of the switch; installing a production line test system customized based on an open source system by using the system loading and unloading tool, and starting the production line test system; closing a pure software protocol and downloading a test program by utilizing a script under a root directory of the production line test system; and running a test program to execute the test, and unloading the open source system and installing the shipment switch system by using the system loading and unloading tool after the test is passed. According to the invention, the production line test system is customized for the switch based on the open source system, so that the development period of production line test programs can be shortened, the requirements of various switches can be met, and the test efficiency of the switch production line is greatly improved.

Description

Switch production line testing method, system, terminal and storage medium
Technical Field
The invention relates to the technical field of switches, in particular to a method, a system, a terminal and a storage medium for testing a switch production line.
Background
The testing system of the switch production line generally downloads DiagOS to the memory for testing through PXE. The DiagOS has long development time and high development difficulty, and mainly works in the adaptation of a drive chip and a network chip ASIC SDK. Each machine type needs to develop corresponding DiagOS independently and cannot be reused. In 2016, Microsoft contributed the developed SONIC to the OCP organization, so that various manufacturers could use the SONIC for free. Since SONiC uses SAI, which defines a standardized API, software can be programmed for multiple different platforms, different vendors' switches (e.g., bosch, department), without any changes to SAI to run the same application stack on all hardware, which makes the SAI interface simple and consistent. The SAI provides a unified API interface to the SONiC upwards, and interfaces different ASIC chips downwards.
At present, a test system of a switch production line is customized based on Redhat AS7.6server Linux, and a corresponding driver and an SDK for customizing a corresponding ASIC chip are required to be developed for each model. The development time of a general production line test system needs about 6 months, and the development period of some projects can exceed 6 months and reach one year because of the complexity of a hardware architecture. The developed production line test system cannot be reused on different projects, and code management and production line maintenance are difficult.
Disclosure of Invention
The invention provides a method, a system, a terminal and a storage medium for testing a switch production line, aiming at the problems that the development cycle of a switch production line testing system is long and the system cannot be suitable for various types of switches in the prior art, so that the testing efficiency of the switch production line is low.
In a first aspect, the present invention provides a method for testing a production line of an exchange, including:
selecting a system loading and unloading tool according to the type of the switch;
installing a production line test system customized based on an open source system by using the system loading and unloading tool, and starting the production line test system;
closing a pure software protocol and downloading a test program by utilizing a script under a root directory of the production line test system;
and running a test program to execute the test, and unloading the open source system and installing the switch system for shipment by using the system loading and unloading tool after the test is passed.
Further, select for use system handling instrument according to the switch model, include:
determining the type of a system loading and unloading tool according to the type of the switch, wherein the type comprises an offline burning type and a network installation type;
and configuring a corresponding system loading and unloading tool for the switch according to the type.
Further, the customizing method of the production line testing system comprises the following steps:
compiling the kernel, the driver and the network chip through a compiling server to compile an initial test system image file on the basis of an open source system;
customizing the initial test system image file, wherein the customizing operation comprises the following steps: selecting a tool chain for compiling according to the CPU model of the switch; deploying a corresponding driver according to a hardware architecture of the switch; compiling a software development kit of a network chip, and configuring an initialization configuration file for the software development kit to ensure that a network address is matched with actual hardware; modifying the serial port configuration file to grant the serial port the authority to log in the root directory; modifying the script file under the root directory to enable the script file to automatically start and download the test program; and setting a master control script which sequentially calls the test program to execute the overall test.
Further, the method for installing the production line test system based on the open source system customization by using the system loading and unloading tool and starting the production line test system comprises the following steps:
the method comprises the following steps of connecting a switch to a production line network through a management port in advance through the production line network;
and after the switch is started, calling a system loading and unloading tool to install the production line test system stored in the appointed catalogue, and starting the switch from the production line test system after the installation is finished.
In a second aspect, the present invention provides a system for testing a production line of an exchange, including:
the tool selecting unit is used for selecting a system loading and unloading tool according to the type of the switch;
the system mounting unit is used for mounting a production line testing system customized based on an open source system by using the system loading and unloading tool and starting the production line testing system;
the test execution unit is used for closing a pure software protocol and downloading a test program by utilizing a script under a root directory of the production line test system;
and the system updating unit is used for running a test program to execute the test, unloading the open source system by using the system loading and unloading tool after the test is passed, and installing the switch system for shipment.
Further, the tool selecting unit includes:
the type determining module is used for determining the type of the system loading and unloading tool according to the type of the switch, wherein the type comprises an offline burning type and a network installation type;
and the tool configuration module is used for configuring a corresponding system loading and unloading tool for the switch according to the type.
Further, the customizing method of the production line testing system comprises the following steps:
compiling the kernel, the driver and the network chip through a compiling server to compile an initial test system image file on the basis of an open source system;
customizing the initial test system image file, wherein the customizing operation comprises the following steps: selecting a tool chain for compiling according to the CPU model of the switch; deploying a corresponding driver according to a hardware architecture of the switch; compiling a software development kit of a network chip, and configuring an initialization configuration file for the software development kit to ensure that a network address is matched with actual hardware; modifying the serial port configuration file to grant the serial port the authority to log in the root directory; modifying the script file under the root directory to enable the script file to automatically start and download the test program; and setting a master control script which sequentially calls the test program to execute the overall test.
Further, the system installation unit includes:
the network connection module is used for connecting the switch to a production line network through a management port in advance through the production line network;
and the system installation module is used for calling a system loading and unloading tool to install the production line test system stored in the appointed catalogue after the switch is started, and starting the switch from the production line test system after the switch is installed.
In a third aspect, a terminal is provided, including:
a processor, a memory, wherein,
the memory is used for storing a computer program which,
the processor is used for calling and running the computer program from the memory so as to make the terminal execute the method of the terminal.
In a fourth aspect, a computer storage medium is provided having stored therein instructions that, when executed on a computer, cause the computer to perform the method of the above aspects.
The method, the system, the terminal and the storage medium for testing the production line of the switch have the advantages that the production line testing system is customized for the switch based on the open source system, the development period of a production line testing program can be shortened to 3 months from 6-12 months, meanwhile, the customizable testing program improves project testing of the switch, the production line testing system can meet requirements of various types of switches, and the testing efficiency of the production line of the switch is greatly improved.
In addition, the invention has reliable design principle, simple structure and very wide application prospect.
Drawings
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present invention, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
FIG. 1 is a schematic flow diagram of a method of one embodiment of the present invention.
FIG. 2 is another schematic flow diagram of a method of one embodiment of the invention.
FIG. 3 is a schematic flow diagram of a custom in-line testing system of a method of one embodiment of the invention.
Fig. 4 is a schematic architecture diagram of a network connection of a method of one embodiment of the invention.
FIG. 5 is a schematic block diagram of a system of one embodiment of the present invention.
Fig. 6 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The following explains key terms appearing in the present invention.
ONIE (open Network Installl Environment): a tool for installing and uninstalling a switch NOS system.
SONiC (software for Open Network in the cloud): an Open source, Linux-based switch operating system (NOS) maintained by Open Computer Project (OCP) initiated by microsoft. The white box switch adopts an open equipment architecture and a soft and hard decoupling concept, can customize bottom layer hardware and upper layer software according to business requirements, is bundled to purchase and monopoly used compared with the traditional switch software and hardware, and can obviously reduce the purchase cost of the switch. In addition, in the aspect of software functions, secondary development can be performed based on open source software, and development period and cost are reduced. The white box switch supports programmable hardware data plane and software containerized deployment, customizes forwarding logic of the data plane in a software definition mode, and also makes full use of modern cloud computing technology to rapidly upgrade and iterate network functions, thereby improving flexibility, agility and certainty of the network, optimizing network performance and meeting complex service requirements. In addition, by means of containerized deployment, management operation and maintenance can be simplified in a unified mode, and operation and maintenance cost of the network is reduced. White-box devices, software operating systems, network automation, and other technologies have been developed vigorously. Microsoft's (software for Open Networking in the cloud) is a new operating system for Open source switches.
SDK (Software Development Kit ): this document refers to a collection of development tools that create application software for a software package, software framework, hardware platform, operating system, etc. of A Switch Chip (ASCI).
SAI (Switch Abstraction Interface ): is a cross-platform (e.g., x86, MIPS, arm) switch platform interface that defines a standardized API that allows software to be programmed for use with a number of different switches without any modification to the SAI to run the same application stack on all hardware, which makes the SAI interface simple and consistent. The SAI provides a unified API interface to the SONiC upwards, and interfaces to different ASICs downwards.
DiagOS, a Linux system for production line testing, mainly provides testing tools, scripts, testing interfaces, and the like. There are generally two types of mounting: one is installed in the memory of the switch to be tested through the PXE network boot, and the other is installed in the hard disk or flash of the switch to be tested.
PXE (Preboot eXecution Environment): a network starting mode refers to the behavior and the process of downloading DiagOS to the memory of a switch to be tested through network starting.
FIG. 1 is a schematic flow diagram of a method of one embodiment of the invention. The execution subject in fig. 1 may be a switch production line testing system.
As shown in fig. 1, the method includes:
step 110, selecting a system loading and unloading tool according to the type of the switch;
step 120, installing a production line test system customized based on an open source system by using the system loading and unloading tool, and starting the production line test system;
step 130, closing a pure software protocol and downloading a test program by using a script under a root directory of the production line test system;
and 140, running a test program to perform testing, and unloading the open source system and installing the switch system for shipment by using the system loading and unloading tool after the testing is passed.
After the new scheme is implemented, Diag developers do not need to adapt, compile and debug one module by one module, only need to download corresponding source codes from a standard SONiC community, and select corresponding manufacturer branches of the exchange chip to compile, so that the adaptation time can be saved by more than 90%, and the development efficiency is greatly improved.
In order to facilitate understanding of the present invention, the principle of the switch production line testing method of the present invention is combined with the process of performing production line testing on the switch in the embodiment to further describe the switch production line testing method provided by the present invention.
Specifically, referring to fig. 2, the method for testing the switch production line includes:
and S1, selecting a system loading and unloading tool according to the type of the switch.
According to different models of switches to be tested, determining whether ONIE (open Network instrumentation environment) is offline burning or needs to be installed through PXE, wherein in general, an x86 architecture needs to be installed through PXE, and an ARM/MIPS architecture can be directly burned with UBOOT/PMON.
Through automatic adaptation system handling instrument, improved the degree of automation of line test is produced to the switch, also promoted efficiency of software testing simultaneously.
And S2, installing a production line test system customized based on the open source system by using the system loading and unloading tool, and starting the production line test system.
And restarting, automatically installing the customized SONIC through PXE, and automatically starting from the DiagOS based on the SONIC customization after the installation is finished.
The customizing method of the production line testing system is shown in fig. 3:
compiling the kernel, the driver and the network chip through the compiling server, compiling an initial test system image file on the basis of the open source system, and then customizing the file.
(1) And selecting the toolchain for compiling according to the model of the CPU, wherein the X86/ARM/MIPS uses the corresponding toolchain. The Machine Type is selected according to the CPU.
(2) And modifying the corresponding drivers of i2c, CPLD, BMC, network chip and the like according to the hardware architecture.
(3) And compiling the SDK of the corresponding network chip, configuring an initialization configuration file of the SDK, and ensuring that the addresses of the PHY and the MAC are matched with actual hardware.
(4) And modifying serial port configuration serial-getty @ service file to ensure that root can be automatically logged in from the serial port.
(5) And modifying the profile file to enable the profile file to automatically download the test package, wherein the specific modification method comprises the following steps:
modifying the automatic execution profile file: the method comprises the steps of creating three root directories of i nsp,/net,/log, ensuring that a switch to be tested is communicated with a Diag server, mapping the/diagshare/diaglog directory of the server to the switch/log directory to be tested through an NFS (Network File System) protocol, and mapping the server/diagshare/sysdiag directory to the switch/net directory to be tested. And then copying the whole Diag entry script startoob.sh to the to-be-tested switch/insp directory from the Diag server, and starting execution.
(6) And setting a master control script starob.sh for sequentially calling a test program to execute the overall test, and calling corresponding PROCESS and DIAGS packets through the starob.sh to test.
And installing the customized DiagOS under a corresponding directory of a production line test server.
Building network connection as shown in fig. 4, the switch (1 … n) to be tested is connected to the production line network through a management port through the production line network. And powering on the switch to be tested and starting testing. And after the switch is started, calling a system loading and unloading tool to install the production line test system stored in the appointed catalogue, and starting the switch from the production line test system after the installation is finished.
The customization method of the switch production line test system adopts modular customization, namely, corresponding test modules are adapted according to the types of CPUs and hardware architectures, and corresponding test module configuration is carried out according to the types of network chips and serial ports, so that the switch test customization is realized. The customization method is comprehensive and high in customization efficiency. In addition, the automatic downloading function of the test package is realized by modifying the profile file, and the automation degree of the test is greatly improved.
And S3, closing the pure software protocol and downloading the test program by using the script under the root directory of the production line test system.
After starting, the automatic kill drops the protocol service of the L3 layer, such as BGP, IPv6, STP, OSPF and so on, which are pure software protocols, and does not affect the protocol for testing the hardware of the switch. And automatically running a profile script under a root directory, downloading test PRCOESS and DIAGS packets, automatically calling a main control program, and starting the test.
A test environment is built for hardware test through automatic kill protocol service of the L3 layer, and normal operation of switch production line test is guaranteed.
And S4, running a test program to execute the test, and unloading the open source system and installing the switch system for shipment by using the system loading and unloading tool after the test is passed.
After the production line Diag tests PASS, a system loading and unloading tool such as sonic _ installer is automatically operated to install the NOS system for shipment. If FAIL is tested, it is retested after being sent for service or after being confirmed by TE engineers.
And (4) adding test subsequent treatment, namely automatically operating a system loading and unloading tool to unload the open source system if the test is passed, and returning the switch to the NOS system for shipment. The shipment efficiency of the switch is greatly improved.
As shown in fig. 5, the system 500 includes:
a tool selection unit 510 for selecting a system loading and unloading tool according to the type of the switch;
a system installation unit 520, configured to install a production line test system customized based on an open source system by using the system loading and unloading tool, and start the production line test system;
a test execution unit 530, configured to close a pure software protocol and download a test program using a script under a root directory of the production line test system;
and a system updating unit 540 for running a test program to perform a test, and unloading the open source system and installing the shipment switch system by using the system loading and unloading tool after the test is passed.
Optionally, as an embodiment of the present invention, the tool selecting unit includes:
the type determining module is used for determining the type of the system loading and unloading tool according to the type of the switch, wherein the type comprises an offline burning type and a network installation type;
and the tool configuration module is used for configuring a corresponding system loading and unloading tool for the switch according to the type.
Optionally, as an embodiment of the present invention, the method for customizing the production line test system includes:
compiling the kernel, the driver and the network chip through a compiling server to compile an initial test system image file on the basis of an open source system;
customizing the initial test system image file, wherein the customizing operation comprises the following steps: selecting a tool chain for compiling according to the CPU model of the switch; deploying a corresponding driver according to a hardware architecture of the switch; compiling a software development kit of a network chip, and configuring an initialization configuration file for the software development kit to ensure that a network address is matched with actual hardware; modifying the serial port configuration file to grant the serial port the authority to log in the root directory; modifying the script file under the root directory to enable the script file to automatically start and download the test program; and setting a master control script which sequentially calls the test program to execute the overall test.
Optionally, as an embodiment of the present invention, the system installation unit includes:
the network connection module is used for connecting the switch to a production line network through a management port in advance through the production line network;
and the system installation module is used for calling a system loading and unloading tool to install the production line test system stored in the appointed catalogue after the switch is started, and starting the switch from the production line test system after the switch is installed.
Fig. 6 is a schematic structural diagram of a terminal 600 according to an embodiment of the present invention, where the terminal 600 may be used to execute the method for testing the switch production line according to the embodiment of the present invention.
The terminal 600 may include: a processor 610, a memory 620, and a communication unit 630. The components communicate via one or more buses, and those skilled in the art will appreciate that the architecture of the server shown in the figures is not intended to be limiting, and that it may be a bus architecture, a star architecture, a combination of more or fewer components than shown, or a different arrangement of components.
The memory 620 may be used for storing instructions executed by the processor 610, and the memory 620 may be implemented by any type of volatile or non-volatile storage terminal or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The executable instructions in memory 620, when executed by processor 610, enable terminal 600 to perform some or all of the steps in the method embodiments described below.
The processor 610 is a control center of the storage terminal, connects various parts of the entire electronic terminal using various interfaces and lines, and performs various functions of the electronic terminal and/or processes data by operating or executing software programs and/or modules stored in the memory 620 and calling data stored in the memory. The processor may be composed of an Integrated Circuit (IC), for example, a single packaged IC, or a plurality of packaged ICs connected with the same or different functions. For example, the processor 610 may include only a Central Processing Unit (CPU). In the embodiment of the present invention, the CPU may be a single operation core, or may include multiple operation cores.
A communication unit 630, configured to establish a communication channel so that the storage terminal can communicate with other terminals. And receiving user data sent by other terminals or sending the user data to other terminals.
The present invention also provides a computer storage medium, wherein the computer storage medium may store a program, and the program may include some or all of the steps in the embodiments provided by the present invention when executed. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a Random Access Memory (RAM).
Therefore, the production line test system is customized for the switch based on the open source system, the development period of the production line test program can be shortened to 3 months from 6-12 months, meanwhile, the customizable test program improves the project test of the switch, the production line test system can meet the requirements of various types of switches in a customized manner, the switch production line test efficiency is greatly improved, the technical effects which can be achieved by the embodiment can be referred to the description above, and the description is omitted here.
Those skilled in the art will readily appreciate that the techniques of the embodiments of the present invention may be implemented as software plus a required general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be embodied in the form of a software product, where the computer software product is stored in a storage medium, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like, and the storage medium can store program codes, and includes instructions for enabling a computer terminal (which may be a personal computer, a server, or a second terminal, a network terminal, and the like) to perform all or part of the steps of the method in the embodiments of the present invention.
The same and similar parts in the various embodiments in this specification may be referred to each other. Especially, for the terminal embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for relevant points, reference may be made to the description in the method embodiment.
In the embodiments provided in the present invention, it should be understood that the disclosed system and method can be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the units is only one logical functional division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, systems or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
Although the present invention has been described in detail in connection with the preferred embodiments with reference to the accompanying drawings, the present invention is not limited thereto. Various equivalent modifications or substitutions can be made on the embodiments of the present invention by those skilled in the art without departing from the spirit and scope of the present invention, and these modifications or substitutions are within the scope of the present invention/any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A method for testing a production line of a switch is characterized by comprising the following steps:
selecting a system loading and unloading tool according to the type of the switch;
installing a production line test system customized based on an open source system by using the system loading and unloading tool, and starting the production line test system;
closing a pure software protocol and downloading a test program by utilizing a script under a root directory of the production line test system;
and running a test program to execute the test, and unloading the open source system and installing the switch system for shipment by using the system loading and unloading tool after the test is passed.
2. The method of claim 1, wherein selecting a system loading tool according to the switch model comprises:
determining the type of a system loading and unloading tool according to the type of the switch, wherein the type comprises an offline burning type and a network installation type;
and configuring a corresponding system loading and unloading tool for the switch according to the type.
3. The method of claim 1, wherein the customization method of the in-line testing system comprises:
compiling the kernel, the driver and the network chip through a compiling server to compile an initial test system image file on the basis of an open source system;
customizing the initial test system image file, wherein the customizing operation comprises the following steps: selecting a tool chain for compiling according to the CPU model of the switch; deploying a corresponding driver according to a hardware architecture of the switch; compiling a software development kit of a network chip, and configuring an initialization configuration file for the software development kit to ensure that a network address is matched with actual hardware; modifying the serial port configuration file to grant the serial port the authority to log in the root directory; modifying the script file under the root directory to enable the script file to automatically start and download the test program; and setting a master control script which sequentially calls the test program to execute the overall test.
4. The method of claim 3, wherein installing the open source system based custom production line test system using the system handler and starting up the production line test system comprises:
the method comprises the following steps of connecting a switch to a production line network through a management port in advance through the production line network;
and after the switch is started, calling a system loading and unloading tool to install the production line test system stored in the appointed catalogue, and starting the switch from the production line test system after the installation is finished.
5. A line test system is produced to switch, its characterized in that includes:
the tool selecting unit is used for selecting a system loading and unloading tool according to the type of the switch;
the system mounting unit is used for mounting a production line testing system customized based on an open source system by using the system loading and unloading tool and starting the production line testing system;
the test execution unit is used for closing a pure software protocol and downloading a test program by utilizing a script under a root directory of the production line test system;
and the system updating unit is used for running a test program to execute the test, unloading the open source system by using the system loading and unloading tool after the test is passed, and installing the switch system for shipment.
6. The method of claim 5, wherein the tool-selection unit comprises:
the type determining module is used for determining the type of the system loading and unloading tool according to the type of the switch, wherein the type comprises an offline burning type and a network installation type;
and the tool configuration module is used for configuring a corresponding system loading and unloading tool for the switch according to the type.
7. The system of claim 5, wherein the customization method of the in-line testing system comprises:
compiling the kernel, the driver and the network chip through a compiling server to compile an initial test system image file on the basis of an open source system;
customizing the initial test system image file, wherein the customizing operation comprises the following steps: selecting a tool chain for compiling according to the CPU model of the switch; deploying a corresponding driver according to a hardware architecture of the switch; compiling a software development kit of a network chip, and configuring an initialization configuration file for the software development kit to ensure that a network address is matched with actual hardware; modifying the serial port configuration file to grant the serial port the authority to log in the root directory; modifying the script file under the root directory to enable the script file to automatically start and download the test program; and setting a master control script which sequentially calls the test program to execute the overall test.
8. The system of claim 7, wherein the system installation unit comprises:
the network connection module is used for connecting the switch to a production line network through a management port in advance through the production line network;
and the system installation module is used for calling a system loading and unloading tool to install the production line test system stored in the appointed catalogue after the switch is started, and starting the switch from the production line test system after the switch is installed.
9. A terminal, comprising:
a processor;
a memory for storing instructions for execution by the processor;
wherein the processor is configured to perform the method of any one of claims 1-4.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-4.
CN202210130382.4A 2022-02-11 2022-02-11 Switch production line testing method, system, terminal and storage medium Withdrawn CN114584499A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210130382.4A CN114584499A (en) 2022-02-11 2022-02-11 Switch production line testing method, system, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210130382.4A CN114584499A (en) 2022-02-11 2022-02-11 Switch production line testing method, system, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN114584499A true CN114584499A (en) 2022-06-03

Family

ID=81770411

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210130382.4A Withdrawn CN114584499A (en) 2022-02-11 2022-02-11 Switch production line testing method, system, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN114584499A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112968800A (en) * 2021-02-20 2021-06-15 山东英信计算机技术有限公司 Switch batch test method, system and equipment based on Loongson platform

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112968800A (en) * 2021-02-20 2021-06-15 山东英信计算机技术有限公司 Switch batch test method, system and equipment based on Loongson platform

Similar Documents

Publication Publication Date Title
US7478281B2 (en) System and methods for functional testing of embedded processor-based systems
US7099818B1 (en) System and method for automatically matching components in a debugging system
CN101373435B (en) Processing system capable of downloading firmware and being tested and processing method thereof
CN110134415A (en) A kind of controller and its method for upgrading software and device
CN110162435B (en) Method, system, terminal and storage medium for starting and testing PXE of server
CN110554938B (en) BIOS (basic input output System) testing method, system, terminal and storage medium based on script set
CN111859834B (en) UVM-based verification platform development method, system, terminal and storage medium
CN107729071B (en) A kind of method and device initializing network interface card
US20090144725A1 (en) Method and System for Software Installation
CN113608940B (en) Production test method, system and device of intelligent network card and readable storage medium
CN109783378A (en) GPU is in the compatibility test method of Ubnutu system, device, terminal and storage medium
CN111262753B (en) Method, system, terminal and storage medium for automatically configuring number of NUMA nodes
JP2003058389A (en) Method for just-in-time updating of programming parts
CN114024853A (en) Hardware information collection method and system for bare metal node and related components
CN101384063A (en) Method and system for terminal equipment repairing and updating, system manufacturing method
US11640290B2 (en) Pushing a firmware update patch to a computing device via an out-of-band path
US6751569B2 (en) System and method for receiving information from a test apparatus
CN114584499A (en) Switch production line testing method, system, terminal and storage medium
CN116954752A (en) Differentiated system configuration and loading method and device and computer equipment
CN109582334B (en) Upgrading method and device for programmable logic device
CN116112412A (en) Virtual network card binding redundancy function test method, system, device and medium
CN115495136A (en) BMC rapid online upgrading method based on domestic Feiteng platform
CN115437925A (en) Functional automation test tool for operating system
CN109450682B (en) IB network card communication configuration method and device, terminal and storage medium
CN113703805A (en) Upgrading method, system, terminal and storage medium of arm64 architecture virtualization system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20220603