JPH0228839A - Load module generating system for routine single test processing system - Google Patents

Load module generating system for routine single test processing system

Info

Publication number
JPH0228839A
JPH0228839A JP63179694A JP17969488A JPH0228839A JP H0228839 A JPH0228839 A JP H0228839A JP 63179694 A JP63179694 A JP 63179694A JP 17969488 A JP17969488 A JP 17969488A JP H0228839 A JPH0228839 A JP H0228839A
Authority
JP
Japan
Prior art keywords
symbol
routine
unresolved
load module
name
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
JP63179694A
Other languages
Japanese (ja)
Inventor
Naoyuki 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.)
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 JP63179694A priority Critical patent/JPH0228839A/en
Publication of JPH0228839A publication Critical patent/JPH0228839A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Devices For Executing Special Programs (AREA)

Abstract

PURPOSE:To solve the referring problem of an unsolved symbol by generating a dummy compile unit when symbol information to an unsolved symbol to appear are not in a symbol information table. CONSTITUTION:When a master routine name 6 and the name of a routine A are given and a test processing system RTS is activated, an object module is taken out and compiled and a result is stored to a symbol information table 8 and a compile unit group storing means 10. When a load module preparation processing system LMS is activated, an initial set processing means 1 stores the master routine name 6 to an unsolved symbol holding means 12 and an unsolved symbol existence confirming means 2 delivers control to a retrieval symbol registering means 3 since the master routine name 6 is stored. The means 3 stores the routine name 6, which is held by the holding means 12, to a retrieving symbol holding means 7 and the control is delivered to a compile name retrieval processing means 4.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は電子計算機システムで実行するプログラムのテ
ストに使用されるルーチン単独テスト処理システムにお
けるロードモジュール生成方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a load module generation method in a routine single test processing system used for testing programs executed on an electronic computer system.

〔従来の技術〕[Conventional technology]

電子計算機システムで実行させるプログラムを新規に開
発した場合あるいは既存のプログラムを改造した場合、
そのプログラムが初期の機能を果たすか否かを調べる為
に各種のテストが行われるが、その一つに、ルーチン単
独テストがある。このルーチン単独テストは、テスト対
象とするルーチンを唯一つに絞り、そのルーチンのテス
ト用のロードモジュールを生成してテストを行うもので
ある。そして、このようなルーチン単独テストを支援す
るシステムにルーチン単独テスト処理システムがある。
If you develop a new program to be executed on a computer system or modify an existing program,
Various tests are performed to check whether the program performs its initial functions, one of which is the routine single test. This routine single test narrows down the routine to be tested to only one, generates a load module for testing that routine, and performs the test. A routine-only test processing system is a system that supports such a routine-only test.

ところで、従来のルーチン単独テスト処理システムでは
、テスト対象とするルーチン名の入力に応答して、プロ
グラムライブラリ等からそのルーチン名のオブジェクト
モジュールを入力してコンパイルし、このコンパイルの
結果得られたコンパイルユニット中に現れる未解決シン
ボルの参照問題を解決しつつそのルーチンのテスト用の
ロードモジュールを生成する機能を有するが、その為に
は、未解決シンボルが定義されている全てのコンパイル
ユニットを前もって準備しておく必要があった。そして
、若しそのようなコンパイルユニットがなく従ってシン
ボル情報テーブルに登録されていないシンボルが未解決
シンボルとして現れた場合、ロードモジュールの組各立
て時にエラーとして処理していた。
By the way, in conventional routine single test processing systems, in response to input of the name of a routine to be tested, an object module with that routine name is input from a program library etc. and compiled, and the result of this compilation is written in the compilation unit. It has a function that solves the reference problem of unresolved symbols that appear and generates a load module for testing that routine, but in order to do this, all compilation units in which unresolved symbols are defined must be prepared in advance. There was a need. If there is no such compilation unit, and therefore a symbol that is not registered in the symbol information table appears as an unresolved symbol, it is treated as an error when each load module is assembled.

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

上述したように、従来においては、シンボル情報テーブ
ルに登録されていないシンボルが未解決シンボルとして
現れた場合、ロードモジュールの組み立て時にエラーと
して処理される為、テスト対象とするルーチンが参照す
る全てのシンボルの参照問題を解決させてロードモジュ
ールの生成を可能にさせる為、それらのシンボルが定義
されている全てのルーチンのコンパイルユニットを事前
に作成しておかなければならないという欠点があった。
As mentioned above, conventionally, if a symbol that is not registered in the symbol information table appears as an unresolved symbol, it is treated as an error when assembling the load module, so all symbols referenced by the routine to be tested are In order to solve the reference problem and make it possible to generate a load module, the disadvantage is that compilation units for all the routines in which these symbols are defined must be created in advance.

