Google
 

Trailing-Edge - PDP-10 Archives - BB-4171H-BM - uetp/lib/mta7.cmp
There are 14 other files named mta7.cmp in the archive. Click here to see a list.
!TIME 0:30:0
! Template for Comprehensive tape tests
!
! Test MTA7.CMP
!
!THIS SOFTWARE IS FURNISHED UNDER A LICENSE AND MAY ONLY BE USED
!  OR COPIED IN ACCORDANCE WITH THE TERMS OF SUCH LICENSE.
!
!COPYRIGHT (C) 1979 BY DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS.
!
!FILES NEEDED:
!	MTASKR.EXE
!	MTASKF.EXE
!	MTABAK.EXE
!	MTABKR.EXE
!	TAPWRT.EXE
!	TAPRED.EXE
!

!.R SETSRC
*CP [5,33,MTA]
*LIB:[5,33]
*

!.Set default prot <000>

@DEFINE UTP: <UETP.LIB>		!.none
@DEF DSK: <UETP.MTA>,DSK:<UETP.LIB>	!.none

@DEF OUT: PS:<UETP.MTA>	!.ASSIGN DSK: OUT:
@TAKE SYS.CMD	!.none

@RUN UTP:SENDER	!.RUN UTP:SENDER
*TYPE START
*BLABEL BEGIN:
*TEST MTA7
*SEND Start of MTA7
*EXIT

@TAKE SYS.CMD	!.none
@IF (NOERROR) @GOTO BEGIN2:	!.IF (NOERROR) .GOTO BEGIN2:

@RUN  UTP:SENDER	!.RUN  UTP:SENDER
*TYPE error
*BLABEL BEGIN1:
*TEST MTA7
*SEND ERROR on TAKE SYS.CMD
*EXIT
@GOTO ENDERR:	!.GOTO ENDERR:

begin2::

MTA::
@DEFINE MAG: MTA7:	!.none
@ASSIGN MAG:	!.ASSIGN MTA7: MAG:
@IF (NOERROR) @GOTO MTA7:	!.IF (NOERROR) .GOTO MTA7:

@MOUNT TAPE MTA7:/WRITE-ENABLED/LABEL-TYPE:UNLABELED/NOUNLOAD/REMARK:"Please mount MTA7:"	!.MOUNT MTA:MAG/WRIT:Y/REEL:MTA7/VID:"Please mount MTA7"
@IF (NOERROR) @GOTO MTA7:	!.IF (NOERROR) .GOTO MTA7:

	! ***** message: ERROR assigning MTA7
@RUN UTP:SENDER	!.RUN UTP:SENDER
*TYPE ERROR
*BLABEL MTA:
*TEST MTA7
*SEND ERROR assigning MTA7:
*EXIT
@GOTO ENDERR::	!.GOTO ENDERR::

MTA7::
@REW MAG:
@IF (NOERROR) GOTO MTA7:	!.IF (NOERROR) GOTO MTA7:

	! ***** message: device MTA7: is not online
@RUN UTP:SENDER	!.RUN UTP:SENDER
*type error
*blabel MTA7:
*test MTA7
*Send Device MTA7: is not online
*exit
@GOTO ENDERR:	!.GOTO ENDERR:

MTA7::
@copy MTA7.CMP mag:	!.COP MAG:=MTA7.CMP
@IF (NOERROR) GOTO MTA7:	!.IF (NOERROR) GOTO MTA7:

	! ***** message: device MTA7: is write-protected
@RUN UTP:SENDER	!.RUN UTP:SENDER
*type error
*blabel MTA7::
*test MTA7
*send device MTA7: is write-protected
*exit
@GOTO ENDERR:	!.GOTO ENDERR:

MTA7::
@RUN UTP:MTABKR.EXE	!.RUN UTP:MTABKR.EXE
@IF (NOERROR) @GOTO MTA7:	!.IF (NOERROR) .GOTO MTA7:

	! ***** MESSAGE: ERROR in MTA7 ON 'RUN MTABKR'

@RUN UTP:SENDER	!.RUN UTP:SENDER
*TYPE ERROR
*BLABEL MTA7:
*TEST MTA7
*SEND ERROR in MTA7 ON 'RUN MTABKR'
*EXIT
@GOTO MTA7:	!.GOTO MTA7:

MTA7::
*00003
@IF (NOERROR) @GOTO MTA7:	!.IF (NOERROR) .GOTO MTA7:

	! ***** message: ERROR in MTA7 MTABKR.EXE
@RUN UTP:SENDER	!.RUN UTP:SENDER
*TYPE ERROR
*BLABEL MTA7:
*TEST MTA7
*SEND ERROR in MTA7 MTABKR.EXE
*EXIT

MTA7::
@RUN UTP:MTASKF.EXE	!.RUN UTP:MTASKF.EXE
@IF (NOERROR) @GOTO MTA7:	!.IF (NOERROR) .GOTO MTA7:

	! ***** MESSAGE: ERROR in MTA7 ON 'RUN MTASKF'
@RUN UTP:SENDER	!.RUN UTP:SENDER
*TYPE ERROR
*BLABEL MTA7:
*TEST MTA7
*SEND ERROR MTA7 ON 'RUN MTASKF'
*EXIT
@GOTO MTA7:	!.GOTO MTA7:

