Nice TWiki > Dev > TestMachine (r1.1) TWiki webs:
Dev | Doc | Main | TWiki | Sandbox
Dev . { Changes | Index | Search | Go }
A TestMachine is a machine that runs the automated tests for Nice. This page documents how to set up a new TestMachine.


To be most useful, the tests should be done very frequently. The best is thus to have use a machine that is turned on permanently, and connected to the network. That way, you can configure it to run the tests, for instance, every day at a certain time. Everyting will happen automatically.

To be able to send the results to the result page, you will need to have the rights to scp a file to the Nice project on sourceforge. As far as I know, this means being a member of the project. If you wish to set up a TestMachine, but are not a member of the project, contact DanielBonniot.

Setting up the tests


First, you need to download from CVS the test scripts. Choose the directory to install the scripts in, and move into it before.

cvs -z3 co tester


You need to configure two files:

It contains the information about you and the machine:
user="bonniot"    # your username on sourceforge
machine="" # a unique name for this machine

If machine is not set, it will be taken from the output of uname -n.

This is the file that decides what versions of tools are used to run the tests. It is possible to have several, in which case the tests will be run several times. name will be used to identify each configuration. Choose it to reflect the main points of that configuration. At the moment you only need to configure JAVA_HOME.

For instance, I have a file config.jdk1.4 that contains the following line:



Let's check that your installation is correct. From the main directory, type:


The scripts will download the latest version of Nice, and of several applications. Then it will try to bootstrap the compiler, and to use it to compile the applications.

If all goes well, you will have in the builds subdirectory the results of the testing, in the *.res files. The script has also attempted to send them to sourceforge, where they will be processed to be included in the result page. That page is generated once every hour.


This depend on your system. On unix, you can use crontab to configure when the tests should be run.

-- DanielBonniot - 26 Apr 2003

Topic TestMachine . { Edit | Attach | Ref-By | Printable | Diffs | r1.5 | > | r1.4 | > | r1.3 | More }
Revision r1.1 - 26 Apr 2003 - 21:59 GMT - DanielBonniot
Parents: WebHome
Copyright © 1999-2003 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback.