CN107221345B - A kind of DVD drive function test method - Google Patents
A kind of DVD drive function test method Download PDFInfo
- Publication number
- CN107221345B CN107221345B CN201710385550.3A CN201710385550A CN107221345B CN 107221345 B CN107221345 B CN 107221345B CN 201710385550 A CN201710385550 A CN 201710385550A CN 107221345 B CN107221345 B CN 107221345B
- Authority
- CN
- China
- Prior art keywords
- test
- file
- random
- value
- rom drive
- 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.)
- Active
Links
- 238000010998 test method Methods 0.000 title claims abstract description 10
- 238000012360 testing method Methods 0.000 claims abstract description 78
- 238000012856 packing Methods 0.000 claims abstract description 5
- 238000000034 method Methods 0.000 claims description 10
- 230000002159 abnormal effect Effects 0.000 claims description 6
- 238000012423 maintenance Methods 0.000 claims description 5
- 238000012545 processing Methods 0.000 claims 1
- 238000011990 functional testing Methods 0.000 description 4
- 239000000178 monomer Substances 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11B—INFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
- G11B20/00—Signal processing not specific to the method of recording or reproducing; Circuits therefor
- G11B20/10—Digital recording or reproducing
- G11B20/18—Error detection or correction; Testing, e.g. of drop-outs
- G11B20/1816—Testing
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11B—INFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
- G11B2220/00—Record carriers by type
- G11B2220/20—Disc-shaped record carriers
- G11B2220/25—Disc-shaped record carriers characterised in that the disc is based on a specific recording technology
- G11B2220/2537—Optical discs
- G11B2220/2562—DVDs [digital versatile discs]; Digital video discs; MMCDs; HDCDs
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Optical Recording Or Reproduction (AREA)
Abstract
The invention discloses DVD drive function test methods, comprising the following steps: utilizes several files of generating random number, by reference number of a document, calculates the MD5 value of each number file, the file packing of generation is fabricated to ISO mirror image;By ISO mirror image imprinting to CD;Program is write, prompts test man to press the ejector button on CD-ROM drive, CD holder pop-up, is put into CD and CD is pushed into CD-ROM drive after test man has pressed;A number is generated at random, the file of corresponding number in the step 1) in CD is read according to this random digit generated at random, and file calculates MD5 value after the completion of reading, MD5 value is compared with the practical MD5 value of this document;The operation for repeating step 4) carries out random write test to entire CD, and test is read if reading normally and is passed through, test crash if there is mistake is read;After the completion of random test, using system command by CD automatic spring, and test man is prompted to take out CD, then CD is pushed back, entire test terminates.
Description
Technical field
The present invention relates to the present invention relates to server DVD drive functional test field more particularly to a kind of DVD drive functions
Test method.
Background technique
In current server manufacturing works, a series of tests, including complete machine configuration inspection will be carried out after being assembled into complete machine
Test, functional test and burn-in test, to guarantee to which the configuration of shipment complete machine meets the requirements, function is good and performance is stablized.It is each
Ability shipment after the only test of platform server complete machine passes through, wherein DVD drive test is a very important test, it is ensured that
CD-ROM drive ejector button function is normal, it is errorless to read data, also to guarantee that test automation, testing time as far as possible are as short as possible,
These functions are realized, smooth stable operation, and it is very difficult for capable of testing out real machine problem.Existing skill
There are the following problems in the test of art: the factory having needs operator is whole to press ejector button manually, can not achieve automation
Test.One file is first calculated MD5 value by some factories, this file is burnt in CD, and CD is put by when test
CD-ROM drive, CD-ROM drive read file and calculate MD5 value, then indicate CD-ROM drive read functions when the MD5 value and consistent reality being calculated
Normally.Current CD capacity at least several hundred M or even a few G run through entire file and need to expend if the file of imprinting is larger
For a long time, testing efficiency is low;If file is smaller, until the entire CD overwhelming majority is made all to be sky, CD-ROM drive cannot be tested to whole
Situation is read in a disc sector, and test effect is bad.Based on these problems, we have developed a kind of DVD drive functions of optimization
Test method and process.
Summary of the invention
For solving the above-mentioned problems of the prior art, it is an object of the present invention to provide a kind of DVD drive functional tests
Method;The present invention is capable of the file of generating random number several a certain size, is burnt in CD, ensure that monomer file not
Greatly, reading document time is few, and calculating MD5 speed is fast, improves testing efficiency;The total size of the file of generating random number of the present invention
Close to CD capacity, after being burnt to CD, almost there are number in each sector non-empty of CD, random all positions of time disk of reading
According to can verify when reading whether wrong, ensure that the reliability of test Quality advance test.
The technical solution of present invention solution technical problem are as follows:
A kind of DVD drive function test method, comprising the following steps:
1) using the file of generating random number several a certain size, and the file of generation is numbered respectively, is calculated separately
Then the file packing of generation is fabricated to ISO mirror image by the MD5 value of each number file;
2) by the ISO mirror image imprinting made to CD, entire CD is carved completely, guarantees that CD-ROM drive has reading to entire CD
It takes;
3) program is write, test man is prompted to press the ejector button on CD-ROM drive, CD holder pop-up after test man has pressed,
It is put into CD and CD is pushed into CD-ROM drive;
4) number is generated at random using random number, read in CD according to this random digit generated at random
The file of corresponding number in step 1), file calculate MD5 value after the completion of reading, and the MD5 value being calculated and this document is real
Border MD5 value is compared, identical, and test passes through, different then test crash, and test crash shows that CD-ROM drive reading CD is wrong,
CD ROM function is abnormal, carries out changing part or maintenance process;
5) operation for repeating step 4) carries out random write test to entire CD, and test is read if reading normally and is passed through,
It reads and mistake then test crash occurs, test crash shows that CD-ROM drive reading CD is wrong, and CD ROM function is abnormal, carries out changing part
Or maintenance process;
6) after the completion of random test, using system command by CD automatic spring, and test man is prompted to take out CD, then
CD is pushed back, entire test terminates.
One file size of the step 1) is 55M, and file is respectively 1,2,3,4,5,6,7,8, and the file of generation is beaten
It packs and is made ISO mirror image, the size of the ISO mirror image is 8x55M, i.e. 440M;The step 4) at random generate one 1~8 it
Between number, the file of the corresponding number in CD is read according to this random digit generated at random.
Beneficial effects of the present invention:
1. test method of the invention is the file using generating random number several a certain size and is burnt to CD
In, monomer file is smaller, and reading document time is few, and calculating MD5 value speed is fast, improves testing efficiency.
2. the total size of random number file of the present invention close to CD capacity, be burnt to CD after, the almost each sector of CD
There are data in all non-emptys, random all positions of time disk of reading, ensure that CD-ROM drive can be written and read entire disk, improve
Test quality.
3. the present invention presses button pop-up CD holder by using prompt test man, final step is automatic spring CD
Bracket ensure that the function of ejector button is normal, and reduce the number that operator presses button.
Detailed description of the invention
Fig. 1 is the structural schematic diagram of invention.
Specific embodiment
For a better understanding of the present invention, embodiments of the present invention are explained in detail with reference to the accompanying drawing.
As shown in Fig. 1 flow chart, a kind of DVD drive function test method, comprising the following steps:
1) using the file of generating random number several a certain size, a citing such as file size is 55M, and will be generated
File number respectively, such as number be respectively 1,2,3,4,5,6,7,8, calculate separately the MD5 value of each number file, then
The file packing of generation is fabricated to ISO mirror image, the size of the ISO mirror image is 8x55M, i.e. 440M.
2) by the ISO mirror image imprinting made to CD, ISO mirror image size is 440M, and entire CD is carved to full, guarantor substantially
Having demonstrate,proved CD-ROM drive has reading to entire CD.
3) program is write, test man is prompted to press the ejector button on CD-ROM drive, CD holder pop-up after test man has pressed,
It is put into CD and CD is pushed into CD-ROM drive;
4) number between one 1~8 is generated at random using random number, read according to this random digit generated at random
MD5 value, the MD5 value that will be calculated are calculated after the completion of taking the file of corresponding number in the step 1) in CD, file to read
It is compared with the practical MD5 value of this document, identical, test passes through, different then test crash, and test crash shows that CD-ROM drive is read
Take CD wrong, CD ROM function is abnormal, carries out changing part or maintenance process.
5) operation for repeating step 4 carries out random write test to entire CD, and test is read if reading normally and is passed through,
It reads and mistake then test crash occurs, test crash shows that CD-ROM drive reading CD is wrong, and CD ROM function is abnormal, carries out changing part
Or maintenance process.
6) after the completion of random test, using system command by CD automatic spring, and test man is prompted to take out CD, then
CD is pushed back, entire test terminates.
The present invention is to the specific work process and principle of server DVD drive functional test: raw first with random number
At several a certain size file, such as CD is 440M size, then generates the file of 8 55M, such as number is respectively 1,
2,3,4,5,6,7,8, and its MD5 value is calculated separately, and it being then wrapped into being fabricated to ISO mirror image, the size of mirror image is 8x55M,
That is 440M.Again by the ISO mirror image imprinting made to CD, ISO mirror image size is 440M, is substantially carved entire CD full.It compiles
It programming, test man is prompted to press the ejector button on CD-ROM drive, after test man has pressed, CD holder pop-up is put into CD, and
CD is pushed into CD-ROM drive.It generates the number between one 1~8 at random using random number, CD is read according to this random digit
In reference numeral file, calculate MD5 value after the completion of reading, and be compared with the practical MD5 value of this document, it is identical, test
Pass through, different then test crash.Random write is carried out to entire CD and tests the set time, it is logical that test is read if reading normally
It crosses, reads and mistake then test crash occur.Using system command by CD automatic spring, and test man is prompted to take out CD,
CD is pushed back again, entire test terminates.
The process first step of the invention is that prompt test man presses button pop-up CD holder, and final step is automatic spring
CD holder ensure that the function of ejector button is normal, and reduce the number that operator presses button.If generating random number
Dry a certain size file, is burnt in CD, ensure that monomer file is little, and it is few to read entire document time, calculates MD5
Speed is fast, improves testing efficiency.The file of generating random number several a certain size makes total size close to CD capacity, carves
After recording CD, the almost each sector non-empty of CD.When random reading, there are data in all positions of CD, can test reading
It is whether wrong when taking, it ensure that test quality, improve the reliability accuracy of test.
Although above-mentioned be described in conjunction with specific embodiment of the attached drawing to invention, not to the scope of the present invention
Limitation, based on the technical solutions of the present invention, those skilled in the art do not need to make the creative labor and can make
Various modifications or changes still within protection scope of the present invention.
Claims (2)
1. a kind of DVD drive function test method, characterized in that the following steps are included:
1) using the file of generating random number several a certain size, and the file of generation is numbered respectively, is calculated separately each
Then the file packing of generation is fabricated to ISO mirror image by the MD5 value of number file;
2) by the ISO mirror image imprinting made to CD, entire CD is carved completely, guarantees that CD-ROM drive has reading to entire CD;
3) program is write, prompts test man to press the ejector button on CD-ROM drive, CD holder pop-up, is put into after test man has pressed
CD is simultaneously pushed into CD-ROM drive by CD;
4) number is generated at random using random number, the step in CD is read according to this random digit generated at random
1) file of corresponding number in, file calculates MD5 value after the completion of reading, by the MD5 value being calculated and the practical MD5 of this document
Value is compared, identical, and test passes through, different then test crash, and test crash shows that CD-ROM drive reading CD is wrong, CD-ROM drive
Function is abnormal, carries out changing part or maintenance process;
5) operation for repeating step 4) carries out random write test to entire CD, and test is read if reading normally and is passed through, is read
There is mistake then test crash, test crash shows that CD-ROM drive reading CD is wrong, and CD ROM function is abnormal, carries out changing part or dimension
Repair processing;
6) after the completion of random test, using system command by CD automatic spring, and test man is prompted to take out CD, then by light
Disk pushes back, and entire test terminates.
2. a kind of DVD drive function test method as described in claim 1, characterized in that a file of the step 1)
Size is 55M, and reference number of a document is respectively 1,2,3,4,5,6,7,8, and the file packing of generation is fabricated to ISO mirror image, the ISO mirror
The size of picture is 8x55M, i.e. 440M;The step 4) generates the number between one 1~8 at random, according to this generated at random
A random digit reads the file of the corresponding number in CD.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710385550.3A CN107221345B (en) | 2017-05-26 | 2017-05-26 | A kind of DVD drive function test method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710385550.3A CN107221345B (en) | 2017-05-26 | 2017-05-26 | A kind of DVD drive function test method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107221345A CN107221345A (en) | 2017-09-29 |
CN107221345B true CN107221345B (en) | 2019-07-30 |
Family
ID=59946810
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710385550.3A Active CN107221345B (en) | 2017-05-26 | 2017-05-26 | A kind of DVD drive function test method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107221345B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108304249B (en) * | 2017-12-26 | 2021-08-24 | 广东睿江云计算股份有限公司 | Method and system for rapidly replacing optical disk ISO file by XenServer virtual machine |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101145381B (en) * | 2006-09-15 | 2010-09-29 | 鸿富锦精密工业(深圳)有限公司 | Optical drive test system and method |
CN102053899A (en) * | 2009-10-28 | 2011-05-11 | 鸿富锦精密工业(深圳)有限公司 | Memory test method and system |
CN104516759B (en) * | 2014-12-08 | 2018-07-27 | 武汉烽火网络有限责任公司 | A kind of integrated mirror image document generating method, test method and device |
-
2017
- 2017-05-26 CN CN201710385550.3A patent/CN107221345B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN107221345A (en) | 2017-09-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109119124B (en) | Production method of solid state disk and solid state disk | |
CN107391333B (en) | OSD disk fault testing method and system | |
CN102568522A (en) | Hardware performance test method and device | |
CN103744764A (en) | Crontab based whole computer memory stability test method | |
CN104317712A (en) | Linux-based storage server fatigue test method | |
CN105608258A (en) | Model based system design and information flow visualization simulation system and method | |
CN104091616A (en) | Method for detecting data consistency of set top box built-in flash chip | |
CN110109773A (en) | A kind of detection method and system of magnetic disk of virtual machine consistency | |
CN107818029A (en) | A kind of cloud hard disc data recovers the automated testing method of uniformity | |
CN104422865A (en) | Wafer-level one time programmable (OTP) chip test method and device | |
CN107221345B (en) | A kind of DVD drive function test method | |
US10768852B2 (en) | Batch automatic test method for solid state disks and batch automatic test device for solid state disks | |
CN103279408B (en) | The method of testing of raid-array RAID performance | |
CN104516759A (en) | Generating method for integration mirror image document, testing method and device | |
CN103154755B (en) | Test apparatus for generating reference scan chain test data, test system and method | |
CN116090380B (en) | Automatic method and device for verifying digital integrated circuit, storage medium and terminal | |
CN106407122A (en) | Testing method used for software automatic generation system | |
CN104063308A (en) | Data verification method and device | |
CN110674038A (en) | Method and device for classifying error information in software test | |
CN106909484B (en) | System and method for simulating bad disk test in storage environment | |
CN112463472B (en) | Automatic testing method and device for disk array, electronic equipment and storage medium | |
CN115987821A (en) | Gateway routing test method and device | |
CN108958658B (en) | Target data acquisition method and device | |
CN111857573A (en) | Intelligent replacement method and system based on RAID (redundant array of independent disks) fault member disk | |
CN107797915B (en) | Fault repairing method, device and 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |