JPH01112344A - System for controlling test of input/output control software - Google Patents

System for controlling test of input/output control software

Info

Publication number
JPH01112344A
JPH01112344A JP62269742A JP26974287A JPH01112344A JP H01112344 A JPH01112344 A JP H01112344A JP 62269742 A JP62269742 A JP 62269742A JP 26974287 A JP26974287 A JP 26974287A JP H01112344 A JPH01112344 A JP H01112344A
Authority
JP
Japan
Prior art keywords
input
output control
interrupt
data
interruption
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
JP62269742A
Other languages
Japanese (ja)
Inventor
Keizo Koike
敬藏 小池
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP62269742A priority Critical patent/JPH01112344A/en
Publication of JPH01112344A publication Critical patent/JPH01112344A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To generate pseudo interruption by providing a command generating means and an interruption data generating means which generates interruption data based on data set from the outside and outputs interruption and the interruption data at a timing designated from the outside in a test tool. CONSTITUTION:When it is desired to generate the interruption in the device driver (input/output control software) 11 of an object to be tested by the test tool 12, the command generating means 121 generates a command, and starts up an input/output control adaptor 2. The input/output control adaptor 2 applies the interruption on the test tool 12 based on the command. In the test tool 12, the interruption data generating means 122 applies the interruption on the device driver 11 at the timing designated from the outside, then, sends the interruption data. The interruption data is set on the test tool 12 by an operator. In such a way, it is not required to use the input/output control adaptor driven by the device driver of the object to be tested actually, and the interruption can be performed by simulation.

Description

【発明の詳細な説明】 〔概 要〕 ワークステーション、コントローラ等における入出力制
御ソフトウェアの試験制御方式に関し、入出力制御ソフ
トウェアに対して擬似的に割込みを発生することを目的
とし、 入出力制御アダプタをドライブする入出力制御ソフトウ
ェアを試験するテストクールに、入出力制御アダプタを
起動させるコマンドを発生するコマンド発生手段と、予
め外部から設定されたデータに基づき割込みデータを発
生し外部から指示されたタイミングに割込み及び割込み
データを出力する割込みデータ発生手段を備え、標準的
に実装されている入出力制御アダプタを使用し、入出力
制御ソフトウェアに対し、任意に設定された割込みデー
タにより任意のタイミングに擬似的に割込みを発生させ
、試験を行うよう構成する。
[Detailed Description of the Invention] [Summary] This is an input/output control adapter for the purpose of generating a pseudo interrupt to input/output control software in connection with a test control method for input/output control software in workstations, controllers, etc. A test circuit for testing the input/output control software that drives the input/output control adapter includes a command generation means that generates a command to start the input/output control adapter, and a timing that generates interrupt data based on data set externally in advance. It is equipped with an interrupt data generation means that outputs interrupts and interrupt data, and uses a standardly implemented input/output control adapter to generate pseudo-simulation at any timing using arbitrarily set interrupt data for input/output control software. The configuration is configured to automatically generate an interrupt and perform the test.

〔産業上の利用分野〕[Industrial application field]

本発明はワークステーション、コントローラ等における
入出力制御ソフトウェアの試験制御方式入出力制御ソフ
トウェアのテストツールにおいては、入出力制御アダプ
タからの割込みをシミュレートする機構が必須である。
The present invention is a test control method for input/output control software in workstations, controllers, etc. In a test tool for input/output control software, a mechanism for simulating interrupts from an input/output control adapter is essential.

しかし、実環境のタイミングに合わせて割込みを起こす
ことは簡単にはできない。
However, it is not easy to generate interrupts in accordance with the timing of the actual environment.

〔従来の技術〕[Conventional technology]

入出力制御ソフトウェア(一般にデバイスドライバと呼
ばれここでも以下デバイスドライバと称す)のテストツ
ールにおいては、被試験対象をO8(オペレーティング
システム)の割込み環境下における動作を確認するため
、入出力制御アダプタからの割込みをシミュレートする
機構が必須である。
In a test tool for input/output control software (generally called a device driver, hereinafter also referred to as a device driver), the test target is connected to an input/output control adapter in order to check its operation under the interrupt environment of the O8 (operating system). A mechanism for simulating interrupts is essential.

従来技術においては、入出力制御アダプタに試験用のフ
ァームウェアを入れ、実際にドライブする入出力制御ア
ダプタを使用して行うのが一般であった。
In the prior art, it was common to put test firmware into an input/output control adapter and use the input/output control adapter to actually drive the test.

第5図は従来技術よるデバイスドライバの試験機構を示
す図である。
FIG. 5 is a diagram showing a device driver testing mechanism according to the prior art.

