README.md: document how to properly run the test suite
This commit is contained in:
parent
0c27c66d2a
commit
fe0e2fe6ce
18
README.md
18
README.md
@ -58,6 +58,17 @@ and optionally:
|
|||||||
- [atf >= 0.15](http://code.google.com/p/kyua) (--enable-tests) to build the
|
- [atf >= 0.15](http://code.google.com/p/kyua) (--enable-tests) to build the
|
||||||
Kyua test suite.
|
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
|
### Build instructions
|
||||||
|
|
||||||
Standard configure script (not generated by GNU autoconf).
|
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
|
in the `configure` script. The `DESTDIR` variable is also supported at the
|
||||||
install stage.
|
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
|
There are some more options that can be tweaked, see them with
|
||||||
`./configure --help`.
|
`./configure --help`.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user