README.md: document how to properly run the test suite

This commit is contained in:
Enno Boland 2014-09-29 10:11:58 +02:00
parent 0c27c66d2a
commit fe0e2fe6ce

View File

@ -58,6 +58,17 @@ and optionally:
- [atf >= 0.15](http://code.google.com/p/kyua) (--enable-tests) to build the
Kyua test suite.
### Tests
To run the test suite make sure *kyua* is installed and run the following:
```
./configure --enable-tests --enable-debug
make
make DESTDIR=~/XBPS install clean
LD_PRELOAD=~/XBPS/usr/local/lib/libxbps.so.2 PATH=~/XBPS/usr/local/sbin:$PATH kyua test -k ~/XBPS/usr/local/tests/xbps/Kyuafile
```
### Build instructions
Standard configure script (not generated by GNU autoconf).
@ -72,13 +83,6 @@ By default PREFIX is set `/usr/local` and may be changed by setting `--prefix`
in the `configure` script. The `DESTDIR` variable is also supported at the
install stage.
If you want to build the tests too add `--enable-tests` to configure. Also make
sure you have kyua installed. To run a test call this:
```
kyua test -k ./tests/.../Kyuafile
```
There are some more options that can be tweaked, see them with
`./configure --help`.