JPH04372017A - Computer testing system - Google Patents

Computer testing system

Info

Publication number
JPH04372017A
JPH04372017A JP3148667A JP14866791A JPH04372017A JP H04372017 A JPH04372017 A JP H04372017A JP 3148667 A JP3148667 A JP 3148667A JP 14866791 A JP14866791 A JP 14866791A JP H04372017 A JPH04372017 A JP H04372017A
Authority
JP
Japan
Prior art keywords
instruction
instructions
test
execution order
attribute
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
JP3148667A
Other languages
Japanese (ja)
Inventor
Satoru Nakano
哲 中野
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP3148667A priority Critical patent/JPH04372017A/en
Publication of JPH04372017A publication Critical patent/JPH04372017A/en
Pending legal-status Critical Current

Links

Landscapes

  • Executing Machine-Instructions (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

PURPOSE:To generate a test case capable of testing the execution order of instructions and the combination of instructions to be used as well as performing a test automatically and quickly. CONSTITUTION:This computer testing system is provided with an order defining means 10 equipped with an instruction execution order definition part 1 defining the execution order of the instruction of the computer system to be tested, an instruction information part 11 equipped with an instruction information file 4 storing the instruction information of each instruction of the computer to be tested, an instruction selection part 3 selecting the instruction information stored in the instruction storage part according to the attribute of the instruction defined by the order defining means, a generating means 12 equipped with a test case generating part 5 generating the test instruction string.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】この発明は、命令の実行順序に着
目した計算機システム試験方式に関し、例えば、実行順
序によって同一命令でもH/Wの動作が異なる計算機シ
ステムに対して、効率良く、テストケースを生成するた
めの試験方式に関するものである。同一命令でも、キャ
ッシュ使用、アドレス変換レジスタの状態等によりH/
Wの動作が異なる。また、プログラムが自分自身のコー
ドを変化させて実行される場合もある。この発明は、こ
のような計算機システムを効率よくテストする試験方式
に関するものである。
[Industrial Application Field] The present invention relates to a computer system testing method that focuses on the order of execution of instructions. It concerns a test method for generating . Even for the same instruction, H/
The operation of W is different. In other cases, a program may be executed by modifying its own code. The present invention relates to a test method for efficiently testing such a computer system.

【0002】0002

【従来の技術】図8は、簡単な命令の実行順序に着目し
た試験の例である。50はマイクロプロセッサ、51は
マイクロプロセッサ内のマイクロプログラムであり、4
0はマイクロプロセッサ50のマイクロプログラム51
を試験する命令列である。命令列40は、複数の命令(
I1〜I5)によって構成されている。また、命令列4
0は、オペランドとしてメモリM1を使用しているとす
る。また、試験として、命令I2はメモリM1にデータ
を書き込み、命令I4でメモリM1からデータを読み込
む命令とする。従来の実行順序を意識した試験は、試験
対象となる機能をもとに、人手によって命令を並べるこ
とによって実施してきた。このため作成するテストケー
スには限りがあった。また、メモリにデータを書き込む
命令I2の位置に割り付ける命令として、たとえばスト
ア命令を用いたとすると、図示しない他の命令列でのメ
モリにデータを書き込む命令も同じストア命令を使用す
る可能性が高く、試験で使用する命令は限られたものに
なっていた。
2. Description of the Related Art FIG. 8 is an example of a test focusing on the execution order of simple instructions. 50 is a microprocessor, 51 is a microprogram in the microprocessor, and 4
0 is the microprogram 51 of the microprocessor 50
This is a sequence of instructions to test. The instruction string 40 includes a plurality of instructions (
I1 to I5). Also, instruction string 4
0 indicates that the memory M1 is used as an operand. Also, as a test, the instruction I2 writes data to the memory M1, and the instruction I4 reads data from the memory M1. Conventional tests that take execution order into consideration have been performed by manually arranging instructions based on the function to be tested. For this reason, there was a limit to the number of test cases that could be created. Furthermore, if, for example, a store instruction is used as the instruction to allocate to the location of the instruction I2 that writes data to the memory, there is a high possibility that instructions to write data to the memory in other instruction sequences (not shown) will also use the same store instruction. The instructions used in the exam were limited.

【0003】0003

【発明が解決しようとする課題】従来のテストケース生
成方式では、命令の実行順序を意識した試験では、限ら
れた命令で行なっていたため、実行順序による試験しか
行なっておらず、実行順序とそこで使用される命令の組
合せによる試験が充分に行なうことができなかった。こ
のため、充分な品質を確保することができなかった。
[Problem to be Solved by the Invention] In conventional test case generation methods, tests that take into account the execution order of instructions are performed using a limited number of instructions, so tests are only performed based on the execution order, and the It was not possible to sufficiently test the combinations of instructions used. For this reason, it was not possible to ensure sufficient quality.

【0004】この発明は上記の問題点を解決すべく、命
令の実行順序と使用する命令の組合せに関する試験がで
きるとともに、試験を実施するテストケースを自動的に
、かつ短時間で生成することが可能な計算機システム試
験方式を得ることを目的とする。
[0004] In order to solve the above problems, the present invention is capable of testing the execution order of instructions and combinations of instructions to be used, and can automatically generate test cases for carrying out the tests in a short time. The purpose is to obtain a possible computer system testing method.

【0005】[0005]

【課題を解決するための手段】この発明に係る計算機シ
ステム試験方式は以下の要素を有するものである。 (a)テストすべき計算機システムの試験命令の実行順
序を命令の属性で定義する順序定義手段、(b)テスト
すべき計算機の各命令に関する命令情報を各命令の属性
に基づいて記憶する命令情報部、(c)上記順序定義手
段で定義された命令の属性に従って、上記命令記憶部に
記憶された命令情報を選択し、テストすべき計算機の試
験命令列を生成する生成手段。
[Means for Solving the Problems] A computer system testing method according to the present invention has the following elements. (a) Order definition means that defines the execution order of test instructions of the computer system to be tested based on the attributes of the instructions; (b) Instruction information that stores instruction information regarding each instruction of the computer to be tested based on the attributes of each instruction. (c) generation means for selecting instruction information stored in the instruction storage section according to the instruction attributes defined by the order definition means and generating a test instruction sequence for a computer to be tested;

【0006】[0006]

【作用】この発明に係わる計算機システム試験方式は、
人手で指定した命令の実行順序、もしくは、プログラム
によってランダムに決めた命令の実行順序をもとに、順
序定義手段が命令の実行順序を命令属性で指定するとと
もに、生成手段が命令属性から組合せ可能な命令をもち
いて命令の実行順序を意識して試験を実施するテストケ
ースを生成し、生成したテストケースをもちいて試験を
実施するものである。このように命令の実行順序を命令
属性で指定したことにより、命令の実行順序に関する試
験を行なう場合、命令属性に関する命令の組み合わせた
試験が可能となり、命令の実行順序と命令の組合せに関
する試験洩れが無くなる。
[Operation] The computer system test method according to this invention is
Based on the instruction execution order specified manually or randomly determined by a program, the order definition means specifies the instruction execution order with instruction attributes, and the generation means can combine from the instruction attributes. This method generates a test case that executes a test using instructions that are conscious of the instruction execution order, and then executes a test using the generated test case. By specifying the instruction execution order using the instruction attribute in this way, when testing the instruction execution order, it becomes possible to test combinations of instructions related to the instruction attribute, thereby eliminating the possibility of omitting tests regarding the instruction execution order and instruction combinations. It disappears.

【0007】[0007]

【実施例】【Example】

実施例1.図1は本試験方式の概略図である。図におい
て、1は命令の実行順序を決定する命令実行順序定義部
であり、2は試験を実施する命令の実行順序を記述した
命令実行順序ファイルであり、ファイル内には命令実行
順序情報テーブル21と命令属性テーブル22が含まれ
ている。4は命令情報を記録した命令情報ファイルであ
り、3は命令属性をもとに、命令情報ファイル4内から
適した命令を選択する命令選択部であり、5は命令実行
順序ファイル2をもとにテストケースを生成するテスト
ケース生成部で、6は生成したテストケースを書き込む
テストケースファイルである。また、10はテストすべ
き計算機システムの命令の実行順序を命令の属性で定義
する順序定義手段、11はテストすべき計算機の各命令
に関する命令情報を命令の属性に基づいて記憶する命令
情報部、12は上記順序定義手段で定義された命令の属
性に従って、上記命令記憶部に記憶された命令情報を選
択し、テストすべき計算機の試験命令列を生成する生成
手段である。
Example 1. FIG. 1 is a schematic diagram of this test method. In the figure, 1 is an instruction execution order definition part that determines the instruction execution order, 2 is an instruction execution order file that describes the execution order of instructions to be tested, and the file contains an instruction execution order information table 21. and an instruction attribute table 22. 4 is an instruction information file in which instruction information is recorded; 3 is an instruction selection unit that selects a suitable instruction from the instruction information file 4 based on instruction attributes; and 5 is an instruction selection section that selects a suitable instruction from the instruction execution order file 2. 6 is a test case generation unit that generates test cases, and 6 is a test case file in which the generated test cases are written. 10 is an order definition means for defining the execution order of the instructions of the computer system to be tested based on the attributes of the instructions; 11 is an instruction information unit for storing instruction information regarding each instruction of the computer to be tested based on the attributes of the instructions; Reference numeral 12 denotes a generation means for selecting instruction information stored in the instruction storage section according to the instruction attributes defined by the order definition means and generating a test instruction sequence for the computer to be tested.

【0008】次に、図2は試験を実施する命令の実行順
序ファイル2の内容を説明するための図である。説明す
る内容は従来の方式の図6の命令の実行順序に着目した
試験の例をもとに、実行順序情報テーブル21と命令属
性テーブル22の内容を説明している。命令属性は実行
順序情報の個々の命令毎に存在する。命令I1に対する
命令実行情報はS1に、また、命令属性A1割り付けら
れている。ここで、S1には命令属性A1が記録されて
いるアドレスが「A1へのポインタ」として記憶されて
いる。そして、A1には命令属性として「メモリ書込み
」という属性が記録されている。同様に、I2に対して
は、S2とA2が割り付けられている。尚、同じ命令属
性の場合は、I2とI5の様に、A2の命令属性を共有
する場合も可能とする。このように、S1〜S5は実行
される順序を示すとともに、各命令属性へのポインタが
記録されることにより、実行されるべき命令の属性を順
に示すことになる。
Next, FIG. 2 is a diagram for explaining the contents of the execution order file 2 of instructions for carrying out a test. The contents of the explanation will be based on an example of a test focusing on the execution order of instructions in the conventional method shown in FIG. 6, and the contents of the execution order information table 21 and the instruction attribute table 22 will be explained. An instruction attribute exists for each instruction in the execution order information. Instruction execution information for instruction I1 is assigned to S1 and instruction attribute A1. Here, the address where the instruction attribute A1 is recorded is stored in S1 as a "pointer to A1." In A1, an attribute "memory write" is recorded as an instruction attribute. Similarly, S2 and A2 are assigned to I2. In addition, in the case of the same instruction attribute, it is also possible to share the instruction attribute of A2, such as I2 and I5. In this way, S1 to S5 indicate the order of execution, and by recording pointers to the attributes of each instruction, they indicate the attributes of the instructions to be executed in order.

【0009】また、図3は命令情報ファイル4の内容を
説明するための図である。図において、41は属性情報
、42は試験すべき計算機システムに与える各命令、4
3はオペランドやパラメータ条件等の各命令42に付属
する付属情報である。
FIG. 3 is a diagram for explaining the contents of the command information file 4. In the figure, 41 is attribute information, 42 is each instruction given to the computer system to be tested, 4
3 is attached information attached to each instruction 42 such as operands and parameter conditions.

【0010】本試験方式の動作の説明をする。命令の実
行順序に関する試験項目は、命令の実行順序を決定する
命令実行順序定義部1で作成する。実行順序の決め方は
、プログラムによってランダムに命令の実行順序を決め
ていく方式と端末等から人手によって指定していく場合
がある。プログラムによって命令の実行手順を決める場
合は、試験対象となる計算機システムの動作に関して、
事前に条件を設定する。また、人手によって指定する場
合は、たとえば、図2に示したA1〜A4の属性情報の
順番をディスプレイ表示して、キーボード等の入力装置
により実行順を指定する。今、命令実行順序定義部1に
より、最初にオペレータが「メモリ書込み」を実行した
いと考え、A1の属性情報を指定したとすると、実行順
序情報テーブル21のS1にA1へのポインタが設定さ
れる。次にオペレータが「レジスタの変更」を行ないた
い場合にA2の属性情報を指定することにより、S2に
A2へのポインタが設定される。同様にしてS3もポイ
ンタが設定される。次に、S4の場合は、オペレータが
命令に関して条件をつけずにどの命令でもかまわないと
指定した場合に「指定なし」の記憶がされ、属性情報へ
のポインタは生成されない場合である。また、S5は前
述したようにA2へのポインタが設定された場合を示し
ている。この時点で、命令実行順序定義部1は、以下の
順で命令を実行したい旨の情報を命令実行順序ファイル
2に設定したことになり、図2に示した状態が形成され
る。 1.メモリの書込み 2.レジスタ変更 3.メモリの読込み 4.指定なし 5.レジスタ変更
[0010] The operation of this test method will be explained. Test items related to the instruction execution order are created by an instruction execution order definition unit 1 that determines the instruction execution order. The execution order may be determined randomly by a program or manually from a terminal or the like. When determining the instruction execution procedure by a program, the operation of the computer system to be tested is
Set conditions in advance. When specifying manually, for example, the order of attribute information A1 to A4 shown in FIG. 2 is displayed on a display, and the execution order is specified using an input device such as a keyboard. Now, if the operator wants to execute "memory write" first and specifies the attribute information of A1, the instruction execution order definition unit 1 sets a pointer to A1 in S1 of the execution order information table 21. . Next, when the operator wants to "change the register", he specifies the attribute information of A2, and a pointer to A2 is set in S2. Similarly, a pointer is set in S3 as well. Next, in the case of S4, when the operator specifies that any command is acceptable without attaching any conditions to the command, "no designation" is stored and a pointer to the attribute information is not generated. Furthermore, S5 indicates the case where the pointer to A2 is set as described above. At this point, the instruction execution order definition unit 1 has set information indicating that instructions are to be executed in the following order in the instruction execution order file 2, and the state shown in FIG. 2 is created. 1. Memory writing 2. Register change 3. Reading memory 4. Not specified5. register change

【0011】次にテストケース生成部5はこの命令実行
順序ファイル2をもとに、テストケースを生成する。そ
のテストケース生成部5の動作を図4のフローにて説明
する。始めに、F1で、指定された命令実行順序ファイ
ル2の命令実行情報テーブル21を探す。次にF2にお
いて、F1で探した命令実行情報テーブル21をもとに
、命令属性を探す。たとえば、この例では、S1からA
1へのポインタをたどり属性情報A1を得る。次に、F
3において、命令属性が命令実行情報テーブルに指定さ
れていない場合(たとえば、S4の場合)は、F5にお
いて、命令に関して条件をつけずに(どの命令でも可能
)命令選択部3に対して命令の選択要求を行なう。また
、S1,S2,S3,S5のように命令属性の指定があ
る場合は、F4において、命令属性及び付随する条件を
もとに、命令選択部3に対して命令の選択要求を行なう
。なお、F4で命令の選択要求を行なう場合は、要求通
りの命令がない場合がある。この場合は、F6において
要求通りの命令が存在したかをチェックし、存在しない
場合は、F8において、指定された命令実行順序ファイ
ルのテストケースの生成を中止して、テストケース生成
の処理を終える。命令が存在した場合は、F7において
以下のように命令の生成を行なう。F7では、命令選択
部3が命令属性に基づいて命令情報ファイル4から対応
する命令情報を得てテストケース生成部5に出力する。 テストケース出力部5は命令属性に付随する条件とこの
命令情報をもとに、命令のイメージやメモリ、レジスタ
の初期値、期待値の生成を行なう。実際には、メモリや
レジスタ等の割付けや、値の設定を行う。この時に、復
数の命令から同じ資源(メモリなど)を使用するなどの
処理も行う。1命令について生成が終了したら、F9に
おいて、次の命令実行情報を探す。次の、F10におい
て命令実行情報がある場合は、F2に飛んで、次の命令
の生成処理を行なう。また、命令実行情報が存在しない
場合は、テストケースの終了処理としてF11の処理を
行なう。F11では、生成したテストケースで使用する
レジスタやメモリの初期値と期待値の設定を行なう。
Next, the test case generating section 5 generates a test case based on this instruction execution order file 2. The operation of the test case generation section 5 will be explained with reference to the flow shown in FIG. First, in F1, the instruction execution information table 21 of the specified instruction execution order file 2 is searched. Next, in F2, an instruction attribute is searched based on the instruction execution information table 21 searched in F1. For example, in this example, from S1 to A
1 and obtain attribute information A1. Next, F
In step 3, if the instruction attribute is not specified in the instruction execution information table (for example, in the case of S4), in step F5, the instruction is sent to the instruction selection unit 3 without any conditions regarding the instruction (any instruction is possible). Make a selection request. Further, if an instruction attribute is specified such as S1, S2, S3, or S5, a request for selecting an instruction is made to the instruction selection section 3 based on the instruction attribute and accompanying conditions in F4. Note that when a command selection request is made at F4, the requested command may not be available. In this case, check whether the requested instruction exists at F6, and if it does not exist, stop generating the test case for the specified instruction execution order file at F8 and finish the test case generation process. . If an instruction exists, the instruction is generated in F7 as follows. At F7, the instruction selection unit 3 obtains corresponding instruction information from the instruction information file 4 based on the instruction attributes and outputs it to the test case generation unit 5. The test case output unit 5 generates an image of an instruction, initial values of memory and registers, and expected values based on conditions attached to instruction attributes and this instruction information. In reality, it allocates memory, registers, etc., and sets values. At this time, processing such as using the same resource (memory, etc.) from multiple instructions is also performed. When generation of one instruction is completed, the next instruction execution information is searched for in F9. If there is instruction execution information at the next step F10, the process jumps to F2 and generates the next instruction. Furthermore, if the instruction execution information does not exist, the process of F11 is performed as the test case termination process. In F11, initial values and expected values of registers and memory used in the generated test case are set.

【0012】次に、F4,F5において命令の選択要求
が出された場合の命令選択部3の動作について説明する
。命令選択部3においては、テストケース生成部5から
命令属性にあった命令の選択要求をもとに、命令情報フ
ァイル4から命令の選択を行なう。また、選択された命
令に関しては、テストケース生成部5において命令のイ
メージが生成できる形式でテストケース生成部5へわた
す。この形式は、レジスタやメモリなどの命令の動作と
は関係ない所は空き形式とし、テストケース生成部5に
おいて、空き形式部分の情報の設定を可能とする。
Next, the operation of the instruction selection section 3 when an instruction selection request is issued at F4 and F5 will be explained. The instruction selection section 3 selects an instruction from the instruction information file 4 based on a request from the test case generation section 5 to select an instruction that matches the instruction attributes. Further, the selected instruction is passed to the test case generation section 5 in a format that allows the test case generation section 5 to generate an image of the instruction. In this format, areas unrelated to the operation of instructions, such as registers and memory, are left in an empty format, and the test case generation unit 5 can set information in the empty format portions.

【0013】たとえば、S1に担当する命令を選択する
要求がテストケース生成部5のF4の動作から発生した
とすると、命令選択部3はS1の属性情報がA1である
ため「メモリ書込み」という属性をもった命令を命令情
報ファイル4からひとつ選択する。図3に示すように「
メモリ書込み」の属性をもった命令にSTOREとPU
T等があるとすると、命令選択部3はランダムにひとつ
の命令、たとえばSTOREをテストケース生成部5に
わたす。その際、STORE命令に必要なレジスタの指
定とSTORE先アドレスは未記入のままわたす。
For example, if a request to select the instruction in charge of S1 is generated from the operation of F4 of the test case generation unit 5, the instruction selection unit 3 selects the attribute “memory write” because the attribute information of S1 is A1. Select one instruction from the instruction information file 4. As shown in Figure 3, “
STORE and PU for instructions with the attribute “memory write”
Assuming that there are T, etc., the instruction selection section 3 randomly passes one instruction, for example, STORE, to the test case generation section 5. At this time, the register designation and STORE destination address necessary for the STORE command are passed without being filled in.

【0014】同様に、S2の場合は、A2の属性情報が
指定されているので、「レジスタ変更」の属性情報の中
の命令群(ADD,SUB,AND,OR,…)の中か
らランダムにひとつの命令が選択される。S3,S5の
場合も同様であるが、S4の場合は属性情報が「指定な
し」のため、命令選択部3は命令情報ファイル4に記録
された命令の中から任意の命令を自由に選択する。
Similarly, in the case of S2, since the attribute information of A2 is specified, a command is randomly selected from among the instruction group (ADD, SUB, AND, OR,...) in the attribute information of "register change". One instruction is selected. The same applies to S3 and S5, but in the case of S4, the attribute information is "not specified", so the instruction selection unit 3 freely selects any instruction from among the instructions recorded in the instruction information file 4. .

【0015】このようにして、生成されたテストケース
の一例を図5に示す。図において、51はテスト生成部
5において生成された初期値設定命令、52はS1〜S
5に基づいて生成された各命令52a〜52eから構成
された命令列、53は命令列の実行結果をテストする期
待値テスト命令である。各命令は以下のようにして命令
選択部3によって選択されたものである。 STORE命令52a…属性情報「メモリ書込み」の命
令群よりランダムに選択 ADD命令52b…属性情報「レジスタ変更」の命令群
よりランダムに選択 LOAD命令52c…属性情報「メモリ読込み」の命令
群よりランダムに選択 SHIFT命令52d…命令情報ファイルの命令群より
任意に選択 ADD命令52e…属性情報「レジスタ変更」の命令群
よりランダムに選択 なお、テストケース生成部5で書き込まれたテストケー
ス6は、そのまま、実行部においてすぐに実行される場
合と、複数のテストケースをまとめて、後で、実行され
る場合がある。なお、上記実施例では、命令選択部3は
ランダムに命令を選択する場合を示したが、その他に以
下の選択方法がある。 1.命令群の中から順番に命令を選択する。 2.特に試験したい特定命令を指定により選択する。 3.命令群の命令をすべて選択し、すべての場合につい
てテストケースを作成する。(ただし、この場合はテス
トケース生成部5もこのようなすべてのケースを生成す
る機能をもつ必要がある。)
FIG. 5 shows an example of a test case generated in this manner. In the figure, 51 is an initial value setting command generated by the test generation unit 5, and 52 is S1 to S
An instruction string 53 is an expected value test instruction for testing the execution result of the instruction string. Each command is selected by the command selection section 3 as follows. STORE instruction 52a...randomly selected from the instruction group with attribute information "memory write" ADD instruction 52b...randomly selected from the instruction group with attribute information "register change" LOAD instruction 52c...randomly selected from the instruction group with attribute information "memory read" Selection SHIFT instruction 52d...Arbitrarily selected from a group of instructions in the instruction information file ADD instruction 52e...Randomly selected from a group of instructions with attribute information "Register change" Note that the test case 6 written by the test case generation unit 5 is In some cases, it is executed immediately in the execution section, and in other cases, multiple test cases are collectively executed at a later time. In the above embodiment, the instruction selection section 3 selects instructions at random, but there are other selection methods as follows. 1. Select commands in order from a group of commands. 2. A specific instruction that is particularly desired to be tested is selected by designation. 3. Select all instructions in the instruction group and create test cases for all cases. (However, in this case, the test case generation unit 5 also needs to have the function of generating all such cases.)

【0016】実施例2.図6は、実施例1のものに対し
て、命令実行順序ファイル2にオペランド属性テーブル
23を付加したものである。ここでのオペランドとは、
命令で使用するメモリやレジスタをさし、また、命令で
使用するメモリやレジスタ以外にも命令のメモリやキャ
ッシュなどのH/W内部の条件をも含んだものとする。 また、命令間でのオペランドの条件も含むものとする。 たとえば、オペランド属性テーブル23には、レジスタ
のNo、キャッシュの使用条件、アドレス変換テーブル
の状態、使用するメモリのアドレス重複指定等のオペラ
ンドに関する情報が各属性に分けられて記録されている
Example 2. FIG. 6 shows an example in which an operand attribute table 23 is added to the instruction execution order file 2 compared to the first embodiment. The operand here is
It refers to the memory and registers used in the instruction, and also includes the internal H/W conditions such as the instruction memory and cache in addition to the memory and registers used in the instruction. It also includes conditions for operands between instructions. For example, the operand attribute table 23 records information related to operands, such as register numbers, cache usage conditions, address conversion table status, and address duplication designations for memory to be used, divided into attributes.

【0017】図7はオペランド属性テーブル23の内容
を示す図であり、S1〜S5からオペランド属性テーブ
ル23への各オペランド属性P1〜P5への矢印はS1
〜S5に記録されたポインタを示している。このP1〜
P5へのポインタは命令実行順序定義部1によりオペレ
ータの指定あるいはプログラムの指定により設定される
FIG. 7 is a diagram showing the contents of the operand attribute table 23, and the arrows from S1 to S5 to the operand attributes P1 to P5 in the operand attribute table 23 are S1.
~S5 shows the pointer recorded. This P1~
The pointer to P5 is set by the instruction execution order definition unit 1 according to an operator's designation or a program's designation.

【0018】この実施例2においては、テストケース生
成の際、オペランドの生成についてはオペランド属性テ
ーブル23に指定されたオペランド属性にあうようにオ
ペランドが生成される。したがって、実施例1において
は、テストケース生成部5が任意にオペランドを生成で
きたのに対して、実施例2では、オペランドも指定して
テストケースが作成できる点が追加された特徴である。
In this second embodiment, when generating a test case, operands are generated to match the operand attributes specified in the operand attribute table 23. Therefore, in the first embodiment, the test case generation unit 5 was able to generate operands arbitrarily, whereas in the second embodiment, an additional feature is that a test case can be created by specifying operands as well.

【0019】以上のよう、この実施例では、命令の実行
順序によってH/Wの動作の異なる計算機システム等に
おいて、命令の実行順序によるテストケースの命令属性
とオペランド属性を決める機能と、オペランド属性をも
とにメモリやレジスタなどの設定を行う機能と、命令属
性をもとに命令を生成する機能と、生成した命令やオペ
ランドをテストケースとする機能を持つことにより、命
令の実行順序を意識したテストケースの生成を可能とし
、対象となる計算機システムの試験を可能とした試験方
式を説明した。
As described above, this embodiment provides a function to determine the instruction attributes and operand attributes of a test case based on the instruction execution order, and a function to determine the operand attributes in a computer system where H/W operation differs depending on the instruction execution order. By having the function of configuring memory and registers, the function of generating instructions based on instruction attributes, and the function of using the generated instructions and operands as test cases, the execution order of instructions can be considered. We have explained a test method that enables the generation of test cases and the testing of the target computer system.

【0020】なお、この発明に関連する技術として、特
開平1−265333号公報に開示された「命令自動生
成装置」がある。この公報に記載された技術では、単命
令の条件を組み合わせることでテストケースの生成を行
っているのに対し、本発明では複数の命令間の条件をも
とにテストケースの生成を行っている。このため、処理
方法も公報の技術は命令を決めてから対応する命令属性
のテーブルを検索し、命令属性テーブルをもとに命令の
生成をおこなっている。しかし、本発明は、命令属性の
テーブルを組み合わせることで、命令列に着目したテス
トケースの生成を行っており、組み合わせた命令属性の
テーブルをもとに、条件にあった命令を選択して、指定
された命令属性テーブルをもとに、命令のイメージの生
成を行っている。また、命令属性テーブルから命令のイ
メージの生成する段階においても、公報の技術では、個
々の命令に着目した命令属性テーブルであり、生成する
命令(オペランド等も含む)も命令間での関係を指定す
ることはできず、命令間の関係の重なりあいはおきない
。しかし、本発明では、複数の命令間での命令属性テー
ブルであり、生成する命令(オペランド等も含む)も命
令間での関係の重なり合が起きてくる。たとえば、公報
の技術では先の命令であるオペランドを使用し、後の命
令でそのオペランドを使用するような指定を考慮するこ
とができないのに対し、この発明では、先後の命令で同
一オペランドを指定でき、命令間での関係を指定できる
[0020] As a technology related to the present invention, there is an ``instruction automatic generation device'' disclosed in Japanese Unexamined Patent Publication No. 1-265333. The technology described in this publication generates test cases by combining the conditions of single instructions, whereas the present invention generates test cases based on the conditions between multiple instructions. . For this reason, in the processing method of the technique disclosed in the publication, after determining an instruction, a table of corresponding instruction attributes is searched, and an instruction is generated based on the instruction attribute table. However, the present invention generates test cases focusing on instruction sequences by combining instruction attribute tables, and selects instructions that meet the conditions based on the combined instruction attribute tables. An image of the instruction is generated based on the specified instruction attribute table. In addition, even at the stage of generating an instruction image from an instruction attribute table, the technique disclosed in the publication is an instruction attribute table that focuses on individual instructions, and the generated instructions (including operands, etc.) also specify relationships between instructions. It is not possible to do so, and there is no overlapping relationship between commands. However, in the present invention, the instruction attribute table is an instruction attribute table between a plurality of instructions, and the generated instructions (including operands, etc.) also have overlapping relationships among the instructions. For example, in the technique disclosed in the publication, it is not possible to take into consideration the designation of using an operand in a previous instruction and the use of that operand in a later instruction, whereas in this invention, the same operand can be specified in a previous instruction You can specify relationships between instructions.

【0021】[0021]

【発明の効果】以上のように、命令の実行順序を命令の
属性によって設定し、命令の属性をもとに命令の生成を
行なうことにより、プログラムによって自動的にテスト
ケースの生成を行なうことができ、命令の実行順序とそ
こで使用される命令の組合せに関して、人手では作成で
きない程の個数のテストケースの生成を行なうことがで
きる。このことによって、計算機システムに対して、命
令の実行順序と命令の組合せに関する試験洩れがなくな
り、品質を確保することができる。
[Effects of the Invention] As described above, by setting the instruction execution order based on the instruction attributes and generating instructions based on the instruction attributes, test cases can be automatically generated by a program. With regard to the instruction execution order and the combinations of instructions used therein, it is possible to generate a number of test cases that cannot be created manually. This eliminates the omission of tests regarding the instruction execution order and instruction combinations for the computer system, thereby ensuring quality.

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

【図1】本試験方式の概略図。FIG. 1: Schematic diagram of this test method.

【図2】命令実行順序ファイルの内容を示す図。FIG. 2 is a diagram showing the contents of an instruction execution order file.

【図3】命令情報部の一部を示す図。FIG. 3 is a diagram showing part of an instruction information section.

【図4】テストケース生成の概略フロー図。FIG. 4 is a schematic flow diagram of test case generation.

【図5】テストケースの一例を示す図。FIG. 5 is a diagram showing an example of a test case.

【図6】本試験方式の他の実施例図。FIG. 6 is a diagram showing another example of this test method.

【図7】命令実行順序ファイルの他の実施例図。FIG. 7 is a diagram showing another example of an instruction execution order file.

【図8】命令実行に着目した試験の例を示す図。FIG. 8 is a diagram showing an example of a test focusing on instruction execution.

【符号の説明】[Explanation of symbols]

1  命令実行順序定義部 2  命令実行順序ファイル 3  命令選択部 4  命令情報ファイル 5  テストケース生成部 6  テストケースファイル 10  順序定義手段 11  命令情報部 12  生成手段 1 Instruction execution order definition section 2 Instruction execution order file 3 Instruction selection section 4 Command information file 5 Test case generation section 6 Test case file 10 Order definition means 11 Command information department 12 Generating means

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】  以下の要素を有する計算機システム試
験方式 (a)テストすべき計算機システムの試験命令の実行順
序を命令の属性で定義する順序定義手段、(b)テスト
すべき計算機の各命令に関する命令情報を各命令の属性
に基づいて記憶する命令情報部、(c)上記順序定義手
段で定義された命令の属性に従って、上記命令記憶部に
記憶された命令情報を選択し、テストすべき計算機の試
験命令列を生成する生成手段。
Claim 1: A computer system testing method having the following elements: (a) an order definition means for defining the execution order of test instructions of the computer system to be tested using attributes of the instructions; (b) relating to each instruction of the computer to be tested; an instruction information section that stores instruction information based on attributes of each instruction; (c) a computer to be tested by selecting instruction information stored in the instruction storage section according to the instruction attributes defined by the order definition means; generation means for generating a test instruction sequence.
JP3148667A 1991-06-20 1991-06-20 Computer testing system Pending JPH04372017A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3148667A JPH04372017A (en) 1991-06-20 1991-06-20 Computer testing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3148667A JPH04372017A (en) 1991-06-20 1991-06-20 Computer testing system

Publications (1)

Publication Number Publication Date
JPH04372017A true JPH04372017A (en) 1992-12-25

Family

ID=15457929

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3148667A Pending JPH04372017A (en) 1991-06-20 1991-06-20 Computer testing system

Country Status (1)

Country Link
JP (1) JPH04372017A (en)

Similar Documents

Publication Publication Date Title
EP1691262A1 (en) Extending context awareness to support multi-file operations
US5029078A (en) Program loading method with relocation address
US6279025B1 (en) Parallel processing procedure selecting apparatus and method selecting and implementing parallel-executable processing procedures
US20060184898A1 (en) Context menu dependency on many objects of different type
JPH04372017A (en) Computer testing system
JPH06161719A (en) Program executing device
US7576786B2 (en) Information processing apparatus and method, program therefor and storage medium
US8359456B2 (en) Generating random addresses for verification of distributed computerized devices
US11429356B2 (en) Composition enablement for partner and customer extensibility of inversion of control objects
CN117033243B (en) Chip verification method, device, computer apparatus, storage medium and program product
JP3461185B2 (en) Method and apparatus for registering source code line number to load module
JPH0659908A (en) Device for executing program
JPS6232546A (en) Program execution and selection control system
JP5277893B2 (en) Debugging support apparatus and debugging support method
KR102076552B1 (en) Apparatus for registering and performing macro, macro registration method
JPH09114661A (en) Register controller
CN120353657A (en) Pattern loading method, system and device in test machine debugging
JPS63259724A (en) Comment information provision method
CN118708353A (en) Computing power sharing method, device, vehicle-mounted terminal, vehicle, system and storage medium
Thomas A model for process representation and synthesis
CN120296775A (en) Data storage and query method and device based on MySQL database
CN115729557A (en) Script processing method and device
JP2000137599A (en) GUI design system
JPH07295818A (en) Rule processing device
JPH04223537A (en) Image file storing system