JPS63257839A - Debug system for test program - Google Patents

Debug system for test program

Info

Publication number
JPS63257839A
JPS63257839A JP62091946A JP9194687A JPS63257839A JP S63257839 A JPS63257839 A JP S63257839A JP 62091946 A JP62091946 A JP 62091946A JP 9194687 A JP9194687 A JP 9194687A JP S63257839 A JPS63257839 A JP S63257839A
Authority
JP
Japan
Prior art keywords
input
test program
output processing
pseudo
output
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP62091946A
Other languages
Japanese (ja)
Inventor
Osamu Omoto
大本 修
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP62091946A priority Critical patent/JPS63257839A/en
Publication of JPS63257839A publication Critical patent/JPS63257839A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To allow the titled system to simplify the simulate means and to cope with versatile peripheral equipment by effectively utilizing an expected value of a test program and allowing a pseudo fault information designation means to set the device status attended with an optional input/output operation. CONSTITUTION:When a console 82 is designated as an input source device of a pseudo fault data, a test program monitor 42 displays a pattern inquiring about an input/output routine desired to be an object onto the console 82. When a prescribed input is finished, a start number designated to a pseudo fault registration table is set to start the execution of a test program 41. Then a macroinstruction processing compares the input/output processing number of the input/output processing routine to be executed from now with all start numbers of the table and when no coincident number exists, it is processed there is no pseudo fault setting in the succeeding series of input/output operations and the expected value of the program 41 is used as an actual value. When the coincident number exists, a pseuso fault item to be set is inquired at each occasion of execution of instruction and when the required information is set, simulation is executed according to the information.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は情報処理システムの周辺装置に対して試験を行
なう試験プログラムのデバッグ方式に関し、特にシミュ
レート手段を使用したデバッグ方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a debugging method for a test program for testing peripheral devices of an information processing system, and particularly to a debugging method using simulating means.

〔従来の技術〕[Conventional technology]

−aに、プログラムを新規に開発した場合、あるいは既
に開発されたプログラムを改造して新たなプログラムを
作成した場合などにおいて、そのプログラムが所期の目
的を達成するか否か、ハゲが存在しないか否かを調べる
為に、デバッグが実施される。
-a. When a new program is developed, or when a new program is created by modifying an already developed program, whether or not the program achieves the intended purpose is checked. Debugging is performed to find out whether this is the case.

このようなデバッグは、そのプログラムが動作する環境
で使用される装置が現実に存在すれば、通常はその装置
を使って行なわれる。しかし、装置開発期間の短縮化や
デバッグ用情弗処理システムの縮小化等の理由で実際の
装置を使用してデバッグすることが困難な場合もある。
Such debugging is normally performed using a device used in the environment in which the program operates, if that device actually exists. However, it may be difficult to debug using an actual device due to reasons such as shortening the device development period or downsizing the debugging information processing system.

そのような場合には、一般に、対象装置を擬似するシミ
ュレーション用プログラムを開発して用いることが多く
、これらのシミュレーション用プログラムは大別すると
次のような方式に分けられる。
In such cases, simulation programs that simulate the target device are often developed and used, and these simulation programs can be broadly classified into the following types.

■ デバッグ対象プログラムが実行される処理装置上で
動作するプログラムにシミュレーション用プログラムを
リンクさせる方式。
■ A method of linking a simulation program to a program running on the processing device where the program to be debugged is executed.

■ デバッグ対象プログラムが実行される処理装置シス
テム八に接続される別の処理装置システムBで動作し、
システムAの入出力命令がすべてシステムBに対して実
行され、システムBが対象装置をシミュレートする方式
■ Operates on another processing device system B connected to processing device system 8 on which the program to be debugged is executed,
A method in which all input/output instructions from system A are executed to system B, and system B simulates the target device.

上述したシミュレーション用プログラムは何れの方式を
採るにしても、従来は、デバッグをある程度正確に行な
う為にシミュレーション対象となる装置を正確にシミュ
レートしており、従って膨大なステップ数を必要として
いた。
Regardless of the method used by the above-mentioned simulation program, in the past, in order to perform debugging with some degree of accuracy, the device to be simulated was accurately simulated, and therefore a huge number of steps were required.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

ところで、情報処理システムにおいては、周辺装置に対
して試験を行なう試験プログラムが使用されているが、
そのような試験プログラムのデバッグも、他の種類のプ
ログラムのデバッグと同様に対象となる周辺装置が実在
しない場合等には、試験対象となる周辺装置と同等の機
能を擬似するシミュレーション用プログラムを用いてデ
バッグを行なっていた。この為にシミュレーション用プ
ログラムの開発に多大な時間を要し、試験プログラムの
デバッグを速やかに行なうことが困難であるという問題
があった。また、試験プログラムの試験対象となる周辺
装置は多種多機能である他、その機能も同種の装置であ
っても機種毎に異なることから、開発するシミュレーシ
ョン用プログラムも雑多なものとなる問題があった。更
に、新規な周辺装置が開発される度にシミュレーション
用プログラムを大幅に改造しなければならない問題点も
あった。
By the way, in information processing systems, test programs are used to test peripheral devices.
Similar to debugging other types of programs, when debugging such test programs does not actually exist, a simulation program that simulates the functionality of the peripheral device to be tested is used. I was debugging it. For this reason, there is a problem in that it takes a lot of time to develop a simulation program, and it is difficult to quickly debug a test program. In addition, the peripheral devices that are tested by the test program have a wide variety of functions, and even if they are the same type of device, the functions vary depending on the model, so there is a problem that the simulation program to be developed will be miscellaneous. Ta. Furthermore, there is a problem in that the simulation program must be significantly modified every time a new peripheral device is developed.

