A brief description on how to run MODISTARC regression tests for Freescale S12XS

From ErikaWiki

(Difference between revisions)
Jump to: navigation, search
Line 9: Line 9:
* Debugger script creation to run the regression tests on the processor;
* Debugger script creation to run the regression tests on the processor;
-
Current version:
+
The procedure to run MODISTARC regression tests is the following:
 +
 
 +
= Current version =
# Perfom a repository checkout to work with the last version of the testcases. Note that you can use Subversion only in anonymous mode without logging in. Hence, you won't be allowed to write on the repository (adding, editing or removing files).  
# Perfom a repository checkout to work with the last version of the testcases. Note that you can use Subversion only in anonymous mode without logging in. Hence, you won't be allowed to write on the repository (adding, editing or removing files).  
#* To perform a checkout, type: <tt> svn co svn://svn.tuxfamily.org/svnroot/erika/erikae/repos/ee/trunk/ee </tt>
#* To perform a checkout, type: <tt> svn co svn://svn.tuxfamily.org/svnroot/erika/erikae/repos/ee/trunk/ee </tt>
Line 28: Line 30:
* <tt> common\s12xs\modistarc_regression_test.bat hiwave </tt>  to call HIWAVE debugger directly.
* <tt> common\s12xs\modistarc_regression_test.bat hiwave </tt>  to call HIWAVE debugger directly.
-
Next version: (soon available)
+
= Next version: (soon available) =
-
The procedure to run MODISTARC regression tests is the following:
+
# Perfom a repository checkout to work with the last version of the testcases. Note that you can use Subversion only in anonymous mode without logging in. Hence, you won't be allowed to write on the repository (adding, editing or removing files).  
# Perfom a repository checkout to work with the last version of the testcases. Note that you can use Subversion only in anonymous mode without logging in. Hence, you won't be allowed to write on the repository (adding, editing or removing files).  
#* To perform a checkout, type: <tt> svn co svn://svn.tuxfamily.org/svnroot/erika/erikae/repos/ee/trunk/ee </tt>
#* To perform a checkout, type: <tt> svn co svn://svn.tuxfamily.org/svnroot/erika/erikae/repos/ee/trunk/ee </tt>

Revision as of 15:21, 5 December 2011

How to run MODISTARC regression tests for Freescale S12 Family

Requirements: The "procmail" package should be installed in Cygwin using the Cygwin 'Setup.exe' (the setup program is downloadable form this site: http://www.cygwin.com/).

The makefiles chain will compile all the projects through the following steps:

  • Directories creation;
  • OIL elaboration by RT_DRUID;
  • Compilation to generate the .elf file;
  • Debugger script creation to run the regression tests on the processor;

The procedure to run MODISTARC regression tests is the following:

Current version

  1. Perfom a repository checkout to work with the last version of the testcases. Note that you can use Subversion only in anonymous mode without logging in. Hence, you won't be allowed to write on the repository (adding, editing or removing files).
  2. Change the working directory in: repos\ee\trunk\ee\testcase and type: . ./s12xs_startup_scripts to configure the environment.
  3. Start the compilation typing: make ARCH=s12xs The makefiles chain will compile all the projects through the following steps:
    1. Directories creation;
    2. OIL elaboration by RT_DRUID;
    3. Compilation to generate the .elf file;
    4. Debugger script creation to run the regression tests on the processor;

NOTE1: To compile only one test type: make ARCH=s12xs DIRS="modistarc_task_1" NOTE2: To compile the tests you can use the batch file located in common/s12xs. To run the batch file type:

  • common\s12xs\modistarc_regression_test.bat to compile all the tests or
  • common\s12xs\modistarc_regression_test.bat modistarc_task_1 to compile only one test;
    • In these cases the batch file will call the HIWAVE debugger at the end of the compilation to load the executables files on the processor using the generated script file.
  • common\s12xs\modistarc_regression_test.bat clean to clean all the tests;
  • common\s12xs\modistarc_regression_test.bat hiwave to call HIWAVE debugger directly.

Next version: (soon available)

  1. Perfom a repository checkout to work with the last version of the testcases. Note that you can use Subversion only in anonymous mode without logging in. Hence, you won't be allowed to write on the repository (adding, editing or removing files).
  2. Change the working directory in: repos\ee\trunk\ee\testcase Then edit and execute: . ./s12_startup_scripts to configure the environment. The environment variables to be set are: ERIKA_FILES pointing to the Erika main folder (the folder downloaded with the svn checkout, it contains the testcase folder).
  3. Start the compilation with:
    • make ARCH=s12xs_cosmic if you are working with MC9S12XS128 and the Cosmic Compiler.
    • make ARCH=s12g_cw if you are working with MC9S12G128 and the CodeWarrior Compiler.

NOTE1: To compile only one test type: make ARCH=s12xs_cosmic DIRS="modistarc_task_1" NOTE2: To compile the tests you can use the batch file located in common/s12. To run the batch file type:

  • common\s12\s12xs_cosmic\modistarc_regression_test.bat to compile all the tests or
  • common\s12\s12xs_cosmic\modistarc_regression_test.bat modistarc_task_1 to compile only one test;
    • In these cases the batch file will call the HIWAVE debugger at the end of the compilation to load the executables files on the processor using the generated script file.
  • common\s12xs\s12xs_cosmic\modistarc_regression_test.bat clean to clean all the tests;
  • common\s12xs\s12xs_cosmic\modistarc_regression_test.bat hiwave to call HIWAVE debugger directly.
Personal tools