2020-04-12 10:27:48 +02:00
|
|
|
# $NetBSD: Makefile,v 1.21 2020/04/12 08:28:32 adam Exp $
|
2011-07-08 11:49:11 +02:00
|
|
|
|
2016-08-26 12:41:56 +02:00
|
|
|
DISTNAME= kyua-0.13
|
2020-04-12 10:27:48 +02:00
|
|
|
PKGREVISION= 9
|
2011-07-08 11:49:11 +02:00
|
|
|
CATEGORIES= devel
|
Update kyua to 0.11
Changes in version 0.11
=======================
Released on October 23rd, 2014.
* Added support to print the details of all test cases (metadata and
their output) to 'report'. This is via a new '--verbose' flag which
replaces the previous '--show-context'.
* Added support to specify the amount of physical disk space required
by a test case. This is in the form of a new "required_disk_space"
metadata property, which can also be provided by ATF test cases as
"require.diskspace".
* Assimilated the contents of all the kyua-*-tester(1) and
kyua-*-interface(7) manual pages into more relevant places. In
particular, added more details on test program registration and their
metadata to kyuafile(5), and added kyua-test-isolation(7) describing
the isolation features of the test execution.
* Assimilated the contents of all auxiliary manual pages, including
kyua-build-root(7), kyua-results-files(7), kyua-test-filters(7) and
kyua-test-isolation(7), into the relevant command-specific manual
pages. This is for easier discoverability of relevant information
when reading how specific Kyua commands work.
* Issue 30: Plumbed through support to query configuration variables
from ATF's test case heads. This resolves the confusing situation
where test cases could only do this from their body and cleanup
routines.
* Issue 49: Extended 'report' to support test case filters as
command-line arguments. Combined with '--verbose', this allows
inspecting the details of a test case failure after execution.
* Issue 55: Deprecated support for specifying test_suite overrides on
a test program basis. This idiom should not be used but support for
it remains in place.
* Issue 72: Added caching support to the getcwd(3) test in configure so
that the result can be overriden for cross-compilation purposes.
* Issue 83: Changed manual page headings to include a "kyua" prefix in
their name. This prevents some possible confusion when displaying,
for example, the "kyua-test" manual page with a plain name of "test".
* Issue 84: Started passing test-suite configuration variables to plain
and TAP test programs via the environment. The name of the
environment variables set this way is prefixed by TEST_ENV_, so a
configuration variable of the form
'test_suites.some_name.allow_unsafe_ops=yes' in kyua.conf becomes
'TEST_ENV_allow_unsafe_ops=YES' in the environment.
* Issue 97 and 116: Fixed the build on Illumos.
* Issue 102: Set TMPDIR to the test case's work directory when running
the test case. If the test case happens to use the mktemp(3) family
of functions (due to misunderstandings on how Kyua works or due to
the reuse of legacy test code), we don't want it to easily escape the
automanaged work directory.
* Issue 103: Started being more liberal in the parsing of TAP test
results by treating the number in 'ok' and 'not ok' lines as optional.
* Issue 105: Started using tmpfs instead of md as a temporary file
system for tests in FreeBSD so that we do not leak md(4) devices.
* Issue 109: Changed the privilege dropping code to start properly
dropping group privileges when unprivileged_user is set. Also fixes
testers/run_test:fork_wait__unprivileged_group.
* Issue 110: Changed 'help' to display version information and clarified
the purpose of the 'about' command in its documentation.
* Issue 111: Fixed crash when defining a test program in a Kyuafile that
has not yet specified the test suite name.
* Issue 114: Improved the kyuafile(5) manual page by clarifying the
restrictions of the include() directive and by adding abundant
examples.
2015-10-01 17:17:32 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=jmmv/kyua/releases/download/${DISTNAME}/}
|
2011-07-08 11:49:11 +02:00
|
|
|
|
|
|
|
MAINTAINER= jmmv@NetBSD.org
|
2014-08-08 16:30:24 +02:00
|
|
|
HOMEPAGE= https://github.com/jmmv/kyua/
|
2014-08-14 16:14:52 +02:00
|
|
|
COMMENT= Testing framework for infrastructure software
|
2012-07-19 20:30:18 +02:00
|
|
|
LICENSE= modified-bsd
|
2011-07-08 11:49:11 +02:00
|
|
|
|
2014-08-14 16:14:52 +02:00
|
|
|
CONFLICTS= kyua-atf-compat-[0-9]* kyua-cli-[0-9]* kyua-testers-[0-9]*
|
|
|
|
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
2011-07-08 11:49:11 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2014-08-14 16:14:52 +02:00
|
|
|
USE_LANGUAGES= c c++
|
Update to 0.6:
Experimental version released on February 22nd, 2013.
* Issue 36: Changed 'kyua help' to not fail when the configuration file
is bogus. Help should always work.
* Issue 37: Simplified the syntax() calls in configuration and Kyuafile
files to only specify the requested version instead of also the format
name. The format name is implied by the file being loaded, so there
is no use in the caller having to specify it. The version number of
these file formats has been bumped to 2.
* Issue 39: Added per-test-case metadata values to the HTML reports.
* Issue 40: Rewrote the documentation as manual pages and removed the
previous GNU Info document.
* Issue 47: Started using the independent testers in the kyua-testers
package to run the test cases. Kyua does not implement the logic to
invoke test cases any more, which provides for better modularity,
extensibility and robustness.
* Issue 57: Added support to specify arbitrary metadata properties for
test programs right from the Kyuafile. This is to make plain test
programs more versatile, by allowing them to specify any of the
requirements (allowed architectures, required files, etc.) supported
by Kyua.
* Reduced automatic screen line wrapping of messages to the 'help'
command and the output of tables by 'db-exec'. Wrapping any other
messages (specially anything going to stderr) was very annoying
because it prevented natural copy/pasting of text.
* Increased the granularity of the error codes returned by kyua(1) to
denote different error conditions. This avoids the overload of '1' to
indicate both "expected" errors from specific subcommands and
unexpected errors caused by the internals of the code. The manual now
correctly explain how the exit codes behave on a command basis.
* Optimized the database schema to make report generation almost
instantaneous.
* Bumped the database schema to 2. The database now records the
metadata of both test programs and test cases generically, without
knowledge of their interface.
* Added the 'db-migrate' command to provide a mechanism to upgrade a
database with an old schema to the current schema.
* Removed the GDB build-time configuration variable. This is now part
of the kyua-testers package.
* Rewrote the Kyuafile parsing code in C++, which results in a much
simpler implementation. As a side-effect, this gets rid of the
external Lua files required by 'kyua', which in turn make the tool
self-contained.
* Added caching of various configure test results (particularly in those
tests that need to execute a test program) so that cross-compilers can
predefine the results of the tests without having to run the
executables.
2013-02-23 04:37:40 +01:00
|
|
|
USE_TOOLS= pkg-config
|
2011-07-08 11:49:11 +02:00
|
|
|
|
2014-08-14 16:14:52 +02:00
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.kyua
|
2012-06-07 03:13:58 +02:00
|
|
|
PKG_SUPPORTED_OPTIONS= tests
|
|
|
|
PKG_SUGGESTED_OPTIONS= tests
|
|
|
|
|
2011-07-08 11:49:11 +02:00
|
|
|
CONFIGURE_ARGS+= KYUA_CONFSUBDIR=
|
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
|
|
|
|
CONFIGURE_ARGS+= --without-doxygen
|
|
|
|
|
|
|
|
PKG_SYSCONFSUBDIR= kyua
|
|
|
|
|
2012-06-07 03:13:58 +02:00
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
2016-12-31 10:39:31 +01:00
|
|
|
.if !empty(PKG_OPTIONS:Mtests)
|
2014-02-08 16:59:30 +01:00
|
|
|
. include "../../devel/atf/buildlink3.mk"
|
2012-06-07 03:13:58 +02:00
|
|
|
CONFIGURE_ARGS+= --with-atf
|
|
|
|
PLIST_SUBST+= TESTS=
|
2017-06-08 00:57:02 +02:00
|
|
|
|
|
|
|
post-install: post-install-tests
|
2012-06-07 03:13:58 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-atf
|
2017-06-08 00:57:02 +02:00
|
|
|
PLIST_SUBST+= TESTS="@comment "
|
2012-06-07 03:13:58 +02:00
|
|
|
.endif
|
2014-08-14 16:14:52 +02:00
|
|
|
PRINT_PLIST_AWK+= { sub("^tests/", "$${TESTS}tests/"); }
|
2012-06-07 03:13:58 +02:00
|
|
|
|
2017-06-08 00:57:02 +02:00
|
|
|
.PHONY: post-install-tests
|
|
|
|
post-install-tests:
|
2012-06-07 03:13:58 +02:00
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/tests
|
2011-07-08 11:49:11 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/Kyuafile.top \
|
|
|
|
${DESTDIR}${PREFIX}/tests/Kyuafile
|
|
|
|
|
2012-02-24 22:07:41 +01:00
|
|
|
.include "../../databases/sqlite3/buildlink3.mk"
|
|
|
|
.include "../../devel/lutok/buildlink3.mk"
|
2011-07-08 11:49:11 +02:00
|
|
|
.include "../../lang/lua/buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|