aboutsummaryrefslogtreecommitdiff
path: root/Manual.md
diff options
context:
space:
mode:
authorJürgen Buchmüller <pullmoll@t-online.de>2017-02-23 21:03:31 +0000
committerJürgen Buchmüller <pullmoll@t-online.de>2017-03-08 10:33:48 +0000
commitc31dd888f62b406645a07f046048007ebcfe05d4 (patch)
tree924f881cfadc4ccad1daeba71dcfa14ff4c7ec94 /Manual.md
parentf9dface61cdf31b9dff20e360e26bc247fff2007 (diff)
downloadvoid-packages-c31dd888f62b406645a07f046048007ebcfe05d4.tar
void-packages-c31dd888f62b406645a07f046048007ebcfe05d4.tar.gz
void-packages-c31dd888f62b406645a07f046048007ebcfe05d4.tar.bz2
void-packages-c31dd888f62b406645a07f046048007ebcfe05d4.tar.lz
void-packages-c31dd888f62b406645a07f046048007ebcfe05d4.tar.xz
void-packages-c31dd888f62b406645a07f046048007ebcfe05d4.tar.zst
void-packages-c31dd888f62b406645a07f046048007ebcfe05d4.zip
xbps-src: implement a 'check' stage
Add another stage 'check' between 'build' and 'install'. It is be enabled using the variable XBPS_CHECK_PKGS=yes and disabled if unset, set to "0" or "no" in your local etc/conf. A new xbps-src option `-q` for `quick` will disable XBPS_CHECK_PKGS by overriding it to 0. If enabled, `common/xbps-src/shutils/xbps-src-docheck.sh` checks for an existing `do_check()` function in the package's template and, if it exists, calls it. A new template variable `checkdepends` may be present and list packages required to run the `do_check()` function. Example: `checkdepends="bc unittest-cpp"`.
Diffstat (limited to 'Manual.md')
-rw-r--r--Manual.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/Manual.md b/Manual.md
index 37e9f06fbe6..449a5b2ce64 100644
--- a/Manual.md
+++ b/Manual.md
@@ -121,6 +121,8 @@ function, which is the directory to be used to compile the `source package`.
- `build` This phase compiles/prepares the `source files` via `make` or any other compatible method.
+- `check` This optional phase checks the result of the `build` phase for example by running `make -k check`.
+
- `install` This phase installs the `package files` into the package destdir `<masterdir>/destdir/<pkgname>-<version>`,
via `make install` or any other compatible method.
@@ -359,6 +361,10 @@ will be installed to the master directory. There is no need to specify a version
because the current version in srcpkgs will always be required.
Example `makedepends="foo blah"`.
+- `checkdepends` The list of dependencies required to run the package checks, i.e.
+the script or make rule specified in the template's `do_check()` function.
+Example `checkdepends="gtest"`.
+
- `depends` The list of dependencies required to run the package. These dependencies
are not installed to the master directory, rather are only checked if a binary package
in the local repository exists to satisfy the required version. Dependencies