Difference between revisions of "Builds/Tests"
(Created page with "= Automated testing = There are automated tests that can be run from the command line. To execute these tests execute the command <code>make test</code> if you require more ver…") |
|||
Line 1: | Line 1: | ||
= Automated testing = | = Automated testing = | ||
There are automated tests that can be run from the command line. | There are a number of automated tests that can be run from the command line. | ||
To execute these tests execute the command <code>make test</code> if you require more verbose output of the results run the command <code>make test TEST_VERBOSE=1</code> | To execute these tests execute the command <code>make test</code> if you require more verbose output of the results run the command <code>make test TEST_VERBOSE=1</code> | ||
Line 7: | Line 7: | ||
The test results can also be generated in JUnit format adding the option <code>JUNIT=1</code> to the command line i.e. <code>make test JUNIT=1</code> or <code>make test TEST_VERBOSE=1 JUNIT=1</code> | The test results can also be generated in JUnit format adding the option <code>JUNIT=1</code> to the command line i.e. <code>make test JUNIT=1</code> or <code>make test TEST_VERBOSE=1 JUNIT=1</code> | ||
JUnit formatting of test resuls requires that the Perl module <code>TAP::Formatters::JUnit</code> is installed on the machine that the tests are run on. | JUnit formatting of test resuls requires that the Perl module <code>TAP::Formatters::JUnit</code> is installed on the machine that the tests are run on. Please see [[Builds/Tests#Installing Perl Modules| installing Perl modules]] for more details | ||
= Hardware tests = | = Hardware tests = | ||
The hardware testing is executed using the Perl test framework. | The hardware testing is executed using the Perl test framework. | ||
The | The Perl module <code>IO::Socket::Multicast</code> is required to be installed to be able to execute the hardware tests. Please see [[Builds/Tests#Installing Perl Modules| installing Perl modules]] for more details | ||
= Installing Perl modules = | = Installing Perl modules = |
Revision as of 05:26, 6 March 2012
Automated testing
There are a number of automated tests that can be run from the command line.
To execute these tests execute the command make test
if you require more verbose output of the results run the command make test TEST_VERBOSE=1
The test results can also be generated in JUnit format adding the option JUNIT=1
to the command line i.e. make test JUNIT=1
or make test TEST_VERBOSE=1 JUNIT=1
JUnit formatting of test resuls requires that the Perl module TAP::Formatters::JUnit
is installed on the machine that the tests are run on. Please see installing Perl modules for more details
Hardware tests
The hardware testing is executed using the Perl test framework.
The Perl module IO::Socket::Multicast
is required to be installed to be able to execute the hardware tests. Please see installing Perl modules for more details
Installing Perl modules
To install Perl modules the following procedure can be run. There are alternatives depending on the operating system that is being used.
- sudo perl -MCPAN -e shell
- install <module name>
This should install all of the required modules. note that errors may be reported during the installation process so you should pay attention to what is happening.