High-performance Embedded Workshop
1. Overview
REJ10J1837-0100 Rev.1.00 Nov. 16, 2008
24
1.14.1
Example of test procedures
This page introduces an example of test procedures, which is a sequence through build and debugging using the macro-
recording support facility and test support facility.
This example uses a program that sorts ten random data items written in C language, which are typically included in the
Tutorial project in an emulator debugger or in a project for which "Demonstration" has been selected as the project type
in the SuperH family simulator debugger, in ascending/descending order. This example lets you see a difference in data
stored in an array.
Before starting the test in this example, array “a” in the program code must be changed from a local to global variable.
•
Before test
First, open a workspace and connect the High-performance Embedded Workshop to the debugging platform.
1.
Create a new project workspace or open an existing project workspace. For creation of a project workspace,
see section 17.1.2, Selecting a debugging platform.
2.
Select a session, which you wish to use for connection with the debugging platform, from the session list on
the
Standard
toolbar. For selection of a session, see section 17.1.6 (1), Selecting a session.
After some operations, a
Confirmation Request
dialog box may appear. If you have executed build all on the entire
program, a
Confirmation Request
dialog box appears by default asking if you wish to download the program. To
download the program, click the
Yes
button.
Since the action of clicking on the buttons in this confirmation dialog box cannot be recorded into macros, this dialog
box will open next time you execute a macro. To continue the macro execution, you should click one of the buttons.
The execution must be continued if you are using the test-support facility, which is used to test a sequence of
operations. For this reason, make the following setting so that the confirmation dialog box will not appear.
In this example, select the
Don't ask this question again
check box in
Confirmation Request
dialog box.
Save the High-performance Embedded Workshop environment setting that you wish to use for tests so that the
environment for the tests will always be the same.
1.
Select [
File -> Save Workspace
].
2.
Select [
File -> Save Session
].
You can always use the same environment to start a test by loading the High-performance Embedded Workshop
environment setting that has been saved.
•
Preparing a test script to be used in the example of test procedures
In this example, use the macro-recording support facility to record the following combination of operations as High-
performance Embedded Workshop command-line commands into a macro. This macro should be used as a test script at
execution of a test.