Difference between revisions of "Setting up TUnit"

From TinyOS Wiki
Jump to: navigation, search
(Minimum Requirements)
Line 3: Line 3:
 
The minimum requirements are:
 
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 Install] the latest tinyos-2.x, or get it from the [http://tinyos.cvs.sourceforge.net/tinyos/tinyos-2.x repository].
 
* 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].

Revision as of 10:27, 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