Commit graph

49 commits

Author SHA1 Message Date
Ondřej Surý
2bf7921c7e Update the copyright information in all files in the repository
This commit converts the license handling to adhere to the REUSE
specification.  It specifically:

1. Adds used licnses to LICENSES/ directory

2. Add "isc" template for adding the copyright boilerplate

3. Changes all source files to include copyright and SPDX license
   header, this includes all the C sources, documentation, zone files,
   configuration files.  There are notes in the doc/dev/copyrights file
   on how to add correct headers to the new files.

4. Handle the rest that can't be modified via .reuse/dep5 file.  The
   binary (or otherwise unmodifiable) files could have license places
   next to them in <foo>.license file, but this would lead to cluttered
   repository and most of the files handled in the .reuse/dep5 file are
   system test files.

(cherry picked from commit 58bd26b6cf)
2022-01-11 12:22:09 +01:00
Ondřej Surý
762a3c866e Skip the unit tests when kyua is not available
The unittest.sh script tried to execute the unit tests when cmocka
development libraries was available, but kyua, the execution engine,
was not.  Now, both need to be installed in the system.
2020-06-17 15:04:43 +02:00
Michal Nowak
94fa27e43f
Enhance unit test debugging
When unit test fails, core file is created. Kyua's 'debug' command can
run GDB on it and provide backtrace. Unfortunately Kyua is picky about
location of these core files we opt to use custom Kyua fork and copy
core files from Kyua working directory to source tree and make it
available in GitLab.

(cherry picked from commit 8fad74e0e5)
2020-03-20 10:55:09 +01:00
Michal Nowak
8ceaf28442 Drop kyua report's --verbose option
It prints far more than needed.
2020-01-31 09:06:19 +00:00
Michal Nowak
9e6f6156f7
Omit spurious string from unit test debugging efforts
When both 'broken' and 'failed' test cases appear in unit test output

...
===> Broken tests
lib/isc/tests/socket_test:main  ->  broken: Test case timed out  [300.022s]
===> Failed tests
lib/isc/tests/time_test:main  ->  failed: 2 of 6 tests failed  [0.006s]
===> Summary
...

spurious '===>' string gets matched, that results in the following
error:

  Usage error for command debug: '===>' is not a test case identifier (missing ':'?).

Following change makes sure the string is omitted.

