Stress Test: cdrom

### TEST NAME

> cdrom - CD-ROM test

### SYNOPSIS

> `sh cdrom.sh` source_dir

### DESCRIPTION

> The `cdrom.sh` script builds a list of the files contained on the CD-ROM and then writes the list to a file under source_dir. Then, the `cdrom.sh` script copies one file at a time from the CD-ROM to a temporary directory. Next, it uses the `cmp`(1) command to compare the copied file with the original file present on the CD-ROM. If the `cmp` command fails, `cdrom.sh` writes an `ERROR` string and appends the error reported by the `cmp` command.

### OPERANDS

> source_dir
>   Path name of the directory that the test will copy to disk and then compare with the original.

### DURATION

> The test duration is about 15 minutes.

### POSSIBLE CONCURRENT TESTS

> This test runs after the `video` test finishes.

### REFERENCES

> `cmp`(1)

Copyright 2005 Sun Microsystems, Inc. All rights reserved.