JPH02238530A - Test system for working of program - Google Patents

Test system for working of program

Info

Publication number
JPH02238530A
JPH02238530A JP1057714A JP5771489A JPH02238530A JP H02238530 A JPH02238530 A JP H02238530A JP 1057714 A JP1057714 A JP 1057714A JP 5771489 A JP5771489 A JP 5771489A JP H02238530 A JPH02238530 A JP H02238530A
Authority
JP
Japan
Prior art keywords
command
program
under test
program under
test
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
JP1057714A
Other languages
Japanese (ja)
Inventor
Koichi Okada
広一 岡田
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP1057714A priority Critical patent/JPH02238530A/en
Publication of JPH02238530A publication Critical patent/JPH02238530A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Summary] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、プログラムの動作試験試に係り、特にコンピ
ュータ機器上で、またはコンピュータ機器と同一命令セ
ットが実行可能なシミュレーション装置上で動作するプ
ログラムの開発段階などにおいて、機器に各種コマンド
を与えてプログラムの動作を試験する方式に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to an operation test of a program, and in particular a program that runs on a computer device or a simulation device that can execute the same instruction set as the computer device. It relates to a method of testing the operation of a program by giving various commands to the device during the development stage.

〔従来の技術〕[Conventional technology]

従来、コンピュータ装置及びその上で実行するプログラ
ムの試験を、コマンドを順次与えることにより行う方式
としては、特開昭61−1.84647号公報に記載の
ようにコマンド入力装置から与えたコマンド列を記憶し
、そのコマンド列の各コマンドを順番に呼出して実行さ
せる様なものがある。
Conventionally, as a method for testing a computer device and a program executed on it by sequentially giving commands, as described in Japanese Unexamined Patent Publication No. 1984-1.84647, a command sequence given from a command input device is tested. There is a method that stores the commands and calls and executes each command in the command sequence in order.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上記従来技術は、キーボードなどの入力装置から入力さ
れた一連のコマンド列を記憶し、これを順次実行するこ
とにより、操作者が同じコマンドを何回も繰返し入力す
る手間を省くものである。
The above-described conventional technology stores a series of commands input from an input device such as a keyboard and sequentially executes them, thereby saving the operator the trouble of repeatedly inputting the same commands over and over again.

この方式では、入力されたコマンドが,コンピュータ装
置の認知しろる文法に従っているか否か、入力時にチェ
ックすることができる。
With this method, it is possible to check at the time of input whether the input command complies with the grammar recognized by the computer device.

しかし、コマンドを実行した時点で判明する該コマンド
の入力ミスに関しては配慮されていない。
However, no consideration is given to input errors in commands that become apparent when the commands are executed.

このため、操作者はコマンドが実行されるのを待って確
認しなければならないという問題がある。
Therefore, there is a problem in that the operator has to wait and confirm the execution of the command.

特に、被試験プログラムが長時間走行した後に実行され
るコマンドに上記入力ミスがあった場合、動作試験の能
率が著しく低下することになる。
In particular, if the above-mentioned input error occurs in a command executed after the program under test has been running for a long time, the efficiency of the operation test will be significantly reduced.

本発明の目的は、記憶したコマント列に潜在する上記実
行時判明ミスを、プログラムの動作試験開始以前に検出
して操作者に修正する機会を与えることにより、能率が
良く信頼も高い動作試験を行うことにある。
An object of the present invention is to detect the above-mentioned execution-time errors hidden in a stored command string and provide the operator with an opportunity to correct them before the start of a program operation test, thereby enabling efficient and highly reliable operation tests. It's about doing.

〔課題を解決するための手段〕[Means to solve the problem]

上記目的は、コンピュータ機器の動作を生じさせない無
効命令を命令セットに含むコンピュータ機器において、
被試験プログラムの試験手段に、被試験プログラムを構
成する命令を無効命令に置換する無効命令置換手段を具
備することにより達成される。
The above purpose is to provide computer equipment whose instruction set includes invalid instructions that do not cause the computer equipment to operate.
This is achieved by providing the testing means for the program under test with invalid instruction replacement means for replacing the instructions constituting the program under test with invalid instructions.

〔作用〕 コマンド列は予め試験手段内に記憶させる。次に、被試
験プログラムを構成する原命令を、無効命令置換手段に
より、無効命令に置換する。置換後の被試験プログラム
を試験手段により試験すると、試験手段内に記憶された
コマンド列が順次実行され、コマンドに潜在していた実
行時発生エラーが発見される。上記試験は被試験プログ
ラムが無効命令に置換されているために、コンピュータ
機器の動作を伴わず、又プログラム内で、処理ループを
生じることも無いため、速やかに処理される。
[Operation] The command sequence is stored in advance in the test means. Next, the original instructions constituting the program under test are replaced with invalid instructions by invalid instruction replacement means. When the replaced program under test is tested by the testing means, the command strings stored in the testing means are sequentially executed, and errors that occur during execution hidden in the commands are discovered. Since the test program is replaced with an invalid instruction, the above test does not involve any operation of the computer equipment, and does not cause a processing loop within the program, so it is processed quickly.

上記手段によりコマンド列のミスを発見し修正した後、
被試験プログラムを無効命令に置換せず、原命令のまま
再試験する。これにより、被試験プログラムに起因する
異常動作のみを検出することができる。
After discovering and correcting the mistake in the command string using the above method,
Retest the program under test with the original instructions without replacing them with invalid instructions. This makes it possible to detect only abnormal operations caused by the program under test.

無効命令置換手段は、試験手段と全く独立に動作するた
め、容易に具備できる。
Since the invalid instruction replacement means operates completely independently of the test means, it can be easily provided.

〔実施例〕〔Example〕

以下、本発明の一実施例を第1図乃至第2図により説明
する。第1図はその構成を示すもので、1は試験手段、
2は無効命令置換手段、3は被試験プログラム入力ルー
ト切換手段である。
An embodiment of the present invention will be described below with reference to FIGS. 1 and 2. Figure 1 shows its configuration, where 1 is a test means;
2 is an invalid instruction replacement means, and 3 is a program under test input route switching means.

第2図のフローチャートはこの実施例の処理手順を示し
ている。まず、ステップ20で操作者コマンド入力手段
8よりコマンドを入力する。入力されたコマンドはコマ
ンド登録手段9により主記憶装置17にコマンド列15
として記憶される。この際、コマンドの文法ミスは、コ
マンド・エラー検出手段10によって検出される。次に
ステップ21では、外部記憶装置6に格納されている被
試験プログラム7を無効命令置換手段2により無効命令
に置換した後、被試験プログラム入力手段により主記憶
装置17にロー1−する。この際、被試験プログラム入
力ルート切換手段3は、置換側4X,4Yとしておく。
The flowchart in FIG. 2 shows the processing procedure of this embodiment. First, in step 20, a command is input from the operator command input means 8. The input command is stored in the main memory 17 by the command registering means 9 as a command string 15.
is stored as. At this time, a syntax error in the command is detected by the command error detection means 10. Next, in step 21, the program under test 7 stored in the external storage device 6 is replaced with an invalid instruction by the invalid instruction replacing means 2, and then the program under test input means rows 1- into the main storage device 17. At this time, the program under test input route switching means 3 is set to the replacement side 4X, 4Y.

次に、ステップ22では、コマンド列15に従って試験
が実行される。コマンド列15は、コマンド実行制御手
段11により順次実行される。この時のエラーは、コマ
ンド・エラー検出手段により検出する。被試験プログラ
ム16は、命令実行手段12により読み出され処理され
るが、無効命令に置換されているため、この場合、命令
実行手段12は、被試験プログラム16を順次読み出す
だけで実質的な処理は何も行われない。以上のようにし
て、高速に処理される。
Next, in step 22, a test is executed according to the command sequence 15. The command sequence 15 is sequentially executed by the command execution control means 11. Errors at this time are detected by command error detection means. The program under test 16 is read and processed by the instruction execution means 12, but since the instructions have been replaced with invalid instructions, in this case, the instruction execution means 12 can perform no substantial processing by simply reading out the program under test 16 sequentially. nothing is done. As described above, processing is performed at high speed.

この結果、ステップ23において操作者は、コマンド列
15が正常であるか判断し、もし異常があれば、ステッ
プ24においてコマンドを修正する。コマンドの修正は
、コマンド入力手段8及びコマンド登録手段9にて行う
As a result, in step 23, the operator determines whether the command sequence 15 is normal, and if there is an abnormality, the operator corrects the command in step 24. Commands are modified using the command input means 8 and the command registration means 9.

コマンド列15が正常であった場合は、ステップ24に
おいて、被試験プログラム入力ルート切換手段3を、非
置換側5X,5Yとして、被試験プログラム7を再び主
記憶装置17にロードする。
If the command string 15 is normal, in step 24, the program under test input route switching means 3 is set to the non-replacement side 5X, 5Y, and the program under test 7 is loaded into the main storage device 17 again.

次にステップ25で、ステップ22と同様に試験を実行
する。ステップ25が従来の試験実行に相当するもので
ある。この時、コマンド列15に潜在ミスは無く、異常
動作は、すべて被試験プログラム16に起因するもので
ある。この異常動作は、異常動作検出手段13で検出さ
れる。
Next, in step 25, a test is performed in the same manner as in step 22. Step 25 corresponds to conventional test execution. At this time, there is no latent error in the command sequence 15, and all abnormal operations are caused by the program under test 16. This abnormal operation is detected by the abnormal operation detection means 13.