I checked on FreeBSD and OpenBSD that the AWK construct is supported.
2020-01-21 18:14:44 +01:00
Michal Nowak
6a94e6ba73 Gather debug info on broken unit tests 2020-01-06 11:25:09 +00:00
Michał Kępień
1bffa602ba Set --logfile for all kyua invocations
When kyua is called without the --logfile command line option, the log
file is created at a default location which is derived from the HOME
environment variable.  On FreeBSD GitLab CI runners, /home is a
read-only directory and thus kyua invocations not using the --logfile
option fail when HOME is set to something beneath /home.  Set --logfile
to /dev/null for all kyua invocations whose logs are irrelevant in order
to prevent kyua failures caused by HOME being non-writable.
2019-09-12 14:25:57 +02:00
Evan Hunt
6cfb2249e1 warn, rather than failing, if kyua is not present 2018-11-16 14:31:36 +01:00
Ondřej Surý
fa33b4ee23 Remove the traces of ATF from documentation 2018-11-15 16:29:51 +01:00
Ondřej Surý
de219b8555 Remove embedded atf-src and enforce atf >= 0.20 + kyua as execution engine 2018-11-15 16:28:20 +01:00
Evan Hunt
8c4d50c6bc remove ATF source code and Atffiles 2018-11-14 20:17:04 -08:00
Evan Hunt
d534ae5c12 remove atf-run from unittest.sh.in 2018-11-14 20:17:04 -08:00
Mark Andrews
590d391bbb prefer kyua over atf 2018-11-14 03:43:01 -05:00
Ondřej Surý
bd2ddec58f Enforce TAP output from cmocka based unit tests 2018-06-20 06:30:07 -04:00
Ondřej Surý
55a10b7acd Remove $Id markers, Principal Author and Reviewed tags from the full source tree 2018-05-11 13:17:46 +02:00
Evan Hunt
ef0b4c91bc allow ATF tests to run in parallel 2018-03-09 14:03:02 -08:00
Evan Hunt
cba2b972bc capture more information from unit tests
- in unittest step, explicitly preserve kyua.log or atf.out
- preserve kyua results database if present
- generate HTML report from kyua results if available
2018-03-09 09:13:11 -08:00
Ondřej Surý
843d389661 Update license headers to not include years in copyright in all applicable files 2018-02-23 10:12:02 +01:00
Evan Hunt
bc89b287c9 [master] use 'command' instead of 'type' to find atf-run and kyua paths 2018-01-30 10:33:08 -08:00
Mark Andrews
23d77c8747 4870. [test] Update included ATF library to atf-0.21 preserving
the ATF tool. [RT #46967]
2018-01-22 09:58:50 +11:00
Mark Andrews
ccb5678066 4851. [port] Support using kyua as well as atf-run to run the unit
tests. [RT #46853]
2018-01-02 10:20:58 +11:00
Francis Dupont
36dccc165e Fixed embedded atf code warning (RT 46833) 2017-12-18 16:11:45 +01:00
Mark Andrews
1c794002f5 4844. [test] Address memory leaks in libatf-c. [RT #46798] 2017-12-08 12:33:53 +11:00
Tinderbox User
90a6f5a701 update copyright notice / whitespace 2017-06-26 23:45:38 +00:00
Mark Andrews
1be7580be7 4641. [cleanup] Parallel builds (make -j) could fail with --with-atf /
--enable-developer. [RT #45373]
2017-06-26 10:00:42 +10:00
Mark Andrews
1cb514f56a add S: T: and E: log lines 2015-09-24 07:43:11 +10:00
Mukund Sivaraman
16c86a4980 Update .gitgnore files (ISC-Bugs #37773) 2014-11-11 11:47:02 +05:30
Evan Hunt
a4e76a630e [master] update gitignore files; use rev-parse to get srcid 2014-06-17 13:49:30 -07:00
Mark Andrews
a0369bb59f silence compiler warnings 2013-09-14 19:34:41 +10:00
Evan Hunt
a747113422 [master] update to atf 0.17
3648.	[test]		Updated the ATF test framework to version 0.17.
			[RT #25627]
2013-09-12 16:18:26 -07:00
Curtis Blackburn
0da7c95546 3481. [cleanup] removed use of const const in atf 2013-02-06 14:36:26 -06:00
Mark Andrews
ef2aea274a 3456. [port] g++47: aft fails to compile. [RT #32012] 2013-01-09 22:32:30 +11:00
Mar Andrews
c3b9fad5e3 3420. [bug] Address VPATH compilation issues. [RT #31879] 2012-11-17 09:33:46 +00:00
Mark Andrews
28a8f5b0de set $Id$ 2012-03-08 00:21:15 +11:00
Evan Hunt
e41d5a00bc added gitignore, removed cvsignore 2012-03-03 23:10:05 -08:00
Mark Andrews
700ed39d36 remove more bashisms 2012-01-20 01:37:09 +00:00
Mark Andrews
5418367da4 quote -csh 2012-01-19 08:41:19 +00:00
Mark Andrews
db64120f82 don't use bash syntax 2012-01-19 08:40:10 +00:00
Mark Andrews
2dfde9bb09 add depend target 2011-09-06 05:49:51 +00:00
Mark Andrews
df864361fd report R:PASS/FAIL 2011-09-04 12:12:15 +00:00
Scott Mann
45a89e832d Fix compilation failure in ATF due to gcc4.6.0 "improvements." RT #25598. 2011-08-24 19:53:11 +00:00
Evan Hunt
7d6972ff24 Add back the "| cat" so that output files don't get truncated 2011-08-23 22:52:58 +00:00
Evan Hunt
99cbc3d3a4 3145. [test] Capture output of ATF unit tests in "./atf.out" if
there were any errors while running them. [RT #25527]
2011-08-23 01:29:39 +00:00
Michael Graff
bef8fcc7b3 remove csv output so we get a more pretty, human readable output for now. Should we want to change this later, we can change it back, but robie would need to somehow handle the atf output in the first place to make csv useful. Also, put our path first, otherwise it fails on NetBSD. 2011-07-27 16:31:07 +00:00
Mark Andrews
8e6ecf7d60 cat the output as atf-report truncates stdout 2011-03-03 11:22:40 +00:00
Mark Andrews
90d75412b5 use csv output format. ticker not suitable for robie 2011-03-03 08:00:41 +00:00
Automatic Updater
37fef4ce36 autoreconf in hopes of silencing robie warnings 2011-02-28 16:44:15 +00:00
Mark Andrews
8e917272a9 only run test if ATFBIN defined 2011-02-27 14:13:51 +00:00
Evan Hunt
ef421f66f4 3043. [test] Merged in the NetBSD ATF test framework (currently
version 0.12) for development of future unit tests.
                        Use configure --with-atf to build ATF internally
                        or configure --with-atf=prefix to use an external
                        copy.  [RT #23209]
2011-02-26 02:26:33 +00:00