version 1.9, 2013/02/16 12:36:23
|
version 1.10, 2016/03/17 02:32:16
|
Line 176 Kyua, as a project, is made up of a vari
|
Line 176 Kyua, as a project, is made up of a vari
|
ATF, because the ATF libraries are *not* being rewritten). All of these |
ATF, because the ATF libraries are *not* being rewritten). All of these |
components exist in pkgsrc, and are: |
components exist in pkgsrc, and are: |
|
|
* pkgsrc/devel/atf-libs: The C, C++ and POSIX shell libraries provided by |
|
ATF. These are *NOT* meant to be replaced by Kyua. |
|
|
|
* pkgsrc/devel/atf: The ATF tools, namely atf-run and atf-report. These |
* pkgsrc/devel/atf: The ATF tools, namely atf-run and atf-report. These |
are deprecated and this package should eventually disappear. |
are deprecated and this package should eventually disappear. |
|
|
* pkgsrc/devel/kyua-testers: The Kyua testers, which provide the |
* pkgsrc/devel/kyua: The Kyua command-line interface, which provides a |
`kyua-atf-tester` and `kyua-plain-tester` helper binaries. These |
|
binaries implement the logic to execute test cases in an isolated manner |
|
and to expose the test programs using a common and abstract command-line |
|
interface. |
|
|
|
* pkgsrc/devel/kyua-cli: The Kyua command-line interface, which provides a |
|
superset of the functionality of atf-run and atf-report. |
superset of the functionality of atf-run and atf-report. |
|
|
* pkgsrc/devel/kyua-atf-compat: Drop-in replacements for atf-run and |
|
atf-report that use kyua-cli in the backend. |
|
|
|
# Running the NetBSD test suite |
# Running the NetBSD test suite |
|
|
There are two ways to run the NetBSD test suite with Kyua. The easy (or |
There are two ways to run the NetBSD test suite with Kyua. The easy (or |
Line 243 Using the native command-line interface
|
Line 231 Using the native command-line interface
|
the existing NetBSD test suite is not prepared for Kyua. Let's take a look |
the existing NetBSD test suite is not prepared for Kyua. Let's take a look |
at these steps. |
at these steps. |
|
|
To get started, install the Kyua packages: |
To get started, install the Kyua package: |
|
|
$ cd /usr/pkgsrc/devel/kyua-cli |
$ cd /usr/pkgsrc/devel/kyua |
$ make install && make clean |
$ make install clean |
$ cd /usr/pkgsrc/devel/kyua-atf-compat |
|
$ make install && make clean |
|
|
|
Once this is done, configure Kyua in the same way ATF is configured "out of |
Once this is done, configure Kyua in the same way ATF is configured "out of |
the box" in NetBSD. Create the /usr/pkg/etc/kyua/kyua.conf file with these |
the box" in NetBSD. Create a /usr/pkg/etc/kyua/kyua.conf file containing: |
contents: |
|
|
|
syntax('config', 1) |
syntax('config', 1) |
unprivileged_user = '_tests' |
unprivileged_user = '_tests' |