1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
7 SDESC[standard]= Testing framework for infrastructure software
8 HOMEPAGE= https://github.com/jmmv
12 SITES[main]= https://github.com/jmmv/kyua/releases/download/kyua-0.13/
13 DISTFILE[1]= kyua-0.13.tar.gz:main
15 SPKGS[standard]= single
17 OPTIONS_AVAILABLE= none
18 OPTIONS_STANDARD= none
20 BUILDRUN_DEPENDS= lutok:primary:standard
25 USERGROUP_SPKG= single
27 USES= lua pkgconfig sqlite
29 LICENSE= BSD3CLAUSE:single
30 LICENSE_FILE= BSD3CLAUSE:{{WRKSRC}}/LICENSE
33 FPC_EQUIVALENT= devel/kyua
36 CONFIGURE_ARGS= --with-atf
38 --docdir={{STD_DOCDIR}}
40 MAKE_ARGS= examplesdir={{STD_EXAMPLESDIR}}
43 ${MKDIR} ${STAGEDIR}${PREFIX}/etc/kyua/
44 ${INSTALL_DATA} ${FILESDIR}/kyua.conf \
45 ${STAGEDIR}${PREFIX}/etc/kyua/kyua.conf.sample
46 ${RM} -r ${STAGEDIR}${STD_DOCDIR}
47 ${RM} -r ${STAGEDIR}${STD_EXAMPLESDIR}
49 [FILE:867:descriptions/desc.single]
50 Kyua is a testing framework for infrastructure software, originally
51 designed to equip BSD-based operating systems with a test suite. This
52 means that Kyua is lightweight and simple, and that Kyua integrates well
53 with various build systems and continuous integration frameworks.
55 Kyua features an expressive test suite definition language, a safe
56 runtime engine for test suites and a powerful report generation engine.
58 Kyua is for both developers and users, from the developer applying a
59 simple fix to a library to the system administrator deploying a new
60 release on a production machine.
62 Kyua is able to execute test programs written with a plethora of testing
63 libraries and languages. The library of choice is ATF, for which Kyua
64 was originally designed, but simple, framework-less test programs and
65 TAP-compliant test programs can also be executed through Kyua.
69 db6e5d341d5cf7e49e50aa361243e19087a00ba33742b0855d2685c0b8e721d6 663776 kyua-0.13.tar.gz
72 [FILE:3296:manifests/plist.single]
73 @sample etc/kyua/kyua.conf.sample
93 kyua-report-junit.1.gz
101 tests/kyua/bootstrap/
145 tests/kyua/integration/
155 cmd_report_junit_test
159 tests/kyua/integration/helpers/
187 read_transaction_test
199 write_transaction_test
213 tests/kyua/utils/cmdline/
222 tests/kyua/utils/config/
230 tests/kyua/utils/format/
243 tests/kyua/utils/logging/
247 tests/kyua/utils/process/
259 tests/kyua/utils/signals/
266 tests/kyua/utils/sqlite/
273 tests/kyua/utils/text/
282 [FILE:762:patches/patch-utils_datetime.cpp]
283 --- utils/datetime.cpp.orig
284 +++ utils/datetime.cpp
285 @@ -590,11 +590,12 @@
287 datetime::timestamp::operator-(const datetime::timestamp& other) const
289 - if ((*this) < other) {
290 - throw std::runtime_error(
291 - F("Cannot subtract %s from %s as it would result in a negative "
292 - "datetime::delta, which are not supported") % other % (*this));
295 + * XXX-BD: gettimeofday isn't necessicarily monotonic so return the
296 + * smallest non-zero delta if time went backwards.
298 + if ((*this) < other)
299 + return datetime::delta::from_microseconds(1);
300 return datetime::delta::from_microseconds(to_microseconds() -
301 other.to_microseconds());
305 [FILE:656:patches/patch-utils_datetime__test.cpp]
306 --- utils/datetime_test.cpp.orig 2017-04-08 05:25:26 UTC
307 +++ utils/datetime_test.cpp
308 @@ -532,11 +532,11 @@ ATF_TEST_CASE_BODY(timestamp__subtractio
309 ATF_REQUIRE_EQ(datetime::delta(100, 0), ts3 - ts1);
310 ATF_REQUIRE_EQ(datetime::delta(99, 999988), ts3 - ts2);
312 - ATF_REQUIRE_THROW_RE(
313 - std::runtime_error,
314 - "Cannot subtract 1291970850123456us from 1291970750123468us "
315 - ".*negative datetime::delta.*not supported",
318 + * NOTE (ngie): behavior change for
319 + * https://github.com/jmmv/kyua/issues/155 .
321 + ATF_REQUIRE_EQ(datetime::delta::from_microseconds(1), ts2 - ts3);
327 [FILE:371:files/kyua.conf]
329 -- System-wide configuration file for kyua(1). See kyua.conf(5) for details
335 -- User to drop privileges to when invoking kyua(1) as root and a test case
336 -- requests to be run with non-root permissions.
337 unprivileged_user = 'tests'
339 -- An example to set a configuration property specific to FreeBSD.
340 --test_suites.FreeBSD.fstype = 'ffs'