MTA7::
*00003
@IF (NOERROR) @GOTO MTA7:	!.IF (NOERROR) .GOTO MTA7:

	! ***** message: ERROR in MTA7 MTASKF.EXE
@RUN UTP:SENDER	!.RUN UTP:SENDER
*TYPE ERROR
*BLABEL MTA7:
*TEST MTA7
*SEND ERROR in MTA7 MTASKF.EXE
*EXIT

MTA7::
@RUN UTP:MTASKR.EXE	!.RUN UTP:MTASKR.EXE
@IF (NOERROR) @GOTO MTA8:	!.IF (NOERROR) .GOTO MTA8:

	! ***** MESSAGE: ERROR in MTA7 ON 'RUN MTASKR'
@RUN UTP:SENDER	!.RUN UTP:SENDER
*TYPE ERROR
*BLABEL MTA7:
*TEST MTA7
*SEND ERROR in MTA7 ON 'RUN MTASKR'
*EXIT
@GOTO MTA9:	!.GOTO MTA9:

MTA8::
*00003
@IF (NOERROR) @GOTO MTA9:	!.IF (NOERROR) .GOTO MTA9:

	! ***** message: ERROR in MTA7 MTASKR.EXE
@RUN UTP:SENDER	!.RUN UTP:SENDER
*TYPE ERROR
*BLABEL MTA8:
*TEST MTA7
*SEND ERROR in MTA7 MTASKR.EXE
*EXIT

MTA9::
@RUN UTP:MTABAK.EXE	!.RUN UTP:MTABAK.EXE
@IF (NOERROR) @GOTO MTA70:	!.IF (NOERROR) .GOTO MTA70:

	! ***** MESSAGE: ERROR in MTA7 ON 'RUN MTABAK'
@RUN UTP:SENDER	!.RUN UTP:SENDER
*TYPE ERROR
*BLABEL MTA9:
*TEST MTA7
*SEND ERROR in MTA7 ON 'RUN MTABAK'
*EXIT
@GOTO ENDERR:	!.GOTO ENDERR:

MTA70::
*3
@IF (NOERROR) GOTO MTA71:	!.IF (NOERROR) GOTO MTA71:

	! ***** message: ERROR in MTA7 MTAbak.EXE
@RUN UTP:SENDER	!.RUN UTP:SENDER
*TYPE ERROR
*BLABEL MTA70:
*TEST MTA7
*SEND ERROR in MTA7 MTABAK.EXE
*EXIT
@GOTO MTA71:	!.GOTO MTA71:

MTA71::
	! ***** MESSAGE: RUNNING TAPWRT AT 1600 BPI
@RUN UTP:SENDER	!.RUN UTP:SENDER
*TYPE MINOR
*BLABEL MTA71:
*TEST MTA7
*SEND RUNNING TAPWRT AT 1600 BPI
*EXIT

@RUN UTP:TAPWRT	!.RUN UTP:TAPWRT
*MTA7:
*1600
@IF (NOERROR) GOTO MTA72:	!.IF (NOERROR) GOTO MTA72:

	! ***** MESSAGE ERROR RUNNING TAPWRT
@RUN UTP:SENDER	!.RUN UTP:SENDER
*TYPE ERROR
*BLABEL MTA71:
*TEST MTA7
*SEND ERROR RUNNING TAPWRT
*EXIT
@GOTO ENDERR:	!.GOTO ENDERR:

MTA72::
@RUN UTP:TAPRED.EXE	!.RUN UTP:TAPRED.EXE
*MTA7:
*1600
@IF (NOERROR) GOTO END:	!.IF (NOERROR) GOTO END:

	! ***** MESSAGE ERROR RUNNING TAPRED
@RUN UTP:SENDER	!.RUN UTP:SENDER
*TYPE ERROR
*BLABEL MTA72:
*TEST MTA7
*SEND ERROR RUNNING TAPRED
*EXIT
@GOTO ENDERR:	!.GOTO ENDERR:

%TERR::
	! ***** MESSAGE: TIME-OUT ERROR MTA7
@RUN UTP:SENDER	!.RUN UTP:SENDER
*TYPE ERROR
*BLABEL %TERR:
*TEST MTA7
*SEND TIME-OUT ERROR MTA7
*EXIT
@GOTO ENDERR:	!.GOTO ENDERR:

%ERR::
	! ***** MESSAGE: UNKNOWN ERROR IN MTA7
@RUN UTP:SENDER	!.RUN UTP:SENDER
*TYPE ERROR
*BLABEL %ERR:
*TEST MTA7
*SEND UNKNOWN ERROR IN MTA7
*EXIT
@GOTO ENDERR:	!.GOTO ENDERR:

ENDERR::
@INF DIS <UETP.MTA>	!.none
@VDIR *.*	!.none
@I LOG ALL	!.none
@INF FI	!.none
@INF MEM	!.none

END::
%FIN::
	! ***** message: END OF MTA7: TEST
@RUN  UTP:SENDER	!.RUN  UTP:SENDER
*TYPE END
*BLABEL END:
*TEST MTA7
*SEND END OF MTA7:  TEST
*EXIT