そこで本発明の目的は、テスト対象とするルーチンにお
いて参照される全てのシンボルのシンボル情報とコンパ
イルユニットが揃っていなくても、そのルーチンのテス
ト用のロードモジュールが作成できるようにすることに
ある。
SUMMARY OF THE INVENTION An object of the present invention is to enable a load module for testing a routine to be tested to be created even if symbol information and compilation units for all symbols referenced in the routine to be tested are not available.

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

本発明は上記の目的を達成するために、電子計算機シス
テムで実行するプログラムのテストに使用されるルーチ
ン単独テスト処理システムにおけルロートモジュール生
成方式において、テスト対象トスるルーチンのコンパイ
ルユニットをコンパイルユニット保持手段から取り出し
てそのルーチンのテスト用のロードモジュールを生成す
る過程で未解決シンボルが現れたとき、該未解決シンボ
ルによってシンボル情報テーブルを検索し、該当するシ
ンボル情報が存在するときは該存在したシンボル情報で
示されるコンパイルユニットヲ前記コンパイルユニット
保持手段から入力して前記未解決シンボルの参照問題を
解決し、該当するシンボル情報が存在しないときは、ダ
ミーのコンパイルユニットを生成して前記未解決シンボ
ルの参照問題を解決するようにしている。
In order to achieve the above object, the present invention has a roulot module generation method in a routine single test processing system used for testing programs executed on an electronic computer system. When an unresolved symbol appears in the process of extracting it from the holding means and generating a load module for testing that routine, the symbol information table is searched using the unresolved symbol, and if the corresponding symbol information exists, it is determined that the symbol information exists. A compilation unit indicated by the symbol information is input from the compilation unit holding means to solve the problem of referencing the unresolved symbol, and if the corresponding symbol information does not exist, a dummy compilation unit is generated to store the unresolved symbol. I am trying to solve the reference problem.

〔作用〕[Effect]

本発明のルーチン単独テスト処理システムにおけるロー
ドモジュール生成方式においては、テスト対象ルーチン
のテスト用のロードモジュールを生成する過程において
、未解決シンボルが出現し、その未解決シンボルに対応
するシンボル情報がシンボル情報テーブル中にな(従っ
てそのコンパイルユニットも存在しない場合、ダミーの
コンパイルユニットが生成されて、それを用いて未解決
シンボルの参照問題が解決される。
In the load module generation method in the routine single test processing system of the present invention, unresolved symbols appear in the process of generating a test load module for the routine to be tested, and the symbol information corresponding to the unresolved symbols is changed to symbol information. If no compile unit exists in the table (and therefore its compile unit does not exist), a dummy compile unit is created and used to resolve the unresolved symbol reference problem.

〔実施例] 次に、本発明の実施例について図面を参照して詳細に説
明する。
[Example] Next, an example of the present invention will be described in detail with reference to the drawings.

第1図は本発明を適用したルーチン単独テスト処理シス
テムの一例を示す機能ブロック図である。
FIG. 1 is a functional block diagram showing an example of a routine single test processing system to which the present invention is applied.

