Zero Install

0test

A Zero Install feed can specify a command to run to test the program automatically using the self-test attribute. 0test runs this command. It can also test combinations of various versions of a program and its dependencies.

Name 0test
Maintainer Thomas Leonard
License GNU General Public License
Run it Zero Install feed
SCM GIT repository

Create a short-cut to it in the usual way:

$ 0alias 0test http://0install.net/2008/interfaces/0test.xml

Usage

Most simply, you can use it to run the tests for a program you have downloaded or checked out of version control. e.g.

$ git clone some-program
$ 0test some-program/program.xml

You can also use it to test released programs, e.g. to test the default version of 0compile:

$ 0test http://0install.net/2006/interfaces/0compile.xml

You can specify a particular set of versions to test:

$ 0test http://0install.net/2006/interfaces/0compile.xml 0.10 0.11 0.12

Finally, you can specify versions of libraries the program depends on too. 0test will try all combinations. This tests three versions of 0compile against two versions of Zero Install (a total of 2 x 3 = 6 tests):

$ 0test http://0install.net/2006/interfaces/0compile.xml 0.10 0.12 0.12-post \
        http://0install.net/2007/interfaces/ZeroInstall.xml 0.31 0.36

A summary is printed at the end showing the result of each combination:

Passed
the tests all passed successfully (the command returned an exit status of zero)
Skipped
this combination of versions can't be used together (or no tests are defined)
Failed
some tests failed (the self-test command returned a non-zero exit status)