Adding A New Test; Functions - Motorola System 6300 Service Manual

Table of Contents

Advertisement

SECTION 3:

ADDING A NEW TEST

This section describes how an experienced programmer adds a new
test.
The procedures for running new tests must conform to the
procedures for running existing tests (see the discussion on how
to run tests).
new test:
1.
Access the source.
the source.)
2.
Change the source.
should alter the source in any way.)
3.
Recompile the source using the make utility.
Each diagnostic must consist of two parts:
itself, which calls and passes functions, and an initialization
sequence, which disables any interrupts enabled by the
diagnostic.

FUNCTIONS

The diagnostic function is called with a subtest number (int) as
its single argument.
should run.
The diagnostic itself must manage the meaning of
this number and make sure that it is within range.
diagnostic must also update the global int CurSubtest to contain
the current subtest number.
processing.
The diagnostic must be prepared for this function to
return when executing in long or continuous mode.
sequence is:
error(longstring,subtest,shortstring)
where
longstring
subtest
The following three steps are necessary to add a
(You need a source license to access
(Only an experienced programmer
If this integer equals 0, then all subtests
A function error handles all error
the diagnostic
is a string that will be printed
on a terminal, if a terminal is
present.
is a positive integer that
specifies the subtest.
The
The calling
3-1

Advertisement

Table of Contents
loading

Table of Contents