本発明はこのような従来の問題点を解決したものであり
、その目的は、周辺装置の試験を行なう試験プログラム
に好適なデバッグ方式を提供することにある。
The present invention solves these conventional problems, and its purpose is to provide a debugging method suitable for test programs for testing peripheral devices.

c問題点を解決するための手段〕 本発明の試験プログラムのデバッグ方式は、各入出力処
理ルーチンが複数のマクロ命令で記述されると共に、マ
クロ命令のパラメータ部に試験結果の期待値を持ち、周
辺装置を試験して得られた実際値と前記期待値との比較
により前記周辺装置を試験する試験プログラムのデバッ
グ方式において、 前記試験プログラムを構成する各入出力処理ルーチンに
独自の入出力処理番号を付与しておくと共に、 擬似障害の対象とする入出力処理ルーチンの前記入出力
処理番号、擬似データを含む擬似障害に関する情報を指
定する擬似障害情報指定手段と、前記試験プログラムが
試験する周辺袋Uをシミュレートするシミュレート手段
とを設け、該シミュレート手段は、前記試験プログラム
のシミュレート動作要求時、実行される各入出力処理ル
ーチン毎に、該入出力処理ルーチンに対して擬似障害が
指定されているか否かを前記擬似障害情報指定手段から
指定された入出力処理番号に応じて判別し、擬似障害の
指定がない入出力処理ルーチンに関しては、該入出力処
理ルーチンを構成するマクロ命令のパラメータ部で指示
された期待値を前記実際値とし、擬似障害の指定がある
入出力処理ルーチンに関しては、前記擬似障害情報指定
手段から指定された擬似データを前記実際値とする構成
を有する。
Means for Solving Problem c] In the test program debugging method of the present invention, each input/output processing routine is described by a plurality of macro instructions, and the parameter section of the macro instruction has an expected value of the test result, In a debugging method for a test program that tests a peripheral device by comparing an actual value obtained by testing the peripheral device with the expected value, each input/output processing routine making up the test program is assigned a unique input/output processing number. and a simulated failure information specifying means for specifying the input/output processing number of the input/output processing routine targeted for the simulated failure, information regarding the simulated failure including the simulated data, and a peripheral bag to be tested by the test program. simulating means for simulating U, and the simulating means detects a pseudo failure for each input/output processing routine to be executed when the test program requests a simulation operation. It is determined whether the input/output processing routine is specified or not according to the input/output processing number specified by the pseudo failure information specifying means, and for an input/output processing routine for which a pseudo failure is not specified, the macro instruction constituting the input/output processing routine is determined. The actual value is the expected value specified in the parameter section, and for an input/output processing routine in which a pseudo failure is specified, the pseudo data specified by the pseudo failure information designation means is used as the actual value.

〔発明の原理と作用〕[Principle and operation of the invention]

本発明の試験プログラムのデバッグ方式は、試験プログ
ラムの持つ特徴を有効に利用することにより、周辺装置
を擬似するシミュレート手段を節易なものとし、また多
種多様な周辺装置の擬似に対処している。即ち、試験プ
ログラムは他のプログラムと異なり、周辺装置の入出力
動作結果の期待値を有しており、その期待値と実際値と
の比較により周辺装置の試験を行なうものである。従っ
て、期待値通りの実際値が周辺装置から返ってきたとき
にそれに合った動作を試験対象プログラムが正常に行な
っているか否かを調べる際には、周辺装置のシミュレー
ト手段は周辺装置の全ての動作を正確にシミュレートす
る必要はなく、その期待値を実際値として返すシミュレ
ーションを行なえば済む。これによって、シミュレート
手段を簡易なものとすることができる。
The test program debugging method of the present invention makes it possible to simplify the simulation means for simulating peripheral devices by effectively utilizing the characteristics of the test program, and also to cope with the simulation of a wide variety of peripheral devices. There is. That is, unlike other programs, the test program has an expected value of the input/output operation result of the peripheral device, and tests the peripheral device by comparing the expected value with the actual value. Therefore, when checking whether the program under test is correctly performing the operation corresponding to the expected actual value returned from the peripheral device, the means for simulating the peripheral device is It is not necessary to accurately simulate the operation of , it is sufficient to perform a simulation that returns the expected value as the actual value. This allows the simulation means to be simplified.

また、周辺装置に障害が発生したことを想定し、そのと
きに試験プログラムがそれに合った動作を正常に行なう
か否かを調べる際にも、周辺装置に障害が発生したと等
価な擬似障害を正確にシミュレートする仕組みをシミュ
レート手段自体に組込むのではなく、起こそうとする擬
似障害の種類に合った周辺装置からの応答内容つまり擬
似データを外部のフロッピーディスク装置やコンソール
等の擬似障害情報指定手段からシミュレート手段に与え
、シミュレート手段はこの擬似データを周辺NWからの
実際値とするシミュレーションを行なうように構成すれ
ば、シミュレート手段を簡易なものとすることができる
と共に、多種多様な周辺装置の擬似が容易に実現できる
ことになる。更に、実装置では容易に設定できないよう
な装置状態も簡単に設定することができる。
Also, when we assume that a failure has occurred in a peripheral device and check whether the test program will perform the appropriate operation normally, we can use a pseudo failure that is equivalent to a failure in the peripheral device. Rather than incorporating a mechanism for accurate simulation into the simulation means itself, the response content, that is, the pseudo data, from the peripheral device that matches the type of pseudo fault to be caused is used as pseudo fault information from an external floppy disk device, console, etc. If the designation means provides the pseudo data to the simulation means, and the simulation means performs a simulation using this pseudo data as the actual value from the surrounding NW, the simulation means can be simplified and can be used in a wide variety of ways. This means that simulation of peripheral devices can be easily realized. Furthermore, device states that cannot be easily set in a real device can be easily set.