以上の様に、本実施例によれば、コマンド列を、実行さ
せてみないと検出できない様なコマンドのミスを短時間
で検出でき、この後、正常なコマンド列によって被試験
プログラムを試験するため、信頼性が高く、効率良く試
験できる効果がある。
As described above, according to this embodiment, command errors that cannot be detected unless the command sequence is executed can be detected in a short time, and the program under test can then be tested using a normal command sequence. Therefore, it is highly reliable and has the effect of allowing efficient testing.

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

本発明によれば、コマンド列を一括して記憶し、その正
常なことを予め保証したうえで、被試験プログラムを試
験できるので、信頼性が高く、効率が良いという効果が
ある。
According to the present invention, the program under test can be tested after storing command sequences all at once and ensuring in advance that they are normal, resulting in high reliability and high efficiency.

また、本発明に係わる無効命令置換手段は、試験手段と
独立に動作することができ、試験手段としてシミュレー
夕を用いる場合でも、シミュレータの改造を必要としな
い。
Further, the invalid instruction replacement means according to the present invention can operate independently of the testing means, and even when a simulator is used as the testing means, no modification of the simulator is required.

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

第1図は本発明の一実施例を適用したコンピュータ機器
の構成を示すブロック図、第2図は一実施例に係る動作
試験の処理手順を示すフローチャート図である。 1・・プログラム試験手段、 2・・無効命令置換手段、 3・被試験プログラム入力ルート切換手段、4X,4Y
・・・置換側、 5X,5Y・・・非置換側、6・・・
外部記憶装置、   7・・被試験プログラム。
FIG. 1 is a block diagram showing the configuration of a computer device to which an embodiment of the present invention is applied, and FIG. 2 is a flowchart showing the processing procedure of an operation test according to the embodiment. 1. Program testing means, 2. Invalid instruction replacement means, 3. Tested program input route switching means, 4X, 4Y
... Substitution side, 5X, 5Y... Non-substitution side, 6...
External storage device, 7. Program under test.

Claims (1)

【特許請求の範囲】[Claims] 無効命令を命令セットに含むコンピュータ機器上で動作
するプログラムの動作試験方式において、被試験プログ
ラムの実行を制御するコマンド列を記憶する手段と、記
憶したコマンド列を順番に呼び出して各コマンドを実行
させる手段と、被試験プログラムを構成する命令を無効
命令に置換する手段とを設け、被試験プログラムの試験
に先立って、予め上記コマンド列が正しく実行されるこ
とを検証することを特徴とするプログラムの動作試験方
式。
In an operation test method for a program running on a computer device whose instruction set includes an invalid instruction, there is provided a means for storing a command sequence for controlling the execution of the program under test, and a means for sequentially calling the stored command sequence to execute each command. and means for replacing instructions constituting the program under test with invalid instructions, and verifying that the command sequence is correctly executed before testing the program under test. Operation test method.
JP1057714A 1989-03-13 1989-03-13 Test system for working of program Pending JPH02238530A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1057714A JPH02238530A (en) 1989-03-13 1989-03-13 Test system for working of program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1057714A JPH02238530A (en) 1989-03-13 1989-03-13 Test system for working of program

Publications (1)

Publication Number Publication Date
JPH02238530A true JPH02238530A (en) 1990-09-20

Family

ID=13063617

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1057714A Pending JPH02238530A (en) 1989-03-13 1989-03-13 Test system for working of program

Country Status (1)

Country Link
JP (1) JPH02238530A (en)

Similar Documents

Publication Publication Date Title
JPS5851292B2 (en) Diagnosis/debug calculation system
EP0111952B1 (en) Verification of a processor architecture having a partial instruction set
CN121070314A (en) Test code repairing method and related equipment
CN112131101A (en) Automatic testing method, testing terminal and storage medium
US7353500B2 (en) Suppressing execution of monitoring measurement program pointed to by inserted branch after threshold number of coverage to reduce instruction testing overhead
CN112099383A (en) Avionics Self-Test Control Module
JPH02238530A (en) Test system for working of program
US7111212B2 (en) Debugging system for semiconductor integrated circuit
KR100924519B1 (en) File format analysis system and method for unknown file format to use software security testing
JPH0577143A (en) Failure diagnosis device for automated line
JPH036630A (en) Check system for interactive processing program
JPS6220579B2 (en)
JPH0612275A (en) Testing method of computer system
JPH03294934A (en) Debugger for high level program lenguage
JPS6250858B2 (en)
CN114356681A (en) Fault processing method and device in chip verification process and electronic equipment
Anderson Test application program interface for instrumentation
JPH04149746A (en) Debug device
JPH10289124A (en) Data flow abnormality inspection device
JPH05100898A (en) Program debugging system
JPH0333947A (en) Program content inspecting device
JPH02115951A (en) Maintenance and debug system for high level language program
JPH0573351A (en) Information processor
JPH05128019A (en) How to test the operating status of the I / O system
JPH07200357A (en) Computer program logic automatic test equipment