Ravenports generated: 21 Feb 2024 20:00
[ravenports.git] / bucket_D7 / kyua
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               kyua
4 VERSION=                0.13
5 KEYWORDS=               devel
6 VARIANTS=               standard
7 SDESC[standard]=        Testing framework for infrastructure software
8 HOMEPAGE=               https://github.com/jmmv
9 CONTACT=                nobody
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            https://github.com/jmmv/kyua/releases/download/kyua-0.13/
13 DISTFILE[1]=            kyua-0.13.tar.gz:main
14 DF_INDEX=               1
15 SPKGS[standard]=        single
16
17 OPTIONS_AVAILABLE=      none
18 OPTIONS_STANDARD=       none
19
20 BUILDRUN_DEPENDS=       lutok:primary:standard
21                         atf:single:standard
22
23 USERS=                  tests
24 GROUPS=                 rpnobody
25 USERGROUP_SPKG=         single
26
27 USES=                   lua pkgconfig sqlite
28
29 LICENSE=                BSD3CLAUSE:single
30 LICENSE_FILE=           BSD3CLAUSE:{{WRKSRC}}/LICENSE
31 LICENSE_SCHEME=         solo
32
33 FPC_EQUIVALENT=         devel/kyua
34
35 MUST_CONFIGURE=         gnu
36 CONFIGURE_ARGS=         --with-atf
37                         --without-doxygen
38                         --docdir={{STD_DOCDIR}}
39
40 MAKE_ARGS=              examplesdir={{STD_EXAMPLESDIR}}
41
42 post-install:
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}
48
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.
54
55 Kyua features an expressive test suite definition language, a safe
56 runtime engine for test suites and a powerful report generation engine.
57
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.
61
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.
66
67
68 [FILE:95:distinfo]
69 db6e5d341d5cf7e49e50aa361243e19087a00ba33742b0855d2685c0b8e721d6       663776 kyua-0.13.tar.gz
70
71
72 [FILE:3296:manifests/plist.single]
73 @sample etc/kyua/kyua.conf.sample
74 bin/kyua
75 share/kyua/misc/
76  context.html
77  index.html
78  report.css
79  test_result.html
80 share/kyua/store/
81  migrate_v1_v2.sql
82  migrate_v2_v3.sql
83  schema_v3.sql
84 share/man/man1/
85  kyua-about.1.gz
86  kyua-config.1.gz
87  kyua-db-exec.1.gz
88  kyua-db-migrate.1.gz
89  kyua-debug.1.gz
90  kyua-help.1.gz
91  kyua-list.1.gz
92  kyua-report-html.1.gz
93  kyua-report-junit.1.gz
94  kyua-report.1.gz
95  kyua-test.1.gz
96  kyua.1.gz
97 share/man/man5/
98  kyua.conf.5.gz
99  kyuafile.5.gz
100 tests/kyua/Kyuafile
101 tests/kyua/bootstrap/
102  Kyuafile
103  atf_helpers
104  plain_helpers
105  testsuite
106 tests/kyua/cli/
107  Kyuafile
108  cmd_about_test
109  cmd_config_test
110  cmd_db_exec_test
111  cmd_debug_test
112  cmd_help_test
113  cmd_list_test
114  cmd_test_test
115  common_test
116  config_test
117  main_test
118 tests/kyua/drivers/
119  Kyuafile
120  list_tests_helpers
121  list_tests_test
122  report_junit_test
123  scan_results_test
124 tests/kyua/engine/
125  Kyuafile
126  atf_helpers
127  atf_list_test
128  atf_result_test
129  atf_test
130  config_test
131  exceptions_test
132  filters_test
133  kyuafile_test
134  plain_helpers
135  plain_test
136  requirements_test
137  scanner_test
138  scheduler_test
139  tap_helpers
140  tap_parser_test
141  tap_test
142 tests/kyua/examples/
143  Kyuafile
144  syntax_test
145 tests/kyua/integration/
146  Kyuafile
147  cmd_about_test
148  cmd_config_test
149  cmd_db_exec_test
150  cmd_db_migrate_test
151  cmd_debug_test
152  cmd_help_test
153  cmd_list_test
154  cmd_report_html_test
155  cmd_report_junit_test
156  cmd_report_test
157  cmd_test_test
158  global_test
159 tests/kyua/integration/helpers/
160  bad_test_program
161  bogus_test_cases
162  config
163  dump_env
164  expect_all_pass
165  expect_some_fail
166  interrupts
167  metadata
168  race
169  simple_all_pass
170  simple_some_fail
171 tests/kyua/model/
172  Kyuafile
173  context_test
174  exceptions_test
175  metadata_test
176  test_case_test
177  test_program_test
178  test_result_test
179 tests/kyua/store/
180  Kyuafile
181  dbtypes_test
182  exceptions_test
183  layout_test
184  metadata_test
185  migrate_test
186  read_backend_test
187  read_transaction_test
188  schema_inttest
189  schema_v1.sql
190  schema_v2.sql
191  testdata_v1.sql
192  testdata_v2.sql
193  testdata_v3_1.sql
194  testdata_v3_2.sql
195  testdata_v3_3.sql
196  testdata_v3_4.sql
197  transaction_test
198  write_backend_test
199  write_transaction_test
200 tests/kyua/utils/
201  Kyuafile
202  auto_array_test
203  datetime_test
204  env_test
205  memory_test
206  optional_test
207  passwd_test
208  sanity_test
209  stacktrace_helper
210  stacktrace_test
211  stream_test
212  units_test
213 tests/kyua/utils/cmdline/
214  Kyuafile
215  base_command_test
216  commands_map_test
217  exceptions_test
218  globals_test
219  options_test
220  parser_test
221  ui_test
222 tests/kyua/utils/config/
223  Kyuafile
224  exceptions_test
225  keys_test
226  lua_module_test
227  nodes_test
228  parser_test
229  tree_test
230 tests/kyua/utils/format/
231  Kyuafile
232  containers_test
233  exceptions_test
234  formatter_test
235 tests/kyua/utils/fs/
236  Kyuafile
237  auto_cleaners_test
238  directory_test
239  exceptions_test
240  lua_module_test
241  operations_test
242  path_test
243 tests/kyua/utils/logging/
244  Kyuafile
245  macros_test
246  operations_test
247 tests/kyua/utils/process/
248  Kyuafile
249  child_test
250  deadline_killer_test
251  exceptions_test
252  executor_test
253  fdstream_test
254  helpers
255  isolation_test
256  operations_test
257  status_test
258  systembuf_test
259 tests/kyua/utils/signals/
260  Kyuafile
261  exceptions_test
262  interrupts_test
263  misc_test
264  programmer_test
265  timer_test
266 tests/kyua/utils/sqlite/
267  Kyuafile
268  c_gate_test
269  database_test
270  exceptions_test
271  statement_test
272  transaction_test
273 tests/kyua/utils/text/
274  Kyuafile
275  exceptions_test
276  operations_test
277  regex_test
278  table_test
279  templates_test
280
281
282 [FILE:762:patches/patch-utils_datetime.cpp]
283 --- utils/datetime.cpp.orig
284 +++ utils/datetime.cpp
285 @@ -590,11 +590,12 @@
286  datetime::delta
287  datetime::timestamp::operator-(const datetime::timestamp& other) const
288  {
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));
293 -    }
294 +    /*
295 +     * XXX-BD: gettimeofday isn't necessicarily monotonic so return the
296 +     * smallest non-zero delta if time went backwards.
297 +     */
298 +    if ((*this) < other)
299 +        return datetime::delta::from_microseconds(1);
300      return datetime::delta::from_microseconds(to_microseconds() -
301                                                other.to_microseconds());
302  }
303
304
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);
311  
312 -    ATF_REQUIRE_THROW_RE(
313 -        std::runtime_error,
314 -        "Cannot subtract 1291970850123456us from 1291970750123468us "
315 -        ".*negative datetime::delta.*not supported",
316 -        ts2 - ts3);
317 +    /*
318 +     * NOTE (ngie): behavior change for
319 +     * https://github.com/jmmv/kyua/issues/155 .
320 +     */
321 +    ATF_REQUIRE_EQ(datetime::delta::from_microseconds(1), ts2 - ts3);
322  }
323  
324  
325
326
327 [FILE:371:files/kyua.conf]
328 --
329 -- System-wide configuration file for kyua(1).  See kyua.conf(5) for details
330 -- on the syntax.
331 --
332
333 syntax(2)
334
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'
338
339 -- An example to set a configuration property specific to FreeBSD.
340 --test_suites.FreeBSD.fstype = 'ffs'
341