〔実施例〕〔Example〕

次に本発明の実施例について図面を参照して説明する。 Next, embodiments of the present invention will be described with reference to the drawings.

第1図は本発明のデバッグ方式を適用した情報処理シス
テムの一例を示すブロック図である。この情報処理シス
テムは、中央処理装置2と、主記憶装置4と、共通バス
6と、周辺制御装置8と、周辺制御装置8に接続され擬
似障害(以下、擬障と略す)の対象とする入出力処理ル
ーチンを指示する起動番号、擬障データ等の入出力を行
なうオペレータインクフェイスを実現するフロッピーデ
ィスク装置81およびコンソール82とから構成される
FIG. 1 is a block diagram showing an example of an information processing system to which the debugging method of the present invention is applied. This information processing system is connected to a central processing unit 2, a main storage device 4, a common bus 6, a peripheral control device 8, and a peripheral control device 8, and is subject to pseudo failures (hereinafter abbreviated as pseudo failures). It is composed of a floppy disk device 81 and a console 82, which implement an operator ink face for inputting and outputting startup numbers for instructing input/output processing routines, simulated failure data, and the like.

主記憶装置4には、デバッグの対象となる試験プログラ
ム41と、試験プログラムモニタ42とがフロッピーデ
ィスク装置81からロードされている。
A test program 41 to be debugged and a test program monitor 42 are loaded into the main storage device 4 from a floppy disk device 81 .

試験プログラム41は複数の入出力処理ルーチンを含み
、各入出力処理ルーチンを構成する一連の各動作はマク
ロ命令で記述され、マクロ命令のパラメータ部分に期待
値を有している。更に、各入出力処理ルーチンには試験
プログラム41内で一意に識別可能な入出力処理番号が
付されている。試験プログラムモニタ42は、試験プロ
グラム41の実行制御を行なうと共に、試験プログラム
の各マクロ命令に対応する共通処理を行なう共通処理部
421と、シミュレーション動作要求を認識し記憶する
モード認識記憶部422と、擬障の設定のためのコンソ
ール82或いはフロッピーディスク装置81等を対象と
するオペレータインタフェイス処理部423と、′fl
fA管理部424 と、プロセス管理部425 と、入
出力管理部426等を有し、シミュレーション動作要求
時においては、入出力動作毎に擬障設定の存無をチェッ
クし、擬障設定がない場合は試験プログラムのマクロ命
令のパラメータで試験プログラムが期待する周辺装置動
作をシミュレーションし、擬障設定されている入出力動
作要求については、コンソール82或いはフロッピーデ
ィスク装置81により設定された周辺装置状態をシミュ
レーションする働きをする。なお、第1図において、点
線で示した磁気ディスク制御装置9および磁気ディスク
装置91は、試験プログラム4Iが試験対象とする周辺
装置の例を示すが、これらは試験プログラムモニタ42
でシミュレートされる為、必要とはされない。
The test program 41 includes a plurality of input/output processing routines, and each series of operations constituting each input/output processing routine is described by a macroinstruction, and the parameter portion of the macroinstruction has an expected value. Furthermore, each input/output processing routine is given an input/output processing number that can be uniquely identified within the test program 41. The test program monitor 42 includes a common processing unit 421 that controls the execution of the test program 41 and performs common processing corresponding to each macro instruction of the test program, and a mode recognition storage unit 422 that recognizes and stores simulation operation requests. an operator interface processing unit 423 that targets the console 82 or floppy disk device 81, etc. for setting pseudo failure;
It has an fA management unit 424, a process management unit 425, an input/output management unit 426, etc., and when a simulation operation is requested, the presence or absence of pseudo failure settings is checked for each input/output operation, and if there is no pseudo failure setting, The test program simulates the peripheral device operation expected by the test program using the macro instruction parameters of the test program, and for input/output operation requests that are set as false failures, the peripheral device status set by the console 82 or floppy disk device 81 is simulated. work to do. In FIG. 1, the magnetic disk control device 9 and the magnetic disk device 91 indicated by dotted lines are examples of peripheral devices to be tested by the test program 4I.
It is not needed because it is simulated by

本実施例システムの入出力処理は、中央処理装置2が入
出力命令を実行すると、共通バス6に相手チャネル番号
を含む所定の情報が出力され、共通バス6に接続された
周辺制御装置(周辺制御装置8や磁気ディスク制御装置
9など)が自装置に対する入出力命令であることを認識
することにより、主記憶装置4の所定のエリアに記録さ
れているチャネルプログラムを解析実行し、結果終了ス
テータスを主記憶装置4の所定のエリアに書込んだ後、
中央処理装置2に対して割込みを発生させるという一連
の動作からなり、試験プログラム41の入出力処理ルー
チンも当然にこのアーキテクチャに従った構造となって
いる。
In the input/output processing of the system of this embodiment, when the central processing unit 2 executes an input/output command, predetermined information including the partner channel number is output to the common bus 6, and the peripheral control device (peripheral The control device 8, magnetic disk control device 9, etc.) recognizes that the input/output command is for its own device, analyzes and executes the channel program recorded in a predetermined area of the main storage device 4, and determines the resulting completion status. After writing to a predetermined area of main memory 4,
It consists of a series of operations of generating an interrupt to the central processing unit 2, and the input/output processing routine of the test program 41 is naturally structured in accordance with this architecture.

