SunVTS 2.1 Test Reference Manual
只搜尋這本書
以 PDF 格式下載這本書
CHAPTER 6

Compact Disc Test (cdtest)


cdtest checks the CD-ROM unit by reading the CD. cdtest is not a scalable test. Each track is classified as follows:
  • Mode 1 uses error detection/correction code (288 bytes)
  • Mode 2 uses that space for auxiliary data, or as an audio track.

Note - Load a scratch compact disc into the drive before starting the test. See the explanation for CD Type in TABLE 6-2 in the chart in "cdtest Test Modes," later in this chapter.


Volume Management and Compact Discs

cdtest tests the CD-ROM drive(s) even if the Volume Manager is not running. If the Volume Manager is running and no media is installed in the CD-ROM drive(s), then SunVTS prompts you to install media in the drive before selecting the test.
The test fails if you try to run it without a CD in the drive

cdtest Options

圖形

FIGURE 6-1 cdtest

TABLE 6-1 cdtest
cdtest OptionsDescription
CD TypeIndicates the type of compact disc to test from the CD Type menu. The choices are: pdo, multi-session, or other (the default CD type is other).In the connection test this option has a canned value of other. NOTE: Your choice must correspond with the disc used for testing
% Data/TrackTests a percentage of data on each track; type a value between 0 and 100 in this field to indicate the percentage. In the online and connection tests this option has a canned value of 2%
Read ModeIndicates the mode; choose between Random or Sequential reading. In random mode, data blocks are read from random track positions; in sequential mode, data blocks are read in sequence. For both modes, the total number of blocks read is determined by the %_of_data option. In the online and connection tests this option has a canned value of random
Audio TestEnables or disables the audio test. You must connect headphones or a speaker to the audio jack on the CD player to hear audio output. In the connection test this option has a canned value of disable
VolumeAdjusts the volume; type a value between 0 and 255 in this field. In the online and connection tests this option has a canned value of 125

cdtest Test Modes

This test supports Connection and Functional tests.
TABLE 6-2 cdtest
Test ModeDescription
Connection TestIn this mode, the test verifies that a CD-ROM drive is connected to and configured in the system
Functional TestThis mode is similar to Online mode except that the test registers a failure if the device is found to be busy. This is because SunVTS tests make the assumption that all the resources will be available for testing in the Functional test and therefore the unavailability of the device is interpreted as an indication of a fault condition

If you invoke SunVTS through SyMON, the following Functional Test description applies: This mode attempts to verify the functionality of the drive by accessing and reading the media in the drive. If the media contains audio and the audio test is enabled, it tries to play it. Only a small percentage of the media is read, as this is sufficient to verify the functionality of the drive and keeps the test runtime from being unnecessarily extended.

If the device is found to be busy at the time of testing the test exits after printing a message indicating that the device is unavailable for testing. The pass and error counts are unaffected


cdtest Command Line Syntax

/opt/SUNWvts/bin/cdtest standard_arguments -o dev=raw_device_name,
mode=mode,read=random|sequential,data=%_of_data,vol=volume,
audio=enable|disable,type=CD_type

TABLE 6-3 cdtest
ArgumentExplanation
dev=raw_device_nameSpecifies the name of the raw device to be tested.
read=random|sequentialIndicates random or sequential read access.
data=%_of_dataSets the percentage of data to be tested; you can specify 0 through 100 percent.
vol=volumeControls the audio volume; you can specify 0 through 255;
the default is 255.
audio=enable|disableEnables or disables the audio test; you must connect headphones or a speaker to the audio jack on the CD player to hear audio output.
type=CD_typeSpecifies the type of CD used for the test; the choices are: pdo, multi-session, sunos and others; the default is other.

cdtest Error Messages

TABLE 6-4 cdtest
Error MessageProbable Cause(s)Suggested Action (if applicable)
6000   Fail to seek at block

System error message....Retry with a different CD-
<value>                                                       ROM

Bad media
6001Fail to read <number>System error message

bytes at block <number>Bad media


Incorrect CD-ROM type passed
to cdtest
6002Data mode <value> not
supported
Datamode has a value other
than CD_DATAMODE1 or
CD_DATAMODE2 (see cdio(7))
6003Error occurred while playing audio track <number>
6004Failed to obtain memory
from malloc() system call
Audio stop before complete at
track <number>
6005Unexpected audio status <value> received at track <number>System error message
6006Fail in reading offset of
the multi-session, offset
An incorrect value for cdtype
has been passed to the cdtest

= <value>Bad media
6007This is not a CD ROM
Multi-Session disc!
An incorrect value for cdtype
was passed to the cdtest
8000Fail to open device
<device_name>
System error message
8001Fail ioctl <name>System error message
8002Fail ioctl <name>System error message


No partitions on the disc
8003Fail to allocate <number> bytes of memory
TABLE 6-4 cdtest(Continued)

Error MessageProbable Cause(s)Suggested Action (if applicable)
8004Error occurred while reading TOC headerTrack numbers out of range; First track: <value>, Last track: <value>
8005Data miscompare while
reading <number> bytes
An incorrect value for cdtype
has been passed to cdtest


starting from block <number>Bad media
8006ioctl CDROMSTART failure (number of retries: <value>)