CN105930239A - Computer PXE test method - Google Patents
Computer PXE test method Download PDFInfo
- Publication number
- CN105930239A CN105930239A CN201610249919.3A CN201610249919A CN105930239A CN 105930239 A CN105930239 A CN 105930239A CN 201610249919 A CN201610249919 A CN 201610249919A CN 105930239 A CN105930239 A CN 105930239A
- Authority
- CN
- China
- Prior art keywords
- test
- computer
- pxe
- file
- server
- 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.)
- Pending
Links
- 238000010998 test method Methods 0.000 title claims abstract description 8
- 238000012360 testing method Methods 0.000 claims abstract description 76
- 238000000034 method Methods 0.000 claims abstract description 14
- 230000006837 decompression Effects 0.000 claims description 3
- 230000007423 decrease Effects 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000012856 packing Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2273—Test methods
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
The invention provides a computer PXE test method, belongs to the field of server PXE test, and is used for compiling a computer Linux kernel to be tested or directly copying the computer Linux kernel from other Linux operating systems. An Initramfs mirror image is produced. And constructing a computer test module to be tested. And building a PXE server. The computer to be tested is started from the network, and the kernel and the Initramfs file are downloaded from the PXE server to the memory and executed. And mounting the directory of the PXE server for storing the test files to the computer to be tested, and copying and decompressing the test module files from the PXE server to the memory. Switching from Initramfs to rootfs in the test module, executing a subsequent starting process, and running the test module to start testing. And uploading the test record to the PXE server after the test is finished. The invention reduces the test time and improves the test efficiency.
Description
Technical field
The present invention relates to server PXE measuring technology, particularly relate to a kind of computer PXE method of testing.
Background technology
Current server manufacturer, a series of test after being assembled into complete machine, will be carried out, to ensure to treat shipment complete machine
Configuration meets the requirements, function is good and stable performance.The method of system test is mostly to use PXE test network at present, has
It is to download test file from PXE server to restart to hard disc of computer to be measured, computer to be measured, from hard disk startup, testing results
Program is tested.Have plenty of computer to be measured after PXE network startup, download kernel file, reflection literary composition from PXE server
Part, storage device image file and test module, then restart, then kernel file and storage device image file is loaded onto interior
Deposit, test module is copied to internal memory and runs, start test.Test module file is downloaded to calculating to be measured from PXE server
Machine hard disk, in view of the read or write speed of hard disk, this process can take a long time;On hard disk, testing results module is tested,
If power-off or maloperation etc. suddenly, may result in file system corruption in hard disk, it is impossible to continue test, it has to again
Downloading test file from PXE network, testing efficiency is low.Kernel, image file, storage device image is downloaded from PXE server
File and test module, the most automatically restart, then kernel file and storage device image file be loaded onto internal memory, will test mould
Block copies to internal memory and runs, and the method is testing results in internal memory, has got around disk read-write when server downloads file
The bottleneck problem of speed, saves the testing time.But this process needs once to restart, when Server Restart can consume the longest
Between;This process still can use storage device, if computer nonstorage device to be measured, just cannot test.
Summary of the invention
In order to solve this problem, the present invention proposes and a kind of is not required to hard disk, is not required to the computer PXE method of testing restarted.
The present invention be combine current computer PXE test be that test module file is downloaded in hard disk, on hard disk fortune
Row test, speed is slow and inefficiency;Utilize Computer Storage module that test module file is loaded into calculator memory to be measured,
Testing results on internal memory, however it is necessary that and once restart, and also spends many time;Some computer complete machine without storage device,
Cannot be carried out the situations such as test, the present invention has designed and developed following method of testing and flow process, it is achieved method is as follows:
First compile computer linux kernel to be measured, or directly replicate from other (SuSE) Linux OS.
Make Initramfs mirror image, add the driving module of machine needs to be measured, necessary setting, order and script.It is allowed to
After being loaded into kernel and performing, position can be specified to replicate decompression test module file from PXE server.
Build PXE server, including Dynamic Host Configuration Protocol server etc..By kernel, Initramfs image file, test module file
It is individually positioned on PXE server in assigned catalogue.
Computer to be measured, from network startup, is downloaded kernel from PXE server and Initramfs file to internal memory and is performed.
The catalogue that PXE server is deposited test module file is mounted to computer to be measured, replicates decompression test file and arrives
On internal memory, load the rootfs in test module, be switched to this rootfs perform again follow-up startup from Initramfs
Journey, testing results module starts test.
Test record is uploaded PXE server after terminating by test.
Test module file need not be downloaded to run in hard disk by the method, decreases the testing time.Need not in test
During restart, decrease the testing time, improve testing efficiency.Test needs not rely on the storage device of computer to be measured,
Use flexibility ratio is high, highly versatile.
Accompanying drawing explanation
Fig. 1 is test and uses schematic flow sheet.
Detailed description of the invention
Below present disclosure is carried out more detailed elaboration:
Below present disclosure is carried out more detailed elaboration:
A) compile computer linux kernel vmlinuz to be measured, or directly replicate from linux system.
B) make Initramfs mirror image, add the driving module of machine needs to be measured, necessary setting, order and script.Make
Be loaded into kernel and perform after, can from PXE server specify position download test module file.
C) computer testing module to be measured is built, including testing the file system of dependence, test program, script etc., packing
It is compressed into compressed package.
D) PXE server is built, including Dynamic Host Configuration Protocol server, by kernel file, Initramfs mirror image, test module file
It is individually positioned on PXE server in assigned catalogue.
E) computer to be measured is from network startup, downloads kernel from PXE server and Initramfs file to internal memory and is held
OK, after kernel initialization, it is switched to User space and performs the program in initramfs and script, load the driving mould needed
Block, necessary configuration etc., then test module file is unziped to internal memory from PXE server duplication.
F) it is switched to test the rootfs module file from Initramfs, then performs follow-up start-up course, run and survey
Die trial BOB(beginning of block) is tested.
G) test record is uploaded PXE server after terminating by test.
By above-mentioned method of testing and flow process, need not will test module loading to hard disk be run, when decreasing test
Between.Need not restart in test process, decrease the testing time, improve testing efficiency.Test needs not rely on meter to be measured
The storage device of calculation machine, uses flexibility ratio high, highly versatile.
Claims (3)
1. a computer PXE method of testing, it is characterised in that
Implementation method is as follows:
1. compile computer linux kernel to be measured, or directly replicate from other (SuSE) Linux OS;
2. Initramfs mirror image is made;
3. computer testing module to be measured is built;
4. PXE server is built;
Computer the most to be measured, from network startup, is downloaded kernel from PXE server and Initramfs file to internal memory and is performed;Will
PXE server is deposited the catalogue of test file and is mounted to computer to be measured, and from PXE server, test module file is replicated decompression
To internal memory;
6. load the rootfs in test module, be switched to test on the rootfs module from Initramfs, then after execution
Continuous start-up course, testing results module starts test;
7. test record is uploaded PXE server after terminating by test.
Method the most according to claim 1, it is characterised in that make Initramfs image file, add machine needs to be measured
Driving module, necessary setting, order and script;After being allowed to be loaded into kernel and perform, can refer to from PXE server
Download test module file is put in location.
Method the most according to claim 1, it is characterised in that build PXE server, including Dynamic Host Configuration Protocol server, by kernel
File, Initramfs image file, test module file are individually positioned on PXE server appointment position.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610249919.3A CN105930239A (en) | 2016-04-20 | 2016-04-20 | Computer PXE test method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610249919.3A CN105930239A (en) | 2016-04-20 | 2016-04-20 | Computer PXE test method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105930239A true CN105930239A (en) | 2016-09-07 |
Family
ID=56838687
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610249919.3A Pending CN105930239A (en) | 2016-04-20 | 2016-04-20 | Computer PXE test method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105930239A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106506276A (en) * | 2016-11-10 | 2017-03-15 | 郑州云海信息技术有限公司 | A kind of information detecting method for server |
CN108287773A (en) * | 2018-01-17 | 2018-07-17 | 郑州云海信息技术有限公司 | A kind of general board diagnostic method and device based on PXE |
CN108287990A (en) * | 2017-12-26 | 2018-07-17 | 努比亚技术有限公司 | File abnormal operation processing method, electronic equipment and computer readable storage medium |
CN110491440A (en) * | 2019-07-02 | 2019-11-22 | 深圳市金泰克半导体有限公司 | A kind of internal storage testing method and system |
CN110737558A (en) * | 2019-10-21 | 2020-01-31 | 深圳忆联信息系统有限公司 | Method and device for automatically deploying efi shell system to execute test, computer equipment and storage medium |
CN111240913A (en) * | 2020-01-07 | 2020-06-05 | 苏州浪潮智能科技有限公司 | Server DQS error-reporting memory batch test method and device |
CN111475353A (en) * | 2020-03-12 | 2020-07-31 | 苏州浪潮智能科技有限公司 | Method and system for detecting NVDIMM memory of production line |
CN114003452A (en) * | 2021-10-29 | 2022-02-01 | 苏州浪潮智能科技有限公司 | Device testing method, control device, testing device, and storage medium |
CN114676069A (en) * | 2022-05-30 | 2022-06-28 | 深圳市科力锐科技有限公司 | Kernel file testing method, device, equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101055539A (en) * | 2006-04-12 | 2007-10-17 | 鸿富锦精密工业(深圳)有限公司 | Computer test system and method |
CN101145121A (en) * | 2006-09-13 | 2008-03-19 | 鸿富锦精密工业(深圳)有限公司 | Computer test method |
US8489871B2 (en) * | 2010-10-26 | 2013-07-16 | Hong Fu Jin Precision Industry (Shenzhen) Co., Ltd. | Preboot execution environment test device and method |
CN103888491A (en) * | 2012-12-20 | 2014-06-25 | 鸿富锦精密工业(深圳)有限公司 | Diskless workstation start system and method |
-
2016
- 2016-04-20 CN CN201610249919.3A patent/CN105930239A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101055539A (en) * | 2006-04-12 | 2007-10-17 | 鸿富锦精密工业(深圳)有限公司 | Computer test system and method |
CN101145121A (en) * | 2006-09-13 | 2008-03-19 | 鸿富锦精密工业(深圳)有限公司 | Computer test method |
US8489871B2 (en) * | 2010-10-26 | 2013-07-16 | Hong Fu Jin Precision Industry (Shenzhen) Co., Ltd. | Preboot execution environment test device and method |
CN103888491A (en) * | 2012-12-20 | 2014-06-25 | 鸿富锦精密工业(深圳)有限公司 | Diskless workstation start system and method |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106506276A (en) * | 2016-11-10 | 2017-03-15 | 郑州云海信息技术有限公司 | A kind of information detecting method for server |
CN108287990A (en) * | 2017-12-26 | 2018-07-17 | 努比亚技术有限公司 | File abnormal operation processing method, electronic equipment and computer readable storage medium |
CN108287990B (en) * | 2017-12-26 | 2021-08-24 | 努比亚技术有限公司 | File abnormal operation processing method, electronic equipment and computer readable storage medium |
CN108287773A (en) * | 2018-01-17 | 2018-07-17 | 郑州云海信息技术有限公司 | A kind of general board diagnostic method and device based on PXE |
CN110491440A (en) * | 2019-07-02 | 2019-11-22 | 深圳市金泰克半导体有限公司 | A kind of internal storage testing method and system |
CN110737558A (en) * | 2019-10-21 | 2020-01-31 | 深圳忆联信息系统有限公司 | Method and device for automatically deploying efi shell system to execute test, computer equipment and storage medium |
CN111240913A (en) * | 2020-01-07 | 2020-06-05 | 苏州浪潮智能科技有限公司 | Server DQS error-reporting memory batch test method and device |
CN111240913B (en) * | 2020-01-07 | 2022-08-19 | 苏州浪潮智能科技有限公司 | Server DQS error-reporting memory batch test method and device |
CN111475353A (en) * | 2020-03-12 | 2020-07-31 | 苏州浪潮智能科技有限公司 | Method and system for detecting NVDIMM memory of production line |
CN114003452A (en) * | 2021-10-29 | 2022-02-01 | 苏州浪潮智能科技有限公司 | Device testing method, control device, testing device, and storage medium |
CN114676069A (en) * | 2022-05-30 | 2022-06-28 | 深圳市科力锐科技有限公司 | Kernel file testing method, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105930239A (en) | Computer PXE test method | |
US11354280B2 (en) | Virtual configuration systems and methods | |
US9507604B2 (en) | Boot method and boot system | |
US9063821B1 (en) | Method for updating operating system without memory reset | |
CN107193615B (en) | Project code information updating and deploying method and device | |
US7490267B2 (en) | System and method for testing computer | |
US20170329593A1 (en) | INPLACE RETURN TO FACTORY INSTALL (iRTFI) | |
US9658863B2 (en) | Information processing apparatus and control method therefor | |
CN102135893A (en) | Method for integrating operating system on BIOS (Basic Input Output System) chip and starting operating system on server | |
JPH0756818A (en) | Method and equipment for testing of system storage device of computer | |
JP2007206885A (en) | Computer system and system starting method | |
CN107533441B (en) | Creating operating system volumes | |
CN107690630B (en) | Calculate the bridge configuration in equipment | |
CN106445569B (en) | Starting method and system for embedded device of Vxworks operating system | |
CN111930396B (en) | Upgrading method of communication module in 4G router based on notify mechanism | |
CN109413497B (en) | Intelligent television and system starting method thereof | |
JP2007052519A (en) | Information processor, method, and program | |
CN110825419A (en) | Firmware refreshing method and device, electronic equipment and storage medium | |
CN105573913B (en) | Program debugging method and system in a kind of ONU systems | |
CN110275719B (en) | Cloud physical host operating system deployment method based on domestic CPU and operating system | |
CN110007935B (en) | Processing method, device and equipment for program upgrading | |
CN111796882A (en) | Electronic equipment system processing method and device and electronic equipment | |
CN117555563A (en) | Method and device for constructing platform mirror image, computer equipment and storage medium | |
TWI486877B (en) | Method of firmware upgrade | |
CN116775061A (en) | Deployment method, device, equipment and storage medium of micro-service application |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160907 |