この実施例のルーチン単独テスト処理システムRTSは
、その−機能部としてロードモジュール作成処理部LM
Sを含んでいる。そして、このロードモジュール作成処
理部LMSは、未解決シンボル保持手段12と、検索シ
ンボル保持手段7と、シンボル情報テーブル8と、シン
ボル定義情報保持手段9と、コンパイルユニット群格納
手段10と、ロードモジュール格納手段11と、ロード
モジュール作成処理部LMSの起動時にテスト対象とな
るルーチン名(以下親ルーチン名と呼ぶ)6が与えられ
ると、この親ルーチン名を未解決シンボル保持手段12
に格納する初期設定処理手段1と、この初期設定処理手
段1あるいは後述するロードモジュール組み立て処理手
段5から制御が渡されると未解決シンボル保持手段12
における未解決シンボルの存否を確認し、存在しないこ
とにより親ルーチンのテスト用のロードモジュールの作
成終了をルーチン単独テスト処理システムR3Tに通知
し、存在することにより制御を検索シンボル登録処理手
段3に渡す未解決シンボル存否確認手段2と、この未解
決シンボル存否確認手段2から制御が渡されると、未解
決シンボル保持手段12に保持された1つの未解決シン
ボルを検索シンボル保持手段7に格納する検索シンボル
登録処理手段3と、この検索シンボル登録処理手段3か
ら制御が渡されることにより第2図に示すような処理を
行うコンパイルユニット名検索処理手段4と、このコン
パイルユニット名検索処理手段4がら制御が渡されるこ
とにより第3回に示す処理を行って親ルーチンのテスト
用のロードモジュールLMを生成しロードモジュール格
納手段11に格納するロードモジュール組み立て処理手
段5とを含んでいる。
The routine independent test processing system RTS of this embodiment has a load module creation processing section LM as its functional section.
Contains S. The load module creation processing unit LMS includes an unresolved symbol holding unit 12, a search symbol holding unit 7, a symbol information table 8, a symbol definition information holding unit 9, a compile unit group storage unit 10, and a load module. When a storage means 11 and a routine name 6 to be tested (hereinafter referred to as a parent routine name) are given at the time of startup of the load module creation processing unit LMS, this parent routine name is stored in the unresolved symbol holding means 12.
and unresolved symbol holding means 12 when control is passed from this initial setting processing means 1 or the load module assembly processing means 5 to be described later.
The presence or absence of an unresolved symbol is confirmed in , and if it does not exist, the routine single test processing system R3T is notified that the creation of a load module for testing the parent routine has been completed, and if it exists, control is passed to the search symbol registration processing means 3. An unresolved symbol existence/nonexistence confirmation means 2 and a search symbol for storing one unresolved symbol held in the unresolved symbol holding means 12 in the search symbol holding means 7 when control is passed from the unresolved symbol existence/nonexistence checking means 2. The registration processing means 3, the compile unit name search processing means 4 which performs the processing shown in FIG. It includes a load module assembly processing means 5 which performs the processing shown in the third time upon being passed to generate a load module LM for testing the parent routine and stores it in the load module storage means 11.

第4図はシンボル情報テーブル8に格納されるシンボル
情報の内容例を示し、シンボル情報テーブル8にはこの
ようなシンボル情報が複数個格納され得る。一つのシン
ボル情報22は、シンボル名23.シンボルの種類24
.シンボルが定義されているルーチン名25.このシン
ボルまたは親ルーチンを含むコンパイルユニット名26
で構成される。
FIG. 4 shows an example of the contents of symbol information stored in the symbol information table 8, and the symbol information table 8 can store a plurality of pieces of such symbol information. One piece of symbol information 22 includes a symbol name 23. Types of symbols 24
.. Routine name in which the symbol is defined 25. Compilation unit name containing this symbol or parent routine26
Consists of.

第5図はシンボル定義情報保持手段9に保持されるシン
ボル定義情報の内容例を示し、シンボル定義情報保持手
段9にはこのようなシンボル定義情報が複数個格納され
得る。一つのシンボル定義情報27は、シンボル名28
とシンボルの種類29で構成される。後述する動作説明
から明らかになるように、シンボル情報テーブル8に前
取ってシンボル情報が格納されていないシンボルが未解
決シンボルとして出現した場合、その未解決シンボル名
が端末等を介して利用者に知らされるので、若しその未
解決シンボルを定義したルーチンのオブジェクトモジュ
ールが存在すれば、シンボル定義情報27を端末等から
入力してシンボル定義情報保持手段9に格納すれば、コ
ンパイルユニット名検索処理手段4により自動的にその
シンボル情報およびコンパイルユニットが生成されるも
のである。なお、シンボル定義情報27を予めシンボル
定義情報保持手段9に保持させておくようにしても良い
ことは勿論のことである。また、そのようなシンボル定
義情報27を与えなくても、後述するように、ダミーの
シンボル情報およびコンパイルユニットが自動的に生成
されるものである。
FIG. 5 shows an example of the content of symbol definition information held in the symbol definition information holding means 9, and a plurality of pieces of such symbol definition information can be stored in the symbol definition information holding means 9. One symbol definition information 27 is a symbol name 28
and symbol types 29. As will become clear from the operation description described later, when a symbol for which symbol information is not previously stored in the symbol information table 8 appears as an unresolved symbol, the unresolved symbol name is communicated to the user via a terminal, etc. If there is an object module for a routine that defines the unresolved symbol, input the symbol definition information 27 from a terminal or the like and store it in the symbol definition information holding means 9, and the compile unit name search process will be performed. The symbol information and compilation unit are automatically generated by means 4. It goes without saying that the symbol definition information 27 may be held in the symbol definition information holding means 9 in advance. Furthermore, even if such symbol definition information 27 is not provided, dummy symbol information and compilation units are automatically generated, as will be described later.

次に、親ルーチン中にルーチンAで定義された未解決シ
ンボルaとルーチンBで定義された未解決シンボルbが
含まれ、親ルーチンとルーチンAのオブジェクトモジュ
ールがルーチン単独テスト処理システムRTSの図示し
ないプログラムライブラリ等に格納されている状況を想
定し、この場合における本実施例の動作を以下説明する
Next, unresolved symbol a defined in routine A and unresolved symbol b defined in routine B are included in the parent routine, and the object modules of the parent routine and routine A are in the routine single test processing system RTS (not shown). Assuming a situation where the program is stored in a program library or the like, the operation of this embodiment in this case will be described below.

第1図において、利用者よりテスト対象とするルーチン
の名前である親ルーチン名6およびルーチンAの名前が
与えられてルーチン単独テスト処理システムRTSが起
動されると、ルーチン単独テスト処理システムRTSは
図示しないプログラムライブラリから親ルーチンとルー
チンAのオブジェクトモジュールを取り出してコンパイ
ルし、その結果のシンボル情報とコンパイルユニットと
をシンボル情報テーブル8とコンパイルユニット群格納
手段10に格納する。そして、ロードモジュール作成処
理部LMSに親ルーチン名6を渡して親ルーチンのテス
ト用のロードモジュールの生成を要求する。
In FIG. 1, when the user gives the parent routine name 6, which is the name of the routine to be tested, and the name of routine A, and the routine single test processing system RTS is started, the routine single test processing system RTS is not shown. The parent routine and the object module of routine A are extracted from the program library and compiled, and the resulting symbol information and compilation units are stored in the symbol information table 8 and the compilation unit group storage means 10. Then, the parent routine name 6 is passed to the load module creation processing unit LMS to request generation of a load module for testing the parent routine.

ロードモジュール作成処理部LMSは起動されると、通
知された親ルーチン名6を初期設定処理手段1に渡して
これを起動する。これに応答して初期設定処理手段lは
親ルーチン名6を未解決シンボル保持手段12に格納し
て制御を未解決シンボル存否確認手段2に渡し、未解決
シンボル存否確認手段2は未解決シンボル保持手段12
に未解決シンボル(今の場合は親ルーチン名6)が格納
されたことから制御を検索シンボル登録処理手段3に渡
す。検索シンボル登録処理手段3はこれに応答して未解
決シンボル保持手段12に保持された親ルーチン名6を
検索シンボル保持手段7に格納し、制御をコンパイルユ
ニット名検索処理手段4に渡す。
When the load module creation processing section LMS is activated, it passes the notified parent routine name 6 to the initial setting processing means 1 and activates it. In response to this, the initial setting processing means 1 stores the parent routine name 6 in the unresolved symbol holding means 12 and passes control to the unresolved symbol existence checking means 2, and the unresolved symbol existence checking means 2 stores the parent routine name 6 in the unresolved symbol holding means 12. 12
Since an unresolved symbol (parent routine name 6 in this case) is stored in , control is passed to the search symbol registration processing means 3. In response, the search symbol registration processing means 3 stores the parent routine name 6 held in the unresolved symbol holding means 12 in the search symbol holding means 7, and passes control to the compilation unit name search processing means 4.

コンパイルユニット名検索処理手段4は、第2図に示す
ように、先ず検索シンボル保持手段7に保持された親ル
ーチン名6をキーとしてシンボル情報テーブル8をサー
チし、同一の名前を持つシンボル情報が存在してそのシ
ンボルを含むコンパイルユニット塩が得られるか否かを
探索する(処理13)。そして、存在しなければキーと
した検索シンボル即ち未解決シンボル名を内部の未定義
シンボル保持手段19に出力した後に処理14に進むが
、今の場合は存在するので、直ちに処理14に進み、こ
の処理14で未定義シンボルが保持されていないこと即
ち親ルーチン名6に対応するシンボル情報がシンボル情
報テーブル8に存在してコンパイルユニット塩が得られ
たことを確認し、コンパイルユニット名検索処理手段4
の処理を終えて親ルーチンを含むコンパイルユニット塩
を通知してロードモジュール組み立て処理手段5に制御
を渡す。
As shown in FIG. 2, the compile unit name search processing means 4 first searches the symbol information table 8 using the parent routine name 6 held in the search symbol holding means 7 as a key, and determines whether symbol information with the same name exists. Then, a search is made to see if a compilation unit salt containing that symbol can be obtained (process 13). Then, if it does not exist, the search symbol used as a key, that is, the unresolved symbol name is output to the internal undefined symbol holding means 19, and then the process proceeds to step 14. However, in this case, since it exists, the process immediately proceeds to step 14, and this In process 14, it is confirmed that no undefined symbols are held, that is, symbol information corresponding to the parent routine name 6 exists in the symbol information table 8, and the compilation unit salt has been obtained, and the compilation unit name search processing means 4
After completing the processing, the compile unit salt containing the parent routine is notified and control is passed to the load module assembly processing means 5.

ロードモジュール組み立て処理手段5は制御を引き取る
と、第3図に示すように、処理20によリコンパイルユ
ニット群格納手段10から今回の検索シンボル即ち親ル
ーチン名6のコンパイルユニット(親ルーチンのオブジ
ェクトコード)を入力し、処理21において親ルーチン
のテスト用のロードモジュールの生成を開始する。
When the load module assembly processing means 5 takes over the control, as shown in FIG. is input, and in step 21, generation of a load module for testing the parent routine is started.

処理21のロードモジュールの生成において、未解決シ
ンボルが存在しなければ、親ルーチンのテスト用のロー
ドモジュールLMが完成し、これがロードモジュール格
納手段11に格納されるが、今の例では未解決シンボル
a、bが存在するので、その未解決シンボルa、bを未
解決シンボル保持手段12に格納して制御を未解決シン
ボル存否確認手段2に戻すことになる。
In the generation of the load module in step 21, if there are no unresolved symbols, the load module LM for testing the parent routine is completed and stored in the load module storage means 11, but in this example, unresolved symbols Since symbols a and b exist, the unresolved symbols a and b are stored in the unresolved symbol holding means 12 and control is returned to the unresolved symbol existence checking means 2.

さて、制御を引き取った未解決シンボル存否確認手段2
では、未解決シンボル保持手段12に未解決シンボルa
、bが格納されたことにより、検索シンボル登録処理手
段3に制御を渡し、検索シンボル登録処理手段3は1つ
の未解決シンボルaを検索シンボル保持手段7に格納し
て制御をコンパイルユニット名検索処理手段4に渡す。
Now, unresolved symbol existence confirmation means 2 that took over control
Then, the unresolved symbol a is stored in the unresolved symbol holding means 12.
, b are stored, control is passed to the search symbol registration processing means 3, and the search symbol registration processing means 3 stores one unresolved symbol a in the search symbol holding means 7 and transfers control to the compile unit name search processing. Pass to means 4.

コンパイルユニット名検索処理手段4では、未解決シン
ボルaをキーにしてシンボル情報テーブル8を検索する
(処理13)。このとき、未解決シンボルaのシンボル
情報およびコンパイルユニットはシンボル情報テーブル
8およびコンパイルユニット群格納手段10に格納され
ているので、コンパイルユニット名検索処理手段4は処
理14でそれを確認して制御をロードモジュール組み立
て処理手段5に渡す。
The compile unit name search processing means 4 searches the symbol information table 8 using the unresolved symbol a as a key (process 13). At this time, since the symbol information and compilation unit of the unresolved symbol a are stored in the symbol information table 8 and the compilation unit group storage means 10, the compilation unit name search processing means 4 checks it in process 14 and performs control. It is passed to the load module assembly processing means 5.

ロードモジュール組み立て処理手段5は、制御が渡され
ると今回の検索シンボル即ち未解決シンボルaのコンパ
イルユニットをコンパイルユニット群格納手段10から
入力し、これを使用して親ルーチンのテスト用のロード
モジュールを作成する為に必要な未解決シンボルaの参
照問題を解決する。そして、制御を一部未解決シンボル
存否確認手段2に戻す。
When control is passed, the load module assembly processing means 5 inputs the compilation unit of the current search symbol, that is, the unresolved symbol a, from the compilation unit group storage means 10, and uses this to create a load module for testing the parent routine. Solve the reference problem of unresolved symbol a necessary for creation. Then, control is partially returned to the unresolved symbol existence confirmation means 2.

制御が渡された未解決シンボル存否確認手段2では、未
解決シンボル保持手段12に未解決シンボルbが残って
いることから、検索シンボル登録処理手段3に制御を渡
し、検索シンボル登録処理手段3は未解決シンボルbを
検索シンボル保持手段7に格納して制御をコンパイルユ
ニット名検索処理手段4に渡す。
The unresolved symbol existence confirmation means 2 to which control has been passed passes control to the search symbol registration processing means 3 because the unresolved symbol b remains in the unresolved symbol holding means 12, and the search symbol registration processing means 3 The unresolved symbol b is stored in the search symbol holding means 7 and control is passed to the compile unit name search processing means 4.

コンパイルユニット名検索処理手段4は、未解決シンボ
ルbをキーにしてシンボル情報テーブル8を検索するが
(処理13)、未解決シンボルbのシンボル情報および
未解決シンボルbが定義されているルーチンBのコンパ
イルユニットはシンボル情報テーブル8およびコンパイ
ルユニット群格納手段10に存在しないので、コンパイ
ルユニット名検索処理手段4は処理14から処理15に
進むことになる。
The compile unit name search processing means 4 searches the symbol information table 8 using the unresolved symbol b as a key (process 13), but it searches the symbol information table 8 for the unresolved symbol b and the routine B in which the unresolved symbol b is defined. Since the compilation unit does not exist in the symbol information table 8 and the compilation unit group storage means 10, the compilation unit name search processing means 4 proceeds from processing 14 to processing 15.

この処理15では、未解決シンボルbを第1図には図示
しない端末等により利用者に通知し、その応答としての
シンボル定義情報の入力処理が行われる。利用者が未解
決シンボルbに対応するシンボル定義情報27を入力す
るとそれがシンボル定義情報保持手段9に保持されるの
で、処理16により未解決シンボルbのシンボル定義情
報が与えられたか否かを切り分け、シンボル定義情報が
与えられたときは処理17の情報作成処理を実行し、未
解決シンボルbに対応するシンボル定義情報が与えられ
ないときは、処理18のダミー情報作成処理を実行する
。そして、その後に制御をロードモジュール組み立て処
理手段5に渡す。ここで、処理17.処理18では次の
ような処理が行われるものである。
In this process 15, the unresolved symbol b is notified to the user through a terminal or the like not shown in FIG. 1, and in response, symbol definition information is inputted. When the user inputs the symbol definition information 27 corresponding to the unresolved symbol b, it is held in the symbol definition information holding means 9, so it is determined in process 16 whether or not the symbol definition information of the unresolved symbol b has been given. , when the symbol definition information is given, the information creation process of process 17 is executed, and when the symbol definition information corresponding to the unresolved symbol b is not given, the dummy information creation process of process 18 is executed. Thereafter, control is passed to the load module assembly processing means 5. Here, process 17. In process 18, the following process is performed.

・情報作成処理(処理17) 与えられたシンボル定義情報27のシンボル名28即ち
今回の未解決シンボル名のシンボルを定義するルーチン
のオブジェクトモジュールをコンパイルするようにルー
チン単独テスト処理システムRTSに要求する。これに
応答してルーチン単独テスト処理システムRTSは指定
されたルーチン名のオブジェクトモジュールをコンパイ
ルし、その結果のシンボル情報とコンパイルユニットを
シンボル情報テーブル8とコンパイルユニット群格納手
段10とに格納する。
- Information creation process (process 17) The routine single test processing system RTS is requested to compile the object module of the routine that defines the symbol name 28 of the given symbol definition information 27, that is, the symbol with the current unresolved symbol name. In response, the routine single test processing system RTS compiles the object module with the designated routine name, and stores the resulting symbol information and compilation units in the symbol information table 8 and the compilation unit group storage means 10.

・ダミー情報作成処理(処理18) 未解決シンボルの種類に応じて中身のないダミー領域を
持つシンボルまたは何もせずに処理を元に戻すシンボル
を設定し、そのシンボルに対するタミーのシンボル情報
とダミーのコンパイルユニットを作成し、それぞれシン
ボル情報テーブル8とコンパイルユニット群格納手段1
0に格納する。
・Dummy information creation process (process 18) Depending on the type of unresolved symbol, set a symbol that has a dummy area with no contents or a symbol for which processing will be returned to its original state without doing anything, and create tummy symbol information and dummy information for that symbol. Create a compilation unit, and store each symbol information table 8 and compilation unit group storage means 1
Store at 0.

さて、制御が渡されたロードモジュール組み立て処理手
段5は、処理17あるいは処理18で作成されたコンパ
イルユニットをコンパイルユニット群格納手段10から
入力し、これを使用して親ルーチンのテスト用のロード
モジュールを作成する為に必要な未解決シンボルbの参
照問題を解決する。そして、その後に制御を未解決シン
ボル存否確認手段2に戻すと、未解決シンボル存否確認
手段2は未解決シンボル保持手段12に1つも未解決シ
ンボルが残っていないことを確認し、ルーチン単独テス
ト処理システムRTSに処理の終了を通知する。
Now, the load module assembly processing means 5 to which control has been passed inputs the compilation unit created in process 17 or process 18 from the compilation unit group storage means 10, and uses this to create a load module for testing the parent routine. Solve the reference problem of unresolved symbol b necessary to create . Then, when the control is returned to the unresolved symbol existence/nonexistence confirmation means 2, the unresolved symbol existence/existence confirmation means 2 confirms that there is no unresolved symbol remaining in the unresolved symbol holding means 12, and performs routine independent test processing. Notify the system RTS of the end of processing.

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

以上説明したように、本発明のルーチン単独テロ スト処理システムにおけるロードモジュール生成方式に
おいては、テスト対象ルーチンのテスト用のロードモジ
ュールを生成する過程で未解決シンボルが出現した場合
であってその未解決シンボルに対応するシンボル情報、
コンパイルユニットが存在しないとき、ダミーのコンパ
イルユニ・ントが自動的に生成されて、それを用いて未
解決シンボルの参照問題が解決されるので、テスト対象
ルーチンにおいて参照される全てのシンボルのシンボル
情報とコンパイルユニットが予め準備されていな(でも
、テスト対象ルーチンのテスト用のロードモジュールの
生成が可能となり、そのテストが行えるという効果があ
る。
As explained above, in the load module generation method in the routine-only terror test processing system of the present invention, when an unresolved symbol appears in the process of generating a load module for testing a routine to be tested, the unresolved symbol symbol information corresponding to,
When a compilation unit does not exist, a dummy compilation unit is automatically generated and is used to resolve unresolved symbol reference problems, so symbol information for all symbols referenced in the routine under test is maintained. Even if the compilation unit is not prepared in advance, it is possible to generate a load module for testing the routine to be tested, and the test can be performed.

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

第1図は本発明の実施例の構成図、 第2図はコンパイルユニット名検索処理手段4の処理例
の流れ図、 第3図はロードモジュール組み立て処理手段5の処理例
の流れ図、 第4図はシンボル情報の内容例を示す図および、第5図
はシンボル定義情報の内容例を示す図である。 図において、 RTS・・・ルーチン単独テスト処理システムLMS・
・・ロードモジュール作成処理部LM・・・親ルーチン
のテスト用のロードモジュール ト・・初期設定処理手段 2・・・未解決シンボル存否確認手段 3・・・検索シンボル登録処理手段 4・・・コンパイルユニット名検索処理手段訃・・ロー
ドモジュール組み立て処理手段6・・・親ルーチン名 7・・・検索シンボル保持手段 8・・・シンボル情報テーブル 9・・・シンボル定義情報保持手段 10・・・コン)々イルユニット群格納手段11・・・
ロードモジュール格納手段 12・・・未解決シンボル保持手段 シンボル定廿報の内艷1 第5図 シンボル情報の内容秒11 第4図
FIG. 1 is a block diagram of an embodiment of the present invention, FIG. 2 is a flowchart of an example of processing by the compile unit name search processing means 4, FIG. 3 is a flowchart of an example of processing by the load module assembly processing means 5, and FIG. 4 is a flowchart of an example of processing by the load module assembly processing means 5. FIG. 5 is a diagram showing an example of the content of symbol information, and FIG. 5 is a diagram showing an example of the content of symbol definition information. In the figure, RTS... Routine single test processing system LMS.
...Load module creation processing unit LM...Load module for testing the parent routine...Initial setting processing means 2...Unresolved symbol existence confirmation means 3...Search symbol registration processing means 4...Compilation Unit name search processing means Load module assembly processing means 6 Parent routine name 7 Search symbol holding means 8 Symbol information table 9 Symbol definition information holding means 10 Con) etc. Ile unit group storage means 11...
Load module storage means 12...Unresolved symbol holding means Symbol fixed report internal code 1 Figure 5 Symbol information contents 11 Figure 4