試験プログラム511における一つの入出力処理ルーチ
ン(最小試験単位の試験ルーチン)の構成例を第2図に
、各マクロ命令のパラメータ構成を第3図に示す。
FIG. 2 shows an example of the configuration of one input/output processing routine (test routine of the minimum test unit) in the test program 511, and FIG. 3 shows the parameter configuration of each macro instruction.

第2図に示す一つの入出力処理ルーチンは、¥DIRS
マクロ命令、¥S[Oマクロ命令、¥WiOマクロ命令
、¥SCKマクロ命令、¥DCKマクロ命令および¥D
2REマクロ命令から構成される。¥DIRSマクロ命
令において、一連の入出力動作に対する各種制御データ
の初期設定ならびに入出力動作の開始制御を行ない、¥
SIOマクロ命令において周辺装置に対して入出力動作
を起動し、エラーであればエラー処理を行ない、¥WI
Oマクロ命令において¥SIOマクロ命令の実行により
周辺装置から報告される終了割込みを時間監視しながら
待ち、時間内に割込みがなければエラー処理を行ない、
¥SCKマクロ命令において割込み時に周辺装置から転
送されたヌテータス情報を期待値と比較し、エラーであ
ればエラ一種別に応じたエラー処理例えばその旨のメソ
セージの出力を行ない、¥DCKマクロ命令において入
出力動作により主記憶装置4に読出されたデータを期待
値と比較し、不一致であれば不一致の内容に応じたエラ
ー処理を行ない、¥D2REマクロ命令において入出力
動作の終了処理ならびにデバイス繰返し制御を行ない、
上記処理を試験対象装置台数分繰返してl試験動作が完
了することになる。更に、各入出力処理ルーチンには前
述したように試験プログラム内でユニークな識別番号(
入出力処理番号)が付与されている。
One input/output processing routine shown in Figure 2 is \DIRS
Macro instruction, \S[O macro instruction, \WiO macro instruction, \SCK macro instruction, \DCK macro instruction and \D
Consists of 2RE macro instructions. The \DIRS macro instruction initializes various control data for a series of input/output operations and controls the start of input/output operations.
The SIO macro instruction starts input/output operations for the peripheral device, performs error processing if an error occurs, and returns \WI
In the O macro instruction, wait while monitoring the end interrupt reported from the peripheral device by executing the \SIO macro instruction, and if there is no interrupt within the time, perform error processing,
The \SCK macro instruction compares the status information transferred from the peripheral device at the time of an interrupt with the expected value, and if there is an error, perform error processing according to the type of error, such as outputting a message to that effect, and perform input/output using the \DCK macro instruction. The data read out to the main memory 4 by the operation is compared with the expected value, and if they do not match, error handling is performed according to the content of the discrepancy, and the \D2RE macro instruction performs input/output operation termination processing and device repeat control. ,
The above process is repeated for the number of devices to be tested, and the test operation is completed. Furthermore, each input/output processing routine has a unique identification number within the test program (as described above).
input/output processing number).

次に試験プログラムモニタ42の構成と動作について説
明する。
Next, the configuration and operation of the test program monitor 42 will be explained.

試験プログラムモニタ42は、試験プログラムシステム
の核であり、資源管理、入出力管理、プロセス管理、オ
ペレータインクフェイス処理をはじめ、試験プログラム
システムの運用に必要な各種の機能を存している。また
、各試験プログラムに共通な処理の多くは、試験プログ
ラムモニタ42の共通処理部421が行ない、試験プロ
グラム41はマクロ命令を記述するだけである。即ち、
第3図の入出力処理ルーチンにおける¥SIOマクロ命
令について見れば、試験プログラム41はチャネルプロ
グラム内容を定義して試験プログラムモニタ42の¥3
10共通処理に制御刊を移すだけで、中央処理装置2で
の入出力命令であるC0NNECT命令を実行するため
に必要な各処理は全て試験プログラムモニタ42の共通
処理部421が行なうようになっている。
The test program monitor 42 is the core of the test program system and has various functions necessary for the operation of the test program system, including resource management, input/output management, process management, and operator ink face processing. Further, most of the processing common to each test program is performed by the common processing unit 421 of the test program monitor 42, and the test program 41 only writes macro instructions. That is,
Looking at the \SIO macro instruction in the input/output processing routine in FIG. 3, the test program 41 defines the channel program contents and displays the \3
By simply transferring control to the common processing section 10, the common processing section 421 of the test program monitor 42 can now perform all the processing necessary to execute the C0NNECT command, which is an input/output command in the central processing unit 2. There is.

以上説明した試験プログラム41と試験プログラムモニ
タ42による本発明の実施例のデバッグ方式について以
下説明する。
A debugging method according to the embodiment of the present invention using the test program 41 and test program monitor 42 described above will be described below.

まず、試験プログラムモニタ42は動作モードとして、
通常モードとシミュレーションモードとを有している。
First, the test program monitor 42 operates in the following operation mode:
It has a normal mode and a simulation mode.

通常モードは実装置が接続されている環境での動作であ
り、シミュレーションモードは8式験プログラム41を
デバッグする際のモードである。試験プログラムモニタ
42は試験プログラム41のロード・実行指示を受付け
る以前に、モード認識記憶部422によってOCLコマ
ンドにより動作モードを確定し記憶している。なお、動
作モードの確定方法としてはOCLに限る必要はな(、
スイッチ等によって行なっても良い。
The normal mode is an operation in an environment where a real device is connected, and the simulation mode is a mode when debugging the 8-type test program 41. Before the test program monitor 42 receives an instruction to load and execute the test program 41, the mode recognition storage unit 422 determines and stores the operating mode using an OCL command. Note that the method for determining the operation mode does not have to be limited to OCL (
This may be done using a switch or the like.

シミュレーションモード運用時、操作員がOCLにより
試験プログラム41のロード実行を指示すると、試験プ
ログラムモニタ42はOCLを解析し、試験プログラム
41をフロッピーディスク装置81からロードした後、
試験プログラム41の実行を開始する前に以下の処理を
行なう。
During simulation mode operation, when the operator instructs to load the test program 41 using the OCL, the test program monitor 42 analyzes the OCL, loads the test program 41 from the floppy disk device 81, and then
Before starting execution of the test program 41, the following processing is performed.

先ず、コンソール82にメニュー画面を出力し、擬障デ
ータの入力元装置の指定を操作員に問い合わせる。
First, a menu screen is output to the console 82, and the operator is asked to specify the input source device for the simulated fault data.

操作員が上記メニュー画面で、入力元装置としてフロッ
ピーディスク装置81の成る擬障データファイルを指定
すると、試験プログラムモニタ42は、指定された擬障
データファイルをフロッピーディスク装置81から続出
し、例えば第4図に示す擬障登録テーブルを生成する。
When the operator specifies a pseudo fault data file consisting of the floppy disk device 81 as the input source device on the above menu screen, the test program monitor 42 continuously outputs the specified pseudo fault data file from the floppy disk device 81. A pseudo failure registration table shown in Figure 4 is generated.

即ち、擬障データファイルには、擬障設定すべき入出力
処理ルーチンを指示する起動番号、擬障項目、終了ステ
ータス。
That is, the simulated failure data file includes a startup number that instructs the input/output processing routine to be set as a simulated failure, a simulated failure item, and an end status.

1疑障データ長、読出しハソファ相対位置、読出しデー
タ等が予め格納されているので、それを擬障登録テーブ
ルに移し変える。ここで、擬障登録テーブル中の起動番
号は、試験プログラム41を構成する複数の入出力処理
ルーチンのうち擬障の対象としたい入出力処理ルーチン
を、それに付与された入出力番号で指定したものである
。また擬障項目は、入出力処理ルーチンのどの項目(第
3図でいえば¥SIO,¥WIO,¥5−CK、¥DC
K)について擬障を起こしたいのかを指定し、同時に複
数項目の指定が可能である。終了ステータスは、¥SC
Kにおいて実際値として返す終了ステータスの擬障デー
タである。擬障データ長、読出しバッファ相対位置およ
び続出しデータは¥DCKにおいて実際値として返ず擬
障データを特定する情報であり、続出しデータは期待値
の成る部分と置換するデータ、擬障データ長は続出しデ
ータの長さ、読出しバッファ相対位置は続出しデータを
置換すべき読出しバッファ内の位置つまり期待値内の位
置をそれぞれ示す。なお、M障設定しない入出力処理ル
ーチンについてはその入出力処理番号と同一の起動番号
は擬障データファイルには登録されていないので、擬障
登録テーブル中にも存在しない。
1 Since the length of the suspected fault data, the relative position of the readout sofa, the read data, etc. are stored in advance, they are transferred to the pseudo fault registration table. Here, the startup number in the simulated fault registration table is the input/output processing routine that is desired to be simulated fault among the multiple input/output processing routines that make up the test program 41, and is specified by the input/output number assigned to it. It is. In addition, the pseudo-failure items include which items in the input/output processing routine (in Figure 3, ¥SIO, ¥WIO, ¥5-CK, ¥DC)
You can specify whether you want to cause a pseudo-failure for K) and specify multiple items at the same time. The exit status is ¥SC
This is pseudo-failure data of the completion status returned as an actual value in K. The simulated fault data length, read buffer relative position, and subsequent data are information that does not return as actual values in ¥DCK and identifies the simulated fault data.The continuous data is the data to replace the expected value, and the pseudo fault data length. represents the length of the successive data, and the relative read buffer position represents the position within the read buffer where the successive data is to be replaced, that is, the position within the expected value. Note that for input/output processing routines that do not set M faults, the activation number that is the same as the input/output processing number is not registered in the pseudo fault data file, and therefore does not exist in the pseudo fault registration table.

擬障登録テーブルの生成が完了すると、試験プログラム
モニタ42は確認の為に生成した擬障登録テーブルの内
容をコンソール82に表示する。このとき、操作員は擬
障登録テーブルの内容を削除。
When the generation of the simulated failure registration table is completed, the test program monitor 42 displays the contents of the generated simulated failure registration table on the console 82 for confirmation. At this time, the operator deletes the contents of the false failure registration table.

変更し或いは新たな擬障データを追加することができる
It is possible to change or add new pseudo fault data.

操作員がコンソール82に表示された擬障登録テーブル
の内容を確認し開始指示を与えると、試験プログラムモ
ニタ42は試験プログラム41の実行を開始する。試験
プログラム41では第3図に示したように各マクロ命令
が順に実行されるが、試験プログラムモニタ42の共通
処理部421における各マクロ命令に対応する処理は例
えば第5図(at、 fbl。
When the operator confirms the contents of the simulated fault registration table displayed on the console 82 and gives a start instruction, the test program monitor 42 starts executing the test program 41. In the test program 41, each macro instruction is executed in sequence as shown in FIG. 3, but the processing corresponding to each macro instruction in the common processing unit 421 of the test program monitor 42 is, for example, shown in FIG. 5 (at, fbl).

(c)に示す通りである。即ち、¥SIOマクロ命令処
理(第5図(a))では、ステップSlでモード認識記
憶部422の記憶情報に従ってシミュレーションモード
であることを判別し、ステップS4で試験プログラム4
1のこれから実行される入出力処理ルーチンの入出力処
理番号と、擬障登録テーブルの全ての起動番号とを比較
し、一致する起動番号がなければ、以下の一連の入出力
動作については擬障設定がないとして処理する(ステッ
プS6)。
As shown in (c). That is, in the \SIO macro command processing (FIG. 5(a)), it is determined that the simulation mode is in accordance with the information stored in the mode recognition storage section 422 in step Sl, and the test program 4 is executed in step S4.
The input/output processing number of the input/output processing routine to be executed from now on in step 1 is compared with all startup numbers in the pseudo fault registration table, and if there is no matching startup number, the following series of input/output operations will be considered as a pseudo fault. Processing is performed assuming that there is no setting (step S6).

このときは試験プログラム41の持つ期待値が実際値と
して使用される。例えば¥SCKマクロ命令のシミュレ
ーション時には、第3図のパラメータ「期待ステータス
エリア名標」に従って期待値を取得し、これを実際値と
して返す。
At this time, the expected value of the test program 41 is used as the actual value. For example, when simulating the \SCK macro instruction, an expected value is obtained according to the parameter "expected status area name" in FIG. 3, and this is returned as an actual value.

また、若し一敗する起動番号があれば、擬障登録テーブ
ルにおける該当行の擬障項目から続出しデータまでの情
報を現行擬障データとして記憶する(ステップS5)。
Furthermore, if there is a startup number that fails once, the information from the simulated failure item in the corresponding row in the simulated failure registration table to the subsequent data is stored as current simulated failure data (step S5).

そして、¥WIO(第5図(b))では、ステップSI
Oでンミュレーソヨンモードであることを判別し、ステ
ップ513で前記の現行擬障データの擬障項目(タイム
アラ日疑障項目)の指定を判別し、擬障設定されていれ
ば試験プログラム41にエラー処理を行なわせ、擬障設
定されていなければ時間内に割込みがあったものと擬似
して次の処理へ進む。また、¥SCK、 ¥DCKマク
ロ命令の処理(第5図(C))では、ステップS20で
シミュレーションモードであることを判別し、ステップ
S22で前記の現行擬障データの擬障項目の指定を判別
し、各マクロ命令で該当する項目に擬障が設定されてい
れば、擬障データを実際値としくステップ524)、設
定されていなければ、試験プログラム41が有する期待
値を実際値として使用する(ステップ523)。そして
、期待値と実際値との比較をステップ321で行ない、
その結果に応じて処理分岐する。なお、擬障データを実
際値として設定する場合、擬障データで置換される実際
値の部分以外の部分は期待値が用いられる。
Then, in ¥WIO (Figure 5(b)), step SI
In step 513, the specification of the simulated failure item (time around day suspected failure item) of the current simulated failure data is determined, and if the simulated failure is set, the test program 41 If a false failure is not set, it is assumed that an interrupt occurred within the specified time and the process proceeds to the next step. In addition, in the processing of the \SCK and \DCK macro instructions (Fig. 5 (C)), it is determined in step S20 that the mode is simulation mode, and in step S22, the designation of the pseudo-failure item of the current pseudo-failure data is determined. However, if a pseudo fault is set for the corresponding item in each macro instruction, the pseudo fault data is used as the actual value (step 524); if not set, the expected value of the test program 41 is used as the actual value. (Step 523). Then, in step 321, the expected value and the actual value are compared,
Processing branches depending on the result. Note that when setting the pseudo fault data as the actual value, the expected value is used for the portion other than the actual value portion replaced by the pseudo fault data.

擬障データの入力元装置としてフロッピーディスク装置
81が指定された場合の動作は上記の通りであるが、コ
ンソール82が指定された場合は、次のような動作が行
なわれる。
The operation when the floppy disk device 81 is specified as the input source device of pseudo failure data is as described above, but when the console 82 is specified, the following operation is performed.

先ス、試験プログラムモニタ42は、擬障設定の有無、
擬障設定するのであれば対象としたい入出力処理ルーチ
ンを問い合わせる画面をコンソール82に表示する。操
作員が、障害設定したい入出力処理ルーチンの番号(起
動番号)を逐次入力し人力終了を指示すると、第4図の
擬障登録テーブルに指定された起動番号を設定し、試験
プログラム41の実行を開始する。そして、¥STOマ
クロ命令処理(第5図(a))では、試験プログラム4
1のこれから実行される入出力処理ルーチンの入出力処
理番号と、擬障登録テーブルの全ての起動番号とを比較
し、−4する起動番号がなければ、以下の一連の入出力
動作については擬障設定がないとして処理し、試験プロ
グラム41の持つ期待値を実際値として使用する。また
、一致する起動番号があれば、その一連のマクロ命令実
行の都度、設定可能な1擬障項目、終了ステータス、擬
障データ長。
First, the test program monitor 42 checks whether or not there is a pseudo failure setting.
If a simulated failure is to be set, a screen is displayed on the console 82 inquiring about the input/output processing routine to be targeted. When the operator sequentially inputs the number (starting number) of the input/output processing routine for which he wants to set a fault and instructs manual termination, the specified starting number is set in the pseudo fault registration table shown in FIG. 4, and the test program 41 is executed. Start. Then, in the \STO macro instruction processing (Fig. 5(a)), the test program 4
The input/output processing number of the input/output processing routine to be executed from now on in step 1 is compared with all startup numbers in the simulated fault registration table, and if there is no startup number to be decremented by 4, the following series of input/output operations will be simulated. It is assumed that there is no fault setting, and the expected value of the test program 41 is used as the actual value. In addition, if there is a matching startup number, one simulated failure item, end status, and simulated failure data length that can be set each time the series of macro instructions is executed.

読出しバッファ相対位置、読出しデータをコンソール8
2を介して操作員に問い合わせる。これに応じて操作員
が必要な情報を設定すれば、その情報に従ってシミュレ
ートを実行する。このように、擬障データの入力元装置
としてコンソール82が指定された場合、コンソール8
2を介して操作員と対話形式でシミュレーションが進め
られる。なお、コンソール82を指定した場合に、第4
図に示す擬障登録テーブルを一括して作成しておくよう
にも構成でき、この場合、その後の動作はフロッピーデ
ィスク装置81を使用した場合と同様となる。
Read buffer relative position, read data to console 8
Contact the operator via 2. If the operator sets the necessary information accordingly, the simulation will be executed according to that information. In this way, when the console 82 is specified as the input source device for the simulated fault data, the console 82
2, the simulation proceeds in an interactive manner with the operator. Note that if the console 82 is specified, the fourth
It is also possible to create the false fault registration table shown in the figure all at once, and in this case, the subsequent operation will be the same as when the floppy disk device 81 is used.

また本実施例のシミュレート手段を実現する試験プログ
ラムモニタ42は、通常モードが指定された場合、第5
図に示すように、各マクロ命令の処理でシミュレートモ
ードでないことを判別しくSl、  SIO,520)
 、各マクロ命令に応じて、入出力命令実行とエラー処
理(ステップ32.S3)。
Further, when the normal mode is specified, the test program monitor 42 that realizes the simulation means of this embodiment has a fifth
As shown in the figure, it is necessary to determine that the mode is not simulated in the processing of each macro instruction (Sl, SIO, 520).
, execute input/output commands and handle errors according to each macro command (step 32.S3).

割込み待ちと時間内での割込みの監視(ステップSll
、  512)、期待値と実際値との比較(ステップ5
21)を行ない、周辺装置のシミュレーションは行なわ
ない。
Waiting for interrupts and monitoring interrupts within time (step Sll)
, 512), comparison of expected value and actual value (step 5
21), and no simulation of peripheral devices is performed.