図に示すように、デバイスドライバの上位のテストツー
ルがデバイスドライバに対してコマンドを発行し、それ
によりドライバは入出力制御アダプタにコマンドを発行
する。入出力制御アダプタはこれを解析し、定められた
割込みを上げるものであった。
As shown in the figure, a test tool above the device driver issues a command to the device driver, which in turn issues a command to the input/output control adapter. The input/output control adapter analyzed this and raised the specified interrupt.

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

従来の方式では、入出力制御アダプタ毎に試験用のファ
ームウェアを作る必要があり、多大の時間を要するもの
であった。
In the conventional method, it was necessary to create test firmware for each input/output control adapter, which took a lot of time.

また、一部の割込みデータを変える等の修正をしようと
すると、ファームウェアを作り直さなければならないこ
とになる。即ち、柔軟性がないことになる。
Furthermore, if you try to make modifications such as changing some of the interrupt data, you will have to recreate the firmware. In other words, there is no flexibility.

しかも、ROM上にファームウェアがある人出力制御ア
ダプタでは、修正は実現できないことになる。
Moreover, correction cannot be realized with a human output control adapter that has firmware on the ROM.

また、割込みが早く来すぎて、デバッグし難いことも生
じている。
Additionally, interrupts occur too quickly, making debugging difficult.

本発明は、このような従来の問題点を解消した新規な試
験制御方式を提供しようとするものである。
The present invention aims to provide a new test control method that solves these conventional problems.

〔問題点を解決するための手段〕[Means for solving problems]

第1図は、本発明のデバイスドライバの試験制御方式の
原理ブロック図を示す。
FIG. 1 shows a principle block diagram of a device driver test control method according to the present invention.

図において、1はワークステーション、コントローラ等
の本体である。
In the figure, 1 is a main body such as a workstation and a controller.

2は入出力制御アダプタであり、既存の標準的に実装さ
れているものである。
2 is an input/output control adapter, which is implemented as an existing standard.

11は被試験対象の入出力制御ソフトウェアである。11 is input/output control software to be tested.

12はテストツールである。12 is a test tool.

121はコマンド発生手段であり、入出力制御アダプタ
を起動させるコマンドを発生する。
A command generating means 121 generates a command to start the input/output control adapter.

122は割込みデータ発生手段であり、予め設定された
データに基づき割込みデータを発生し、外部から指示さ
れたタイミングに割込み及び割込みデータを出力する。
Reference numeral 122 denotes an interrupt data generating means, which generates interrupt data based on preset data, and outputs the interrupt and interrupt data at a timing instructed from the outside.

〔作 用〕[For production]

テストツール12が、被試験対象のデバイスドライバ(
入出力制御ソフトウェア)11に割込みを発生させたい
時は、コマンド発生手段121がコマンドを発生して人
出力制御アダプタ2を起動させる。
The test tool 12 uses the device driver to be tested (
When it is desired to generate an interrupt in the input/output control software (input/output control software) 11, the command generation means 121 generates a command to activate the human output control adapter 2.

入出力制御アダプタ2はそのコマンドによりテストツー
ル12に割込みをかける。
The input/output control adapter 2 interrupts the test tool 12 with the command.

テストツール12では、割込みデータ発生手段122が
外部から指示されたタイミングにデバイスドライバ11
に割込みをかけ、割込みデータを送出する。
In the test tool 12, the interrupt data generation means 122 generates a signal from the device driver 11 at a timing instructed from the outside.
Interrupts and sends interrupt data.

割込みデータは、オペレータがテストツール12に設定
する。従って、入出力装置の相違により、或いはデータ
の変更によりソフトウェアを作り変える必要はない。
The interrupt data is set in the test tool 12 by the operator. Therefore, there is no need to modify the software due to differences in input/output devices or data changes.

割込みデータは、装置の状態情報、制御データ、磁気デ
ィスク装置の読出しデータ等である。
The interrupt data includes device status information, control data, magnetic disk device read data, and the like.

割込みのタイミングは、オペレータの指示による。The timing of the interrupt depends on the operator's instructions.

以上の構成によって、被試験対象のデバイスドライバ1
4!−が実際にドライブする入出力制御アダプタを使用
する必要はなく、割込みをシミュレートして起こすこと
ができる。
With the above configuration, the device driver 1 to be tested
4! It is not necessary to use the input/output control adapter that - actually drives, and the interrupt can be simulated and triggered.

また、同一系列の機種であれば、設定する割込みデータ
を入れ換えるだけで、異なるアダプタをドライブするデ
バイスドライバにも適用できるものである。
Furthermore, if the model is of the same series, it can be applied to device drivers that drive different adapters by simply changing the interrupt data to be set.

〔実施例〕〔Example〕

以下第2図乃至第4図に示す実施例により、本発明をさ
らに具体的に説明する。
The present invention will be explained in more detail below with reference to embodiments shown in FIGS. 2 to 4.

第2図は、本発明が適用されるシステムのシステム構成
図である。
FIG. 2 is a system configuration diagram of a system to which the present invention is applied.

第2図(alは、ワークステーションの構成例を示す。FIG. 2 (al shows an example of the configuration of a workstation.

図において、10はワークステーション本体であり、2
0はアダプタである。11はデバイスドライバである。
In the figure, 10 is the workstation main body, 2
0 is an adapter. 11 is a device driver.

40は磁気ディスク装置であり、50はプリンタであり
、60はデイスプレィ装置である。
40 is a magnetic disk device, 50 is a printer, and 60 is a display device.

第2図(b)は、コントローラの構成例を示す。FIG. 2(b) shows an example of the configuration of the controller.

図において、10はコントローラ本体であり、20はア
ダプタである。
In the figure, 10 is a controller main body, and 20 is an adapter.

11はデバイスドライバである。11 is a device driver.

40、50.60は、(a)と同じ(それぞれ磁気ディ
スク装置、プリンタ、デイスプレィ装置である。
40, 50, and 60 are the same as in (a) (respectively a magnetic disk device, a printer, and a display device).

00はホスト計算機である。00 is the host computer.

1.00は、コントローラ10の制御下のワークステー
ション(WS)である。
1.00 is a workstation (WS) under the control of the controller 10.

第3図は、本発明の一実施例の構成を示すブロック図で
ある。
FIG. 3 is a block diagram showing the configuration of an embodiment of the present invention.

図において、1はワークステーション、コントローラ等
の本体である。
In the figure, 1 is a main body such as a workstation and a controller.

2は既存の標準的アダプタである。2 is an existing standard adapter.

11は被試験対象のデバイスドライバである。11 is a device driver to be tested.

12はデバイスドライバ11を試験するテストツールで
ある。
12 is a test tool for testing the device driver 11;

3はオペレータが被試験対象のデバイスドライバ11に
対する割込みデータをテストツール12に登録する端末
である。
3 is a terminal through which an operator registers interrupt data for the device driver 11 to be tested in the test tool 12;

以下、本実施例の動作を説明する。The operation of this embodiment will be explained below.

■オペレータは端末3を使用して、被試験対象デバイス
ドライバ11に対する割込みデータを作成し、テストツ
ール12に登録する。
(2) Using the terminal 3, the operator creates interrupt data for the device driver under test 11 and registers it in the test tool 12.

■オペレータはテストツール12を起動させ、割込みを
依頼する。
(2) The operator starts the test tool 12 and requests an interrupt.

■テストツール12は起動し、コマンド発生手順121
がアダプタ2にN OP (No 0PERATION
)コマンド(何も動作しないコマンド)を発行する。
■Test tool 12 starts and command generation procedure 121
is NOP (No 0PERATION) to adapter 2.
) command (a command that does nothing).

■アダプタ2は、NOPコマンドに対する完了割込みを
上げる。
■Adapter 2 raises a completion interrupt for the NOP command.

■テストツール12はアダプタ2からの割込みにより、
割込みデータ発生手順122が被試験対象のデバイスド
ライバ11に割込みを上げ、割込みデータを送出する。
■The test tool 12 receives an interrupt from the adapter 2.
The interrupt data generation procedure 122 raises an interrupt to the device driver 11 to be tested and sends the interrupt data.

本実施例1の構成により、実際にデバイスドライバ11
がドライブするアダプタなしで、オペレータの指示によ
り任意のアダプタの、任意の割込みを被試験対象のデバ
イスドライバに上げることができる。
With the configuration of the first embodiment, the device driver 11 actually
Any interrupt of any adapter can be raised to the device driver under test at the operator's direction without the need for an adapter to be driven by the device.

第4図は、本発明の一実施例における割込みデータの例
を示す図である。アダプタ(デバイス)からの割込み時
に設定されてくるデータと領域は次に示すようになって
おり、割込みデータ発生手順はこれを模凝実行する。
FIG. 4 is a diagram showing an example of interrupt data in an embodiment of the present invention. The data and area that are set at the time of an interrupt from the adapter (device) are as shown below, and the interrupt data generation procedure emulates this.

第4図(その1)は、割込み時に設定される領域を示す
FIG. 4 (Part 1) shows the area set at the time of an interrupt.

図において、ACRはアダプタコントロールレジスタで
あり、アダプタが割込みを上げたことの通知等に用いる
レジスタである。DCB、DCW、バッファは主記憶内
に設ける領域であり、D CB(デバイスコントロール
ブロック)はデバイスからの完了情報(エラー又は正常
の識別、エラーの詳細等)を設定する。バッファ使用の
割込みデータではDCWアドレスを設定する。
In the figure, ACR is an adapter control register, which is used to notify that the adapter has raised an interrupt. The DCB, DCW, and buffer are areas provided in the main memory, and the DCB (device control block) sets completion information from the device (identification of error or normality, error details, etc.). A DCW address is set for interrupt data using a buffer.

DCW(デバイスコマンドワード)では割込み時に設定
されるのはここからリンクされているバッファ領域のア
ドレスである。バッファには、例えば磁気ディスクから
の読取りデータが設定される。
In the DCW (device command word), what is set at the time of an interrupt is the address of the buffer area linked from here. For example, read data from a magnetic disk is set in the buffer.

第4図(その2)は、各領域の内容例を示す図である。FIG. 4 (part 2) is a diagram showing an example of the contents of each area.

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

以上説明のように本発明によれば、入出力制御アダプタ
を実装する必要がないから入出力アダプタが無い場合又
は障害の場合でも試験ができ、またオペレータが自由に
割込みデータを作成できるので実際のアダプタで起こり
難い事象も容易に発生させて試験することが可能となり
、その実用上の効果は極めて大である。
As explained above, according to the present invention, there is no need to install an input/output control adapter, so testing can be performed even when there is no input/output adapter or there is a failure, and since the operator can freely create interrupt data, it is possible to test the actual It becomes possible to easily generate and test events that are difficult to occur with adapters, and the practical effects thereof are extremely large.

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

第1図は本発明の原理ブロック図、 第2図は本発明の適用されるシステムのシステム構成図
、 第3図は本発明の一実施例の動作を示すブロック図、 第4図は本発明の一実施例における割込みデータの例を
示す図 第5図は従来例によるデバイスドライバの試験機構を示
す図である。 図面において、 ≦ 1.10はコン偽−ラ本体、 2.20は入出力制御アダプタ、 3は端末、       11はデバイスドライバ、1
2はテストツール、  121はコマンド発生手段、1
22は割込みデータ発生手段、 40は磁気ディスク装置、 50はプリンタ、60はデ
イスプレィ装置、 00はホスト計算機、100はワー
クステーション(W S )、をそれぞれ示す。 本発明の原理ブロック図 第 i  rA 第2図 第  3  図 被試験対象ソフトウェア       アダプタ(a) 本発明の一戴鮒すにおける割込みデータの例を示す図第
  4  図 (その1) (1) ACR (2)DCB □  □デバイスステータス’  +3  デバイスの
iD3 (DE常、エラー等)兇バイト1 一−−争−Nが (3) DC”、V バッファ使用時バッファアドレスを設定スる。 (b) 本発明の一実旅抄1における別込みデータの例を示す図
第  4  図 (その2) 従速モ帛こよるデバイスドライバの昆ぶ瀞餠昔を示す図
第   5   図
Fig. 1 is a block diagram of the principle of the present invention, Fig. 2 is a system configuration diagram of a system to which the present invention is applied, Fig. 3 is a block diagram showing the operation of an embodiment of the present invention, and Fig. 4 is a block diagram of the present invention. FIG. 5 is a diagram showing an example of interrupt data in one embodiment of the present invention. FIG. 5 is a diagram showing a device driver testing mechanism according to a conventional example. In the drawing, ≦ 1.10 is the controller body, 2.20 is the input/output control adapter, 3 is the terminal, 11 is the device driver, 1
2 is a test tool, 121 is a command generation means, 1
22 is an interrupt data generating means, 40 is a magnetic disk device, 50 is a printer, 60 is a display device, 00 is a host computer, and 100 is a work station (WS). Principle block diagram of the present invention Figure 2 Figure 3 Software to be tested Adapter (a) Figure 4 showing an example of interrupt data in the present invention (Part 1) (1) ACR ( 2) DCB □ □Device Status' +3 Device iD3 (DE normal, error, etc.) 1 byte 1--N is (3) DC", V Sets the buffer address when using the buffer. (b) Book Figure 4 shows an example of separate data in Invention no Ichiji Tabisho 1. Figure 4 (Part 2) Figure 5 shows the history of a device driver that relies on speed control.

Claims (1)

【特許請求の範囲】 ワークステーション、コントローラ等の本体(1)にお
ける入出力制御アダプタ(2)をドライブする入出力制
御ソフトウェア(11)を試験するテストツール(12
)において、 入出力制御アダプタ(2)を起動させるコマンドを発生
するコマンド発生手段(121)と、予め外部から設定
されたデータに基づき割込みデータを発生し外部から指
示されたタイミングに割込み及び割込みデータを出力す
る割込みデータ発生手段(122)を備え、 標準的に実装されている入出力制御アダプタ(2)を使
用し、入出力制御ソフトウェア(11)に対し、任意に
設定された割込みデータにより任意のタイミングに擬似
的に割込みを発生させ、試験を行うよう構成したことを
特徴とする入出力制御ソフトウェアの試験制御方式。
[Claims] A test tool (12) for testing input/output control software (11) that drives an input/output control adapter (2) in a main body (1) of a workstation, controller, etc.
) includes a command generating means (121) that generates a command to start the input/output control adapter (2), and a command generating means (121) that generates interrupt data based on data set from the outside and generates the interrupt and the interrupt data at a timing instructed from the outside. It is equipped with an interrupt data generation means (122) that outputs interrupt data, and uses a standardly installed input/output control adapter (2) to generate arbitrary output data using arbitrarily set interrupt data for the input/output control software (11). A test control method for input/output control software, characterized in that the test is performed by generating a pseudo interrupt at the timing of the input/output control software.
JP62269742A 1987-10-26 1987-10-26 System for controlling test of input/output control software Pending JPH01112344A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62269742A JPH01112344A (en) 1987-10-26 1987-10-26 System for controlling test of input/output control software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62269742A JPH01112344A (en) 1987-10-26 1987-10-26 System for controlling test of input/output control software

Publications (1)

Publication Number Publication Date
JPH01112344A true JPH01112344A (en) 1989-05-01

Family

ID=17476524

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62269742A Pending JPH01112344A (en) 1987-10-26 1987-10-26 System for controlling test of input/output control software

Country Status (1)

Country Link
JP (1) JPH01112344A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0561718A (en) * 1991-09-04 1993-03-12 Nec Corp Software evaluating system
US7366650B2 (en) 2001-04-12 2008-04-29 Arm Limited Software and hardware simulation
JP2011512590A (en) * 2008-02-14 2011-04-21 インターナショナル・ビジネス・マシーンズ・コーポレーション Computer program, apparatus, and method for processing a variable length device command word (DCW) in a controller configured for communication with an input / output subsystem in an input / output (I / O) processing system ( Variable length device command word processing in the control unit in the I / O processing system)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62115548A (en) * 1985-11-15 1987-05-27 Toshiba Corp Measuring value simulation information generating system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62115548A (en) * 1985-11-15 1987-05-27 Toshiba Corp Measuring value simulation information generating system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0561718A (en) * 1991-09-04 1993-03-12 Nec Corp Software evaluating system
US7366650B2 (en) 2001-04-12 2008-04-29 Arm Limited Software and hardware simulation
JP2011512590A (en) * 2008-02-14 2011-04-21 インターナショナル・ビジネス・マシーンズ・コーポレーション Computer program, apparatus, and method for processing a variable length device command word (DCW) in a controller configured for communication with an input / output subsystem in an input / output (I / O) processing system ( Variable length device command word processing in the control unit in the I / O processing system)

Similar Documents

Publication Publication Date Title
US5832418A (en) Apparatus for testing a controller with random contraints
JPH08227367A (en) Hardware software debugger
US6535841B1 (en) Method for testing a controller with random constraints
JPH0374420B2 (en)
JPH01112344A (en) System for controlling test of input/output control software
JPS6349851A (en) Simulation system
JPH0320772B2 (en)
JPH11272307A (en) Motion controller
JP4100901B2 (en) Logic verification method for system LSI
JPH02239337A (en) Test device of scsi controller
JPH01253055A (en) Input/output controller
JPH08137531A (en) Device and method for testing operating of robot control software
JPS5911406A (en) On-line simulator of process computer
JPH1040133A (en) Software simulator
JPS61231607A (en) Simulation system for iron and steel rolling control system
JPH04369044A (en) Testing device for computer
JPS60171546A (en) Debug system of input and output device
JPH0328936A (en) Diagnostic test system for information processor
JPH06324903A (en) Software testing device
JPS6222152A (en) Hardware simulation device
JPS61105635A (en) Disk control device
JP2003178105A (en) Logic verification system of system lsi
JPH02121001A (en) Computor device for controlling continuous feedback
JPS6057444A (en) Diagnosis test system for firmware device
JPS63208146A (en) Computer environment converter