CN107221345B - A kind of DVD drive function test method - Google Patents

A kind of DVD drive function test method Download PDF

Info

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
Application number
CN201710385550.3A
Other languages
Chinese (zh)
Other versions
CN107221345A (en
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201710385550.3A priority Critical patent/CN107221345B/en
Publication of CN107221345A publication Critical patent/CN107221345A/en
Application granted granted Critical
Publication of CN107221345B publication Critical patent/CN107221345B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/18Error detection or correction; Testing, e.g. of drop-outs
    • G11B20/1816Testing
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B2220/00Record carriers by type
    • G11B2220/20Disc-shaped record carriers
    • G11B2220/25Disc-shaped record carriers characterised in that the disc is based on a specific recording technology
    • G11B2220/2537Optical discs
    • G11B2220/2562DVDs [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

A kind of DVD drive function test method
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.
CN201710385550.3A 2017-05-26 2017-05-26 A kind of DVD drive function test method Active CN107221345B (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
CN107221345A (en) 2017-09-29

Similar Documents

Publication Publication Date Title
CN102568522B (en) The method of testing of hard disk performance and device
CN109119124B (en) Production method of solid state disk and solid state disk
CN107391333B (en) OSD disk fault testing method and system
CN103744764A (en) Crontab based whole computer memory stability test method
CN111209206B (en) Automatic test method and system for software products
CN104317712A (en) Linux-based storage server fatigue testing method
CN104660471A (en) Method for automatically testing PCIE-SSD transmitting velocity and band width under Linux
CN105260274A (en) Linux-based hard disk random hot plug stability detection method
CN107818029A (en) A kind of cloud hard disc data recovers the automated testing method of uniformity
CN107221345B (en) A kind of DVD drive function test method
CN109256173A (en) On-board memory devices test macro
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
CN112731117A (en) Automatic verification method and system for chip, and storage medium
CN111367710B (en) eMMC problem reduction method and device
CN110674038A (en) Method and device for classifying error information in software test
CN115987821A (en) Gateway routing test method and device
CN116257437A (en) ADAS system defect verification method and device based on real vehicle data reinjection
CN101556552A (en) Test method of basic input output system
CN107480022A (en) A kind of method of testing of Storage RACK system disks automatically scanning detection
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

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