〔発明の効果〕〔Effect of the invention〕

以上説明したように、本発明は、試験プログラムが周辺
装置に対する入出力動作結果の期待値を有しているとい
う特徴を有効に利用したこと、及び任意の入出力動作に
ついて任意の装置状態をコンソールやフロッピーディス
ク装置等の擬障情報指定手段から設定できるようにした
ことにより、試験プログラムのデバッグに必要な周辺装
置シミュレート手段を簡便なものとすることができ、且
つ、多種多様な周辺装置に対処することができる効果が
ある。更に、実装置では容易に設定できない装置状態を
も擬障情報指定手段から簡単に設定できる゛効果がある
As explained above, the present invention makes effective use of the feature that the test program has an expected value of the input/output operation result for the peripheral device, and also allows the user to monitor any device status for any input/output operation on the console. By making it possible to specify false failure information such as a floppy disk drive or a floppy disk device, it is possible to simplify the means for simulating peripheral devices necessary for debugging test programs. There are effects that can be dealt with. Furthermore, there is an effect that the device status, which cannot be easily set in the actual device, can be easily set from the false failure information specifying means.

【図面の簡単な説明】[Brief explanation of drawings]

第1図は本発明のデバッグ方式を適用した情報処理シス
テムの一例を示すブロック図、第2図は試験プログラム
41の一つの入出力処理ルーチンの構成例を示す図、 第3図は各マクロ命令のパラメータ構成例を示す図、 第4図は擬障登録テーブルの構成例を示す図および、 第5図は共通処理部421の処理例の流れ図である。 図において、 2・・・中央処理装置、 4・・・主記憶装置、 6・・・共通バス、 8・・・周辺制御装置、 9・・・磁気ディスク制御装置 81・・・フロッピーディスク装置、 82・・・コンソール、 91・・・磁気ディスク装置
FIG. 1 is a block diagram showing an example of an information processing system to which the debugging method of the present invention is applied, FIG. 2 is a diagram showing a configuration example of one input/output processing routine of the test program 41, and FIG. 3 is a block diagram showing each macro instruction. FIG. 4 is a diagram showing an example of the configuration of the pseudo failure registration table, and FIG. 5 is a flowchart of an example of processing by the common processing unit 421. In the figure, 2... central processing unit, 4... main storage device, 6... common bus, 8... peripheral control device, 9... magnetic disk control device 81... floppy disk device, 82...console, 91...magnetic disk device