Claims (1)

【特許請求の範囲】[Claims] 電子計算機システムで実行するプログラムのテストに使
用されるルーチン単独テスト処理システムにおけるロー
ドモジュール生成方式において、テスト対象とするルー
チンのコンパイルユニットをコンパイルユニット保持手
段から取り出してそのルーチンのテスト用のロードモジ
ュールを生成する過程で未解決シンボルが現れたとき、
該未解決シンボルによってシンボル情報テーブルを検索
し、該当するシンボル情報が存在するときは該存在した
シンボル情報で示されるコンパイルユニットを前記コン
パイルユニット保持手段から入力して前記未解決シンボ
ルの参照問題を解決し、該当するシンボル情報が存在し
ないときは、ダミーのコンパイルユニットを生成して前
記未解決シンボルの参照問題を解決するようにしたこと
を特徴とするルーチン単独テスト処理システムにおける
ロードモジュール生成方式。
In a load module generation method in a routine single test processing system used for testing programs executed on a computer system, a compilation unit of a routine to be tested is taken out from a compilation unit holding means and a load module for testing the routine is created. When an unresolved symbol appears during the generation process,
A symbol information table is searched using the unresolved symbol, and when the corresponding symbol information exists, a compilation unit indicated by the existing symbol information is input from the compilation unit holding means to solve the reference problem of the unresolved symbol. A load module generation method in a routine single test processing system, characterized in that, when the corresponding symbol information does not exist, a dummy compilation unit is generated to solve the unresolved symbol reference problem.
JP63179694A 1988-07-19 1988-07-19 Load module generating system for routine single test processing system Pending JPH0228839A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63179694A JPH0228839A (en) 1988-07-19 1988-07-19 Load module generating system for routine single test processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63179694A JPH0228839A (en) 1988-07-19 1988-07-19 Load module generating system for routine single test processing system

Publications (1)

Publication Number Publication Date
JPH0228839A true JPH0228839A (en) 1990-01-30

Family

ID=16070242

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63179694A Pending JPH0228839A (en) 1988-07-19 1988-07-19 Load module generating system for routine single test processing system

Country Status (1)

Country Link
JP (1) JPH0228839A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6292032A (en) * 1985-10-17 1987-04-27 Omron Tateisi Electronics Co Test method for program
JPS62108338A (en) * 1985-11-06 1987-05-19 Omron Tateisi Electronics Co Program testing device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6292032A (en) * 1985-10-17 1987-04-27 Omron Tateisi Electronics Co Test method for program
JPS62108338A (en) * 1985-11-06 1987-05-19 Omron Tateisi Electronics Co Program testing device

Similar Documents

Publication Publication Date Title
US6941546B2 (en) Method and apparatus for testing a software component using an abstraction matrix
US8156471B2 (en) Multi-language execution method
US6993748B2 (en) Systems and methods for table driven automation testing of software programs
US20070088740A1 (en) Information system development
CN1976320B (en) Data access control method and system
Chapman A program testing assistant
US5379407A (en) Error handling in a state-free system
US7765531B2 (en) Systems and methods for handling multiple static query modules for distinct environments
JPS61145649A (en) Address syllable combination test system
JPH0228839A (en) Load module generating system for routine single test processing system
JP3461185B2 (en) Method and apparatus for registering source code line number to load module
JPH06110733A (en) Test case generating device of program
Ancona et al. Reusing a compiler
JP3149422B2 (en) Link processing method
Lutz Program debugging by near-miss recognition and symbolic evaluation
JPH08249193A (en) Checking system for language specification range of program
JPH05241818A (en) Program source converter
JPH0431933A (en) Source program analyzing device
Štuikys et al. Computer-aided test program design system (CATPDS) in ATLAS
Derrick et al. Specifying component and context specification using Promotion
JPH06348564A (en) Automatic check system for application program
Primer Web Testing
Younker Web Testing
Jokanovic et al. A library of reusable service specifications
JPH02227737A (en) Compiling unit control system