1
0
Files
2022-09-29 17:59:04 +03:00

34 lines
980 B
Tcsh
Executable File

#!/bin/csh
#
# Datecode: July 31, 1993
#
# The following code was lifted almost directly from diskrand.start
/usr/diags/scripts/drivechk
if (-r /usr/tmp/TARGETS) then
@ i = 0
foreach DEVICE (`cat /usr/tmp/TARGETS`)
set TESTDEVICE = "/dev/rdsk/${DEVICE}s6" # Test usr partition
cd /usr/diags/crash/IO
if !(-f drand."$i") then
cp /usr/diags/crash/IO/diskrand /usr/tmp/drand."$i"
endif
/usr/tmp/drand."$i" $TESTDEVICE 500000 >& /usr/tmp/$DEVICE.ostest.out &
/usr/diags/os/bin/sio -t -M -b 500 -s 500 -r -n 1000 $TESTDEVICE >& /dev/null &
@ i++
end
else
echo "\nTHERE ISN'T ANY AVAILABLE TARGET\n"
exit
endif
echo Testing $i SCSI drives | tee -a /usr/tmp/ostests.log
# Now we start up the blast routines to drill serial and parallel ports
echo Starting port traffic tests | tee -a /usr/tmp/ostests.log
/usr/diags/os/bin/blast /dev/ttyd3 >& /dev/null &
/usr/diags/os/bin/blast /dev/ttyd4 >& /dev/null &
/usr/diags/os/bin/blast -p /dev/plp >& /dev/null &