Claims (1)

【特許請求の範囲】 各入出力処理ルーチンが複数のマクロ命令で記述される
と共に、マクロ命令のパラメータ部に試験結果の期待値
を持ち、周辺装置を試験して得られた実際値と前記期待
値との比較により前記周辺装置を試験する試験プログラ
ムのデバッグ方式において、 前記試験プログラムを構成する各入出力処理ルーチンに
独自の入出力処理番号を付与しておくと共に、 擬似障害の対象とする入出力処理ルーチンの前記入出力
処理番号、擬似データを含む擬似障害に関する情報を指
定する擬似障害情報指定手段と、前記試験プログラムが
試験する周辺装置をシミュレートするシミュレート手段
とを設け、 該シミュレート手段は、前記試験プログラムのシミュレ
ート動作要求時、実行される各入出力処理ルーチン毎に
、該入出力処理ルーチンに対して擬似障害が指定されて
いるか否かを前記擬似障害情報指定手段から指定された
入出力処理番号に応じて判別し、擬似障害の指定がない
入出力処理ルーチンに関しては、該入出力処理ルーチン
を構成するマクロ命令のパラメータ部で指示された期待
値を前記実際値とし、擬似障害の指定がある入出力処理
ルーチンに関しては、前記擬似障害情報指定手段から指
定された擬似データを前記実際値とすることを特徴とす
る試験プログラムのデバッグ方式。
[Claims] Each input/output processing routine is described by a plurality of macro instructions, and has an expected value of a test result in the parameter section of the macro instruction, and the actual value obtained by testing the peripheral device and the expected value In a debugging method for a test program that tests the peripheral device by comparing it with a value, each input/output processing routine that makes up the test program is assigned a unique input/output processing number, and the input/output processing routine that is the target of the simulated failure is A simulated failure information specifying means for specifying information regarding a simulated failure including the input/output processing number of the output processing routine and simulated data, and a simulating means for simulating a peripheral device to be tested by the test program, The means specifies, for each input/output processing routine to be executed, whether or not a pseudo fault is specified for the input/output processing routine from the pseudo fault information specifying means when the test program requests a simulation operation. For input/output processing routines for which a pseudo failure is not specified, the expected value specified in the parameter part of the macro instruction constituting the input/output processing routine is set as the actual value; A method for debugging a test program, wherein for an input/output processing routine in which a pseudo fault is specified, pseudo data specified by the pseudo fault information designating means is used as the actual value.
JP62091946A 1987-04-16 1987-04-16 Debug system for test program Pending JPS63257839A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62091946A JPS63257839A (en) 1987-04-16 1987-04-16 Debug system for test program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62091946A JPS63257839A (en) 1987-04-16 1987-04-16 Debug system for test program

