Difference between revisions of "Setting up TUnit"

From TinyOS Wiki
Jump to: navigation, search
Line 1: Line 1:
 
== Minimum Requirements ==
 
== Minimum Requirements ==
 +
 +
The minimum requirements are:
  
 
* [http://docs.tinyos.net/index.php/Main_Page#Installing_TinyOS Installation of the latest tinyos-2.x]
 
* [http://docs.tinyos.net/index.php/Main_Page#Installing_TinyOS Installation of the latest tinyos-2.x]
 
* Check out a copy of the latest [http://tinyos.cvs.sourceforge.net/tinyos/tinyos-2.x-contrib/ tinyos-2.x-contrib] repository (instructions [http://sourceforge.net/cvs/?group_id=28656 here]).
 
* Check out a copy of the latest [http://tinyos.cvs.sourceforge.net/tinyos/tinyos-2.x-contrib/ tinyos-2.x-contrib] repository (instructions [http://sourceforge.net/cvs/?group_id=28656 here]).
 
* [http://ant.apache.org/ Ant] is completely '''optional''', but may be used to generate [http://www.lavalampmotemasters.com/reports/html/index.html nicer looking HTML reports].
 
* [http://ant.apache.org/ Ant] is completely '''optional''', but may be used to generate [http://www.lavalampmotemasters.com/reports/html/index.html nicer looking HTML reports].
 +
 +
  
 
Your projects and directories may differ. On the [http://www.lavalampmotemasters.com/ automated unit testing] server, the tinyos-2.x and tinyos-2.x-contrib directories are located in a simplistic structure:
 
Your projects and directories may differ. On the [http://www.lavalampmotemasters.com/ automated unit testing] server, the tinyos-2.x and tinyos-2.x-contrib directories are located in a simplistic structure:

Revision as of 09:26, 10 January 2008

Minimum Requirements

The minimum requirements are:


Your projects and directories may differ. On the automated unit testing server, the tinyos-2.x and tinyos-2.x-contrib directories are located in a simplistic structure:

 opt
 |-- tinyos-2.x
 |-- tinyos-2.x-contrib


In my own private projects, I prefer a more complex structure:

 opt
 |-- myProject
 |   |-- tinyos-2.x    <-- A snapshot of TinyOS my project is compatible with
 |   |-- tests
 |   |   |-- ... bunch of sub-test directories...
 |   |-- tinyos-2.x-myProject    <-- Project's files that override the TinyOS baseline
 |   
 |-- tinyos-2.x-contrib

For the remainder of this setup guide, I will assume your TinyOS is setup in the simplistic structure, with directories located at /opt/tinyos-2.x and /opt/tinyos-2.x-contrib.

Environment Variables

Classpaths