Publications (1)

Publication Number Publication Date
JPS63257839A true JPS63257839A (en) 1988-10-25

Family

ID=14040754

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62091946A Pending JPS63257839A (en) 1987-04-16 1987-04-16 Debug system for test program

Country Status (1)

Country Link
JP (1) JPS63257839A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02230434A (en) * 1989-03-03 1990-09-12 Fujitsu Ltd Inspecting method for performance of test program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02230434A (en) * 1989-03-03 1990-09-12 Fujitsu Ltd Inspecting method for performance of test program

Similar Documents

Publication Publication Date Title
US7222265B1 (en) Automated software testing
JPH05505695A (en) An improved software debugging system and method specifically for debugging code within a multi-architecture environment.
KR20080065936A (en) Systems and methods for turbine control simulation
US5161116A (en) System for evaluating the performance of a large scale programmable machine capable of having a plurality of terminals attached thereto
JPH06507991A (en) Formation of knowledge base and its simulation
US7062753B1 (en) Method and apparatus for automated software unit testing
JP3018912B2 (en) Verification support system
US5495578A (en) Apparatus and method for changing the behavior of a computer program while retaining control of program execution
JP3349057B2 (en) Multitask processing device, multitask processing method, and multitask processing display method
JPS63257839A (en) Debug system for test program
JPH1049206A (en) Sequence control generating device
JPS63157244A (en) Debugging system for test program of peripheral device
JPS593648A (en) Automatic testing system of information processing system
AU2023201696B2 (en) Method and device for determining coverage in HIL testing, and storage medium
Bauer et al. The automatic generation and execution of function test plans for electronic switching systems
Takagi et al. Simulation and Regression Testing Technique for Software Formal Specifications Based on Extended Place/Transition Net with Attributed Tokens
JPS63177231A (en) Debug system for parallel program
JPH02232744A (en) Constitution control system for simulator
JPS63247842A (en) Evaluation system for test program
JP2615222B2 (en) Operators console for distributed digital control systems.
Takagi et al. Simulation and Regression Testing for Behavior of Software Models Based on Extended Place/Transition Net with Attributed Tokens
JPS62262107A (en) Pio simulator device for emulator
JP3182621B2 (en) Test program monitor
JPH07295860A (en) Software test method/device
JPS61184647A (en) Performance test system of computer equipment