git: 87fac2e0c073 - main - contrib/atf: upgrade to 0.26.1
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 25 Nov 2026 21:18:41 UTC
The branch main has been updated by ngie:
URL: https://cgit.FreeBSD.org/src/commit/?id=87fac2e0c07327a02791fef5d01123abd3e590fe
commit 87fac2e0c07327a02791fef5d01123abd3e590fe
Merge: c7cd7e7fad57 bd8d548676ba
Author: Enji Cooper <ngie@FreeBSD.org>
AuthorDate: 2026-11-25 21:18:14 +0000
Commit: Enji Cooper <ngie@FreeBSD.org>
CommitDate: 2026-11-25 21:18:14 +0000
contrib/atf: upgrade to 0.26.1
This is a bugfix release. Please see the related merge commit for more
details.
MFC after: 1 week
Merge commit 'bd8d548676ba2235320c105e0683a758ac742e8e'
contrib/atf/NEWS | 55 +++
contrib/atf/README.md | 2 +-
contrib/atf/atf-c++/atf_c++_test.cpp | 3 +-
contrib/atf/atf-c++/build.cpp | 10 +-
contrib/atf/atf-c++/build_test.cpp | 46 +-
contrib/atf/atf-c++/check.cpp | 21 +-
contrib/atf/atf-c++/check.hpp | 7 +-
contrib/atf/atf-c++/check_test.cpp | 99 +++--
contrib/atf/atf-c++/detail/application.cpp | 61 +--
contrib/atf/atf-c++/detail/application.hpp | 2 +-
contrib/atf/atf-c++/detail/application_test.cpp | 10 +-
contrib/atf/atf-c++/detail/env_test.cpp | 3 +-
contrib/atf/atf-c++/detail/exceptions.cpp | 23 +-
contrib/atf/atf-c++/detail/exceptions.hpp | 2 +-
contrib/atf/atf-c++/detail/exceptions_test.cpp | 32 +-
contrib/atf/atf-c++/detail/fs.cpp | 119 ++---
contrib/atf/atf-c++/detail/fs.hpp | 6 +-
contrib/atf/atf-c++/detail/fs_test.cpp | 88 ++--
contrib/atf/atf-c++/detail/process.cpp | 55 +--
contrib/atf/atf-c++/detail/process.hpp | 111 ++---
contrib/atf/atf-c++/detail/process_test.cpp | 69 +--
contrib/atf/atf-c++/detail/sanity.hpp | 2 +-
contrib/atf/atf-c++/detail/test_helpers.cpp | 26 +-
contrib/atf/atf-c++/detail/test_helpers.hpp | 66 +--
contrib/atf/atf-c++/detail/text.cpp | 30 +-
contrib/atf/atf-c++/detail/text.hpp | 8 +-
contrib/atf/atf-c++/detail/text_test.cpp | 33 +-
contrib/atf/atf-c++/macros.hpp | 291 +++++++------
contrib/atf/atf-c++/macros_hpp_test.cpp | 48 +-
contrib/atf/atf-c++/macros_test.cpp | 209 ++++-----
contrib/atf/atf-c++/tests.cpp | 130 +++---
contrib/atf/atf-c++/tests.hpp | 10 +-
contrib/atf/atf-c++/tests_test.cpp | 23 +-
contrib/atf/atf-c++/unused_test.cpp | 4 +-
contrib/atf/atf-c++/utils.cpp | 1 -
contrib/atf/atf-c++/utils.hpp | 2 +-
contrib/atf/atf-c++/utils_test.cpp | 25 +-
contrib/atf/atf-c/atf-c.3 | 101 +++--
contrib/atf/atf-c/atf_c_test.c | 3 +-
contrib/atf/atf-c/build.c | 66 ++-
contrib/atf/atf-c/build.h | 16 +-
contrib/atf/atf-c/build_test.c | 56 ++-
contrib/atf/atf-c/check.c | 137 +++---
contrib/atf/atf-c/check.h | 37 +-
contrib/atf/atf-c/check_test.c | 121 +++---
contrib/atf/atf-c/defs.h | 9 +-
contrib/atf/atf-c/detail/dynstr.c | 71 ++-
contrib/atf/atf-c/detail/dynstr.h | 46 +-
contrib/atf/atf-c/detail/dynstr_test.c | 109 ++---
contrib/atf/atf-c/detail/env.c | 21 +-
contrib/atf/atf-c/detail/env.h | 14 +-
contrib/atf/atf-c/detail/env_test.c | 18 +-
contrib/atf/atf-c/detail/fs.c | 244 ++++++-----
contrib/atf/atf-c/detail/fs.h | 83 ++--
contrib/atf/atf-c/detail/fs_test.c | 320 ++++++++------
contrib/atf/atf-c/detail/list.c | 112 +++--
contrib/atf/atf-c/detail/list.h | 52 +--
contrib/atf/atf-c/detail/list_test.c | 49 ++-
contrib/atf/atf-c/detail/map.c | 105 ++---
contrib/atf/atf-c/detail/map.h | 57 +--
contrib/atf/atf-c/detail/map_test.c | 37 +-
contrib/atf/atf-c/detail/process.c | 220 ++++------
contrib/atf/atf-c/detail/process.h | 77 ++--
contrib/atf/atf-c/detail/process_helpers.c | 32 +-
contrib/atf/atf-c/detail/process_test.c | 320 ++++++--------
contrib/atf/atf-c/detail/sanity.c | 17 +-
contrib/atf/atf-c/detail/sanity.h | 32 +-
contrib/atf/atf-c/detail/sanity_test.c | 34 +-
contrib/atf/atf-c/detail/test_helpers.c | 44 +-
contrib/atf/atf-c/detail/test_helpers.h | 78 ++--
contrib/atf/atf-c/detail/text.c | 40 +-
contrib/atf/atf-c/detail/text.h | 21 +-
contrib/atf/atf-c/detail/text_test.c | 145 ++++---
contrib/atf/atf-c/detail/tp_main.c | 178 ++++----
contrib/atf/atf-c/detail/user.c | 6 +-
contrib/atf/atf-c/detail/user.h | 2 +
contrib/atf/atf-c/detail/user_test.c | 17 +-
contrib/atf/atf-c/error.c | 48 +-
contrib/atf/atf-c/error.h | 28 +-
contrib/atf/atf-c/error_fwd.h | 4 +-
contrib/atf/atf-c/error_test.c | 47 +-
contrib/atf/atf-c/h_build.h | 218 +++-------
contrib/atf/atf-c/macros.h | 366 ++++++++--------
contrib/atf/atf-c/macros_h_test.c | 64 ++-
contrib/atf/atf-c/macros_test.c | 555 ++++++++++++------------
contrib/atf/atf-c/tc.c | 472 ++++++++++----------
contrib/atf/atf-c/tc.h | 101 ++---
contrib/atf/atf-c/tc_test.c | 41 +-
contrib/atf/atf-c/tp.c | 60 +--
contrib/atf/atf-c/tp.h | 24 +-
contrib/atf/atf-c/tp_test.c | 25 +-
contrib/atf/atf-c/unused_test.c | 4 +-
contrib/atf/atf-c/utils.c | 71 +--
contrib/atf/atf-c/utils.h | 27 +-
contrib/atf/atf-c/utils_test.c | 30 +-
contrib/atf/atf-sh/atf-check.1 | 11 +-
contrib/atf/atf-sh/atf-check.cpp | 304 +++++++------
contrib/atf/atf-sh/atf-check_test.sh | 130 ++++++
contrib/atf/atf-sh/atf-sh.cpp | 45 +-
contrib/atf/atf-sh/integration_test.sh | 20 +-
contrib/atf/config.h | 9 +-
contrib/atf/test-programs/c_helpers.c | 63 +--
contrib/atf/test-programs/cpp_helpers.cpp | 22 +-
103 files changed, 3897 insertions(+), 3771 deletions(-)
diff --cc contrib/atf/NEWS
index e1c9e5f512f5,000000000000..ce15f5603c30
mode 100644,000000..100644
--- a/contrib/atf/NEWS
+++ b/contrib/atf/NEWS
@@@ -1,838 -1,0 +1,893 @@@
+# Major changes between releases
+
++## Changes in version 0.26.1
++
++Released on 2026/11/25.
++
++### Summary
++
++This release addresses a number of bugs in ATF that were present in
++0.26[.0]. Most of these are Developer Workflow related, however, these
++changes deserve special attention:
++
++* The remaining [known] memory leak issues were resolved by @holmuk in #215.
++* A key issue with how macros in atf-c(3) are evaluated was also resolved by
++ @dag-erling in #229.
++
++### A Note on Versioning
++
++This release will be the first release that uses a [SemVer 2.0][]
++compatible version. All future versions will start out with a subminor
++version of .0, which will increase (monotonically), until the minor version
++is bumped.
++
++[SemVer 2.0]: https://semver.org/
++
++### Bugfixes
++
++* #128: SPDX license identifiers to atf-c
++* #199: atf-check: remove pre-C++17 compatibility
++* #202: atf-sh/integration_test: fix hang when invoked via kyua
++* #203: atf_require_kmod: fix variable name typo
++* #205: Add -v flag to atf-check
++* #207: atf-c(3): mention `atf_tc_has_config_var` in manpage
++* #214: feat: remove `std::vsnprintf` autotools tests/conditionals
++* #215: Fix memory leaks reported by Linux ASAN/LSAN
++* #219: feat(ci): update CI image/LLVM versions in use
++* #221: fix(m4): Express basename and dirname tests using C
++* #222: fix: don't spam C*FLAGS and LDFLAGS with ASAN/LSAN/UBSAN flags
++* #223: fix: Improve legacy style assertion logic
++* #229: atf-c: Guard against multiple evaluation
++* #231: Fix Automake escaped-comment warning
++
++### Developer Workflow Changes
++
++* #200: [ci] add NetBSD 11.0-RELEASE job
++* #208: feat(dev): add commit-check support to the project
++* #209: chore: change `ubuntu-latest` to 24.04 where needed
++* #210: fix(commit-check): tighten subject criteria
++* #211: feat: Enforce C/C++ style in the project with `clang-format`
++* #212: chore: change `NO_STYLE_CHECK*` to `NOLINT*`
++* #217: Enable sanitizers for Linux, MacOS and FreeBSD
++* #224: chore(ci): update FreeBSD 14 image from 14.4 to 14.5
++* #225: Add GHA build timeouts
++* #226: chore(ci): sync ATF's build.yaml with Kyua's build.yaml
++
++**Full Changelog**: https://github.com/freebsd/atf/compare/atf-0.26...atf-0.26.1
++
+## Changes in version 0.26
+
+Released on 2026/09/22.
+
+### Developer Workflow Changes
+
+* #189: Automate uploading release assets
+* #190: INSTALL.md: sync content with version from lutok
+* #191: [CI] Minor tweaks
+
+### Feature Enhancements
+
+* #192: Add kmod support on FreeBSD
+
+**Full Changelog**: https://github.com/freebsd/atf/compare/atf-0.25...atf-0.26
+
+## Changes in version 0.25
+
+Released on 2026/09/02.
+
+### Bugfixes
+* #187: Fix the build on NetBSD by renaming a variable added in version 0.24.
+
+### Developer Workflow Changes
+* #185: The version of LLVM used in macOS runners was bumped from 19 to 20
+
+**Full Changelog**: https://github.com/freebsd/atf/compare/atf-0.24...atf-0.25
+
+## Changes in version 0.24
+
+Released on August, 17, 2026
+
+### Major Changes
+* This version of ATF requires C++-20 to build/function.
+* This version of ATF focused heavily on correctness and memory management
+ issues discussed in #77. While most of the issues are believed to be resolved,
+ some issues may still remain.
+* The `atf::text::duplicate(..)` API and tests were removed.
+
+### Feature Enhancements
+* Issue #105: Widen our process status capabilties
+
+### Docs
+* Issue #107: Clarify the semantics of ATF_{CHECK,REQUIRE}_ERRNO()
+* Issue #124: atf-check.1: Add missing -r flag to synopsis
+* Issue #127: atf-c.3: Fix test case addition in ATF_TP_ADD_TCS synopsis example
+
+### Developer Workflow Changes
+* GitHub Actions support was added.
+* Cirrus CI support was removed.
+* FreeBSD vmactions CI support was added.
+* ASAN/LSAN/UBSAN support was added for Linux and macOS.
+* (Initial) runtime code coverage support was added.
+* (Initial) pre-commit support was added.
+
+**Full Changelog**: https://github.com/freebsd/atf/compare/atf-0.23...atf-0.24
+
+## Changes in version 0.23
+
+Released on March, 29, 2025
+
+* Issue #101: fix release tarballs by using `make dist` instead of
+ alternative ad hoc method.
+
+* Issue #76: `atf_check`: fix `std::length_error` thrown from `temp_file`.
+
+* #87: Update documentation/build files to point to FreeBSD repo/mailing lists.
+
+* #86: Improve diagnostics when paths cannot be opened
+
+* #85: various build-related changes. Highlights:
+ * Remove leftover references of `auto_array` (bugfix).
+ * Remove the `atf-*-api` manpages (enhancement).
+ * Require -std=C++14 with ATF (enhancement).
+ * Expose `WCOREDUMP(..)` on platforms that support it (bugfix).
+ * Add `__attribute__((nonnull))` support (enhancement).
+ * Restore `AC_PROG_CPP` (bugfix).
+
+### General fixes
+
+* Fix various style issues which were blocking `make dist` from completing
+ cleanly.
+
+* Fix `atf_utils_file_exists` declaration in atf-c(3).
+
+* Fix various memory leaks and logic errors.
+
+* `atf-test-case(4)`: update reference to the "descr" metadata property so it's
+ marked Optional.
+
+* `atf-check.cpp`: remove unnecessary data copy in `temp_file`.
+
+## Changes in version 0.22
+
+Released on November 25th, 2024.
+
+* Issue #23: Fix double-free triggered by atf_map_insert in low memory
+ scenarios, caused by an overlook in the atf_list code.
+
+* Issue #31: Added require.progs metadata properties to the tests that
+ need a compiler to run.
+
+* Added the atf_check_not_equal function to atf-sh to check for
+ unequal values.
+
+* Add `-r timeout` flag to `atf-check`.
+
+* Open results files before executing tests to fix an issue ATF tests that
+ adjust the processes' Capsicum rights as part of the testcase(s)
+ executed.
+
+* Add Cirrus CI integration for FreeBSD CI/CD support.
+
+* Address compilation issues on OpenSolaris distributions.
+
+* Replace `auto_array` with `std::vector` (fixes modern C++ compliance).
+
+* Replace `auto_ptr` with `std::unique_ptr` (fixes modern C++ compliance).
+
+* Update autotools idioms and requirements. The minimum required version of
+ autoconf is now 2.68.
+
+* Modify `ATF_CHECK*` and `ATF_REQUIRE*` macros to avoid double
+ evaluation/allow the gcc toolchain to detect accidental single
+ assignment typos.
+
+* Always define CPP to fix use of ATF_BUILD_CPP when the user did not
+ define CPP when invoking the configure script.
+
+### General fixes
+
+* Fix various typos and formatting errors in manual pages and markdown
+ documents.
+
+## Changes in version 0.21
+
+Released on October 23rd, 2014.
+
+* Restored the atf(7) manual page to serve as a reference to all the other
+ manual pages shipped by ATF.
+
+* Added the -s flag to atf-sh to support specifying the shell interpreter
+ to be used.
+
+* Removed ATF_WORKDIR. The only remaining consumers have been converted to
+ use the standard TMPDIR environment variable. As a benefit, and because
+ Kyua forces the TMPDIR to live within the test case's work directory,
+ any stale files left behind by ATF will be automatically cleaned up.
+
+* Documented the environment variables recognized by each component in the
+ relevant manual pages. This information was lost with the atf-config(1)
+ removal.
+
+* Added a new "require.diskspace" metadata property to test cases so that
+ they can specify the minimum amount of disk space required for the test
+ to run.
+
+* Renamed the atf-{c,c++,sh}-api(3) manual pages to atf-{c,c++,sh}(3) for
+ discoverability purposes. Symbolic links are provided for the time
+ being to still make the old names visible.
+
+* Issue #5: Recommend the (expected, actual) idiom for calls to the test
+ macros in the manual pages.
+
+* Issue #7: Stopped catching unhandled exceptions in atf-c++ tests. This
+ propagates the crash to the caller, which in turn allows it to obtain
+ proper debugging information. In particular, Kyua should now be able to
+ extract a stacktrace pinpointing the problem.
+
+* Issue #8: Fixed atf-c/macros_test:use test failures spotted by the clang
+ that ships with FreeBSD 11.0-CURRENT.
+
+* Issue #12: Improved documentation of atf-sh(3) and atf-check(1) by better
+ explaining how they relate to each other.
+
+* Issue #14: Stopped setting 'set -e' in atf-sh. This setting was
+ initially added as a way to enable a "strict" mode in the library and to
+ make test cases fail fast when they run unprotected commands. However,
+ doing so in the library is surprising as the responsibility of enabling
+ 'set -e' should be on the user's code. Also, 'set -e' introduces
+ inconsistent behavior on subshells and users do not expect that.
+
+* Issue #15: Fixed atf_utils_{fork,wait} to support nested calls.
+
+* Issue #16: Fixed test failures (by removing a long-standing hack) on
+ systems that lack \e support in printf(1).
+
+* Issue #19: Removed stale references to atf-config and atf-run.
+
+
+## Changes in version 0.20
+
+Experimental version released on February 7th, 2014.
+
+This is the first release without the code for the deprecated tools. If
+you require such code, please fetch a copy of the 0.19 release and extract
+the 'tools' directory for your own consumption.
+
+* Removed the deprecated tools. This includes atf-config, atf-report,
+ atf-run and atf-version.
+
+* Issue #8: Fixed atf-c/macros_test:use test failures spotted by the clang
+ that ships with FreeBSD 11.0-CURRENT.
+
+
+## Changes in version 0.19
+
+Experimental version released on February 7th, 2014.
+
+This is the last release to bundle the code for the deprecated tools.
+The next release will drop their code and will stop worrying about
+backwards compatibility between the ATF libraries and what the old tools
+may or may not support.
+
+If you still require the old tools for some reason, grab a copy of the
+'tools' directory now. The code in this directory is standalone and
+does not depend on any internal details of atf-c++ any longer.
+
+* Various fixes and improvements to support running as part of the FreeBSD
+ test suite.
+
+* Project hosting moved from Google Code (as a subproject of Kyua) to
+ GitHub (as a first-class project). The main reason for the change is
+ the suppression of binary downloads in Google Code on Jan 15th, 2014.
+ See https://github.com/freebsd/atf/
+
+* Removed builtin help from atf-sh(1) and atf-check(1) for simplicity
+ reasons. In other words, their -h option is gone.
+
+* Moved the code of the deprecated tools into a 'tools' directory and
+ completely decoupled their code from the internals of atf-c++. The
+ reason for this is to painlessly allow a third-party to maintain a
+ copy of these tools after we delete them because upcoming changes to
+ atf-c++ would break the stale tools.
+
+
+## Changes in version 0.18
+
+Experimental version released on November 16th, 2013.
+
+* Issue 45: Added require.memory support in atf-run for FreeBSD.
+
+* Fixed an issue with the handling of cin with libc++.
+
+* Issue 64: Fixed various mandoc formatting warnings.
+
+* NetBSD PR bin/48284: Made atf-check flush its progress message to
+ stdout so that an interrupted test case always shows the last message
+ being executed.
+
+* NetBSD PR bin/48285: Fixed atf_check examples in atf-sh-api(3).
+
+
+## Changes in version 0.17
+
+Experimental version released on February 14th, 2013.
+
+* Added the atf_utils_cat_file, atf_utils_compare_file,
+ atf_utils_copy_file, atf_utils_create_file, atf_utils_file_exists,
+ atf_utils_fork, atf_utils_grep_file, atf_utils_grep_string,
+ atf_utils_readline, atf_utils_redirect and atf_utils_wait utility
+ functions to atf-c-api. Documented the already-public
+ atf_utils_free_charpp function.
+
+* Added the cat_file, compare_file, copy_file, create_file, file_exists,
+ fork, grep_collection, grep_file, grep_string, redirect and wait
+ functions to the atf::utils namespace of atf-c++-api. These are
+ wrappers around the same functions added to the atf-c-api library.
+
+* Added the ATF_CHECK_MATCH, ATF_CHECK_MATCH_MSG, ATF_REQUIRE_MATCH and
+ ATF_REQUIRE_MATCH_MSG macros to atf-c to simplify the validation of a
+ string against a regular expression.
+
+* Miscellaneous fixes for manpage typos and compilation problems with
+ clang.
+
+* Added caching of the results of those configure tests that rely on
+ executing a test program. This should help crossbuild systems by
+ providing a mechanism to pre-specify what the results should be.
+
+* PR bin/45690: Make atf-report convert any non-printable characters to
+ a plain-text representation (matching their corresponding hexadecimal
+ entities) in XML output files. This is to prevent the output of test
+ cases from breaking xsltproc later.
+
+
+## Changes in version 0.16
+
+Experimental version released on July 10th, 2012.
+
+* Added a --enable-tools flag to configure to request the build of the
+ deprecated ATF tools, whose build is now disabled by default. In order
+ to continue running tests, you should migrate to Kyua instead of enabling
+ the build of the deprecated tools. The kyua-atf-compat package provides
+ transitional compatibility versions of atf-run and atf-report built on
+ top of Kyua.
+
+* Tweaked the ATF_TEST_CASE macro of atf-c++ so that the compiler can
+ detect defined but unused test cases.
+
+* PR bin/45859: Fixed some XSLT bugs that resulted in the tc-time and
+ tp-time XML tags leaking into the generated HTML file. Also improved
+ the CSS file slightly to correct alignment and color issues with the
+ timestamps column.
+
+* Optimized atf-c++/macros.hpp so that GNU G++ consumes less memory during
+ compilation with GNU G++.
+
+* Flipped the default to building shared libraries for atf-c and atf-c++,
+ and started versioning them. As a side-effect, this removes the
+ --enable-unstable-shared flag from configure that appears to not work any
+ more (under NetBSD). Additionally, some distributions require the use of
+ shared libraries for proper dependency tracking (e.g. Fedora), so it is
+ better if we do the right versioning upstream.
+
+* Project hosting moved from an adhoc solution (custom web site and
+ Monotone repository) to Google Code (standard wiki and Git). ATF now
+ lives in a subcomponent of the Kyua project.
+
+
+## Changes in version 0.15
+
+Experimental version released on January 16th, 2012.
+
+* Respect stdin in atf-check. The previous release silenced stdin for any
+ processes spawned by atf, not only test programs, which caused breakage
+ in tests that pipe data through atf-check.
+
+* Performance improvements to atf-sh.
+
+* Enabled detection of unused parameters and variables in the code and
+ fixed all warnings.
+
+* Changed the behavior of "developer mode". Compiler warnings are now
+ enabled unconditionally regardless of whether we are in developer mode or
+ not; developer mode is now only used to perform strict warning checks and
+ to enable assertions. Additionally, developer mode is now only
+ automatically enabled when building from the repository, not for formal
+ releases.
+
+* Added new Autoconf M4 macros (ATF_ARG_WITH, ATF_CHECK_C and
+ ATF_CHECK_CXX) to provide a consistent way of defining a --with-arg flag
+ in configure scripts and detecting the presence of any of the ATF
+ bindings. Note that ATF_CHECK_SH was already introduced in 0.14, but it
+ has now been modified to also honor --with-atf if instantiated.
+
+* Added timing support to atf-run / atf-report.
+
+* Added support for a 'require.memory' property, to specify the minimum
+ amount of physical memory needed by the test case to yield valid results.
+
+* PR bin/45690: Force an ISO-8859-1 encoding in the XML files generated by
+ atf-report so that invalid data in the output of test cases does not
+ mangle our report.
+
+
+## Changes in version 0.14
+
+Experimental version released on June 14th, 2011.
+
+* Added a pkg-config file for atf-sh and an aclocal file to ease the
+ detection of atf-sh from autoconf scripts.
+
+* Made the default test case body defined by atf_sh fail. This is to
+ ensure that test cases are properly defined in test programs and helps
+ in catching typos in the names of the body functions.
+
+* PR bin/44882: Made atf-run connect the stdin of test cases to /dev/zero.
+ This provides more consistent results with "normal" execution (in
+ particular, when tests are executed detached from a terminal).
+
+* Made atf-run hardcode TZ=UTC for test cases. It used to undefine TZ, but
+ that does not take into account that libc determines the current timezone
+ from a configuration file.
+
+* All test programs will now print a warning when they are not run through
+ atf-run(1) stating that this is unsupported and may deliver incorrect
+ results.
+
+* Added support for the 'require.files' test-case property. This allows
+ test cases to specify installed files that must be present for the test
+ case to run.
+
+
+## Changes in version 0.13
+
+Experimental version released on March 31st, 2011.
+
+This is the first release after the creation of the Kyua project, a more
+modular and reliable replacement for ATF. From now on, ATF will change to
+accomodate the transition to this new codebase, but ATF will still continue
+to see development in the short/medium term. Check out the project page at
+http://code.google.com/p/kyua/ for more details.
+
+The changes in this release are:
+
+* Added support to run the tests with the Kyua runtime engine (kyua-cli), a
+ new package that aims to replace atf-run and atf-report. The ATF tests
+ can be run with the new system by issuing a 'make installcheck-kyua' from
+ the top-level directory of the project (assuming the 'kyua' binary is
+ available during the configuration stage of ATF).
+
+* atf-run and atf-report are now in maintenance mode (but *not* deprecated
+ yet!). Kyua already implements a new, much more reliable runtime engine
+ that provides similar features to these tools. That said, it is not
+ complete yet so all development efforts should go towards it.
+
+* If GDB is installed, atf-run dumps the stack trace of crashing test
+ programs in an attempt to aid debugging. Contributed by Antti Kantee.
+
+* Reverted default timeout change in previous release and reset its value
+ to 5 minutes. This was causing several issues, specially when running
+ the existing NetBSD test suite in qemu.
+
+* Fixed the 'match' output checker in atf-check to properly validate the
+ last line of a file even if it does not have a newline.
+
+* Added the ATF_REQUIRE_IN and ATF_REQUIRE_NOT_IN macros to atf-c++ to
+ check for the presence (or lack thereof) of an element in a collection.
+
+* PR bin/44176: Fixed a race condition in atf-run that would crash atf-run
+ when the cleanup of a test case triggered asynchronous modifications to
+ its work directory (e.g. killing a daemon process that cleans up a pid
+ file in the work directory).
+
+* PR bin/44301: Fixed the sample XSLT file to report bogus test programs
+ instead of just listing them as having 0 test cases.
+
+
+## Changes in version 0.12
+
+Experimental version released on November 7th, 2010.
+
+* Added the ATF_REQUIRE_THROW_RE to atf-c++, which is the same as
+ ATF_REQUIRE_THROW but allows checking for the validity of the exception's
+ error message by means of a regular expression.
+
+* Added the ATF_REQUIRE_MATCH to atf-c++, which allows checking for a
+ regular expression match in a string.
+
+* Changed the default timeout for test cases from 5 minutes to 30 seconds.
+ 30 seconds is long enough for virtually all tests to complete, and 5
+ minutes is a way too long pause in a test suite where a single test case
+ stalls.
+
+* Deprecated the use.fs property. While this seemed like a good idea in
+ the first place to impose more control on what test cases can do, it
+ turns out to be bad. First, use.fs=false prevents bogus test cases
+ from dumping core so after-the-fact debugging is harder. Second,
+ supporting use.fs adds a lot of unnecessary complexity. atf-run will
+ now ignore any value provided to use.fs and will allow test cases to
+ freely access the file system if they wish to.
+
+* Added the atf_tc_get_config_var_as_{bool,long}{,_wd} functions to the atf-c
+ library. The 'text' module became private in 0.11 but was being used
+ externally to simplify the parsing of configuration variables.
+
+* Made atf-run recognize the 'unprivileged-user' configuration variable
+ and automatically drop root privileges when a test case sets
+ require.user=unprivileged. Note that this is, by no means, done for
+ security purposes; this is just for user convenience; tests should, in
+ general, not be blindly run as root in the first place.
+
+
+## Changes in version 0.11
+
+Experimental version released on October 20th, 2010.
+
+* The ATF_CHECK* macros in atf-c++ were renamed to ATF_REQUIRE* to match
+ their counterparts in atf-c.
+
+* Clearly separated the modules in atf-c that are supposed to be public
+ from those that are implementation details. The header files for the
+ internal modules are not installed any more.
+
+* Made the atf-check tool private. It is only required by atf-sh and being
+ public has the danger of causing confusion. Also, making it private
+ simplifies the public API of atf.
+
+* Changed atf-sh to enable per-command error checking (set -e) by default.
+ This catches many cases in which a test case is broken but it is not
+ reported as such because execution continues.
+
+* Fixed the XSTL and CSS stylesheets to support expected failures.
+
+
+## Changes in version 0.10
+
+Experimental version released on July 2nd, 2010.
+
+Miscellaneous features
+
+* Added expected failures support to test cases and atf-run. These
+ include, for example, expected clean exits, expected reception of fatal
+ signals, expected timeouts and expected errors in condition checks.
+ These statuses can be used to denote test cases that are known to fail
+ due to a bug in the code they are testing. atf-report reports these
+ tests separately but they do not count towards the failed test cases
+ amount.
+
+* Added the ATF_CHECK_ERRNO and ATF_REQUIRE_ERRNO to the C library to
+ allow easy checking of call failures that update errno.
+
+* Added the has.cleanup meta-data property to test caes that specifies
+ whether the test case has a cleanup routine or not; its value is
+ automatically set. This property is read by atf-run to know if it has to
+ run the cleanup routine; skipping this run for every test case
+ significantly speeds up the run time of test suites.
+
+* Reversed the order of the ATF_CHECK_THROW macro in the C++ binding to
+ take the expected exception as the first argument and the statement to
+ execute as the second argument.
+
+### Changes in atf-check
+
+* Changed atf-check to support negating the status and output checks by
+ prefixing them with not- and added support to specify multiple checkers
+ for stdout and stderr, not only one.
+
+* Added the match output checker to atf-check to look for regular
+ expressions in the stdout and stderr of commands.
+
+* Modified the exit checks in atf-check to support checking for the
+ reception of signals.
+
+Code simplifications and cleanups
+
+* Removed usage messages from test programs to simplify the
+ implementation of every binding by a significant amount. They just now
+ refer the user to the appropriate manual page and do not attempt to wrap
+ lines on terminal boundaries. Test programs are not supposed to be run
+ by users directly so this minor interface regression is not important.
+
+* Removed the atf-format internal utility, which is unused after the
+ change documented above.
+
+* Removed the atf-cleanup internal utility. It has been unused since the
+ test case isolation was moved to atf-run in 0.8
+
+* Splitted the Makefile.am into smaller files for easier maintenance and
+ dropped the use of M4. Only affects users building from the repository
+ sources.
+
+* Intermixed tests with the source files in the source tree to provide
+ them more visibility and easier access. The tests directory is gone from
+ the source tree and tests are now suffixed by _test, not prefixed by t_.
+
+* Simplifications to the atf-c library: removed the io, tcr and ui
+ modules as they had become unnecessary after all simplifications
+ introduced since the 0.8 release.
+
+* Removed the application/X-atf-tcr format introduced in 0.8 release.
+ Tests now print a much simplified format that is easy to parse and nicer
+ to read by end users. As a side effect, the default for test cases is
+ now to print their results to stdout unless otherwise stated by providing
+ the -r flag.
+
+* Removed XML distribution documents and replaced them with plain-text
+ documents. They provided little value and introduced a lot of complexity
+ to the build system.
+
+* Simplified the output of atf-version by not attempting to print a
+ revision number when building form a distfile. Makes the build system
+ easier to maintain.
+
+
+## Changes in version 0.9
+
+Experimental version released on June 3rd, 2010.
+
+* Added atf-sh, an interpreter to process test programs written using
+ the shell API. This is not really a shell interpreter by itself though:
+ it is just a wrapper around the system shell that eases the loading of
+ the necessary ATF libraries.
+
+* Removed atf-compile in favour of atf-sh.
+
+* Added the use.fs metadata property to test case, which is used to
+ specify which test cases require file system access. This is to
+ highlight dependencies on external resources more clearly and to speed up
+ the execution of test suites by skipping the creation of many unnecessary
+ work directories.
+
+* Fixed test programs to get a sane default value for their source
+ directory. This means that it should not be necessary any more to pass
+ -s when running test programs that do not live in the current directory.
+
+* Defining test case headers became optional. This is trivial to achieve
+ in shell-based tests but a bit ugly in C and C++. In C, use the new
+ ATF_TC_WITHOUT_HEAD macro to define the test case, and in C++ use
+ ATF_TEST_CASE_WITHOUT_HEAD.
+
+
+## Changes in version 0.8
+
+Experimental version released on May 7th, 2010.
+
+* Test programs no longer run several test cases in a row. The execution
+ of a test program now requires a test case name, and that single test
+ case is executed. To execute several test cases, use the atf-run utility
+ as usual.
+
+* Test programs no longer fork a subprocess to isolate the execution of
+ test cases. They run the test case code in-process, and a crash of the
+ test case will result in a crash of the test program. This is to ease
+ debugging of faulty test cases.
+
+* Test programs no longer isolate their test cases. This means that they
+ will not create temporary directories nor sanitize the environment any
+ more. Yes: running a test case that depends on system state by hand will
+ most likely yield different results depending on where (machine,
+ directory, user environment, etc.) it is run. Isolation has been moved
+ to atf-run.
+
+* Test programs no longer print a cryptic format (application/X-atf-tcs)
+ on a special file channel. They can now print whatever they want on the
+ screen. Because test programs can now only run one test case every time,
+ providing controlled output is not necessary any more.
+
+* Test programs no longer write their status into a special file
+ descriptor. Instead, they create a file with the results, which is later
+ parsed by atf-run. This changes the semantics of the -r flag.
+
+* atf-run has been adjusted to perform the test case isolation. As a
+ result, there is now a single canonical place that implements the
+ isolation of test caes. In previous releases, the three language
+ bindings (C, C++ and shell) had to be kept in sync with each other (read:
+ not a nice thing to do at all). As a side effect of this change, writing
+ bindings for other languages will be much, much easier from now on.
+
+* atf-run forks test programs on a test case basis, instead of on a test
+ program basis as it did before. This is to provide the test case
+ isolation that was before implemented by the test programs themselves.
+
+* Removed the atf-exec tool. This was used to implement test case
+ isolation in atf-sh, but it is now unnecessary.
+
+* It is now optional to define the descr meta-data property. It has been
+ proven to be mostly useless, because test cases often carry a descriptive
+ name of their own.
+
+
+## Changes in version 0.7
+
+Experimental version released on December 22nd, 2009.
+
+* Added build-time checks to atf-c and atf-c++. A binding for atf-sh
+ will come later.
+
+* Migrated all build-time checks for header files to proper ATF tests.
+ This demonstrates the use of the new feature described above.
+
+* Added an internal API for child process management.
+
+* Converted all plain-text distribution documents to a Docbook canonical
+ version, and include pre-generated plain text and HTML copies in the
+ distribution file.
+
+* Simplified the contents of the Makefile.am by regenerating it from a
+ canonical Makefile.am.m4 source. As a side-effect, some dependency
+ specifications were fixed.
+
+* Migrated all checks from the check target to installcheck, as these
+ require ATF to be installed.
+
+* Fixed sign comparison mismatches triggered by the now-enabled
+ -Wsign-compare.
+
+* Fixed many memory and object leaks.
+
+
+## Changes in version 0.6
+
+Experimental version released on January 18th, 2009.
+
+* Make atf-exec be able to kill its child process after a certain period
+ of time; this is controlled through the new -t option.
+
+* Change atf-sh to use atf-exec's -t option to control the test case's
+ timeouts, instead of doing it internally. Same behavior as before, but
+ noticeably faster.
+
+* atf-exec's -g option and atf-killpg are gone due to the previous
+ change.
+
+* Added the atf-check(1) tool, a program that executes a given command
+ and checks its exit code against a known value and allows the management
+ of stdout and stderr in multiple ways. This replaces the previous
+ atf_check function in the atf-sh library and exposes this functionality
+ to both atf-c and atf-c++.
+
+* Added the ATF_REQUIRE family of macros to the C interface. These help
+ in checking for fatal test conditions. The old ATF_CHECK macros now
+ perform non-fatal checks only. I.e. by using ATF_CHECK, the test case
+ can now continue its execution and the failures will not be reported
+ until the end of the whole run.
+
+* Extended the amount of ATF_CHECK_* C macros with new ones to provide
+ more features to the developer. These also have their corresponding
+ counterparts in the ATF_REQUIRE_* family. The new macros (listing the
+ suffixes only) are: _EQ (replaces _EQUAL), _EQ_MSG, _STREQ and
+ _STREQ_MSG.
+
+
+## Changes in version 0.5
+
+Experimental version released on May 1st, 2008.
+
+* Clauses 3 and 4 of the BSD license used by the project were dropped.
+ All the code is now under a 2-clause BSD license compatible with the GNU
+ General Public License (GPL).
+
+* Added a C-only binding so that binary test programs do not need to be
+ tied to C++ at all. This binding is now known as the atf-c library.
+
+* Renamed the C++ binding to atf-c++ for consistency with the new atf-c.
+
+* Renamed the POSIX shell binding to atf-sh for consistency with the new
+ atf-c and atf-c++.
+
+* Added a -w flag to test programs through which it is possible to
+ specify the work directory to be used. This was possible in prior
+ releases by defining the workdir configuration variable (-v workdir=...),
+ but was a conceptually incorrect mechanism.
+
+* Test programs now preserve the execution order of test cases when they
+ are given in the command line. Even those mentioned more than once are
+ executed multiple times to comply with the user's requests.
+
+
+## Changes in version 0.4
+
+Experimental version released on February 4th, 2008.
+
+* Added two new manual pages, atf-c++-api and atf-sh-api, describing the
+ C++ and POSIX shell interfaces used to write test programs.
+
+* Added a pkg-config file, useful to get the flags to build against the
+ C++ library or to easily detect the presence of ATF.
+
+* Added a way for test cases to require a specific architecture and/or
+ machine type through the new 'require.arch' and 'require.machine'
+ meta-data properties, respectively.
+
+* Added the 'timeout' property to test cases, useful to set an
+ upper-bound limit for the test's run time and thus prevent global test
+ program stalls due to the test case's misbehavior.
+
+* Added the atf-exec(1) internal utility, used to execute a command
+ after changing the process group it belongs to.
+
+* Added the atf-killpg(1) internal utility, used to kill process groups.
+
+* Multiple portability fixes. Of special interest, full support for
+ SunOS (Solaris Express Developer Edition 2007/09) using the Sun Studio 12
+ C++ compiler.
+
+* Fixed a serious bug that prevented atf-run(1) from working at all
+ under Fedora 8 x86_64. Due to the nature of the bug, other platforms
+ were likely affected too.
+
+
+## Changes in version 0.3
+
+Experimental version released on November 11th, 2007.
+
+* Added XML output support to atf-report. This is accompanied by a DTD
+ for the format's structure and sample XSLT/CSS files to post-process this
+ output and convert it to a plain HTML report.
+
+* Changed atf-run to add system information to the report it generates.
+ This is currently used by atf-report's XML output only, and is later
+ printed in the HTML reports in a nice and useful summary table. The user
+ and system administrator are allowed to tune this feature by means of
+ hooks.
+
+* Removed the test cases' 'isolated' property. This was intended to
+ avoid touching the file system at all when running the related test case,
+ but this has not been true for a long while: some control files are
+ unconditionally required for several purposes, and we cannot easily get
+ rid of them. This way we remove several critical and delicate pieces of
+ code.
+
+* Improved atf-report's CSV output format to include information about
+ test programs too.
+
+* Fixed the tests that used atf-compile to not require this tool as a
+ helper. Avoids systems without build-time utilities to skip many tests
+ that could otherwise be run. (E.g. NetBSD without the comp.tgz set
+ installed.)
+
+* Many general cleanups: Fixed many pieces of code marked as ugly and/or
+ incomplete.
+
+
+## Changes in version 0.2
+
+Experimental version released on September 20th, 2007.
+
+* Test cases now get a known umask on entry.
*** 820 LINES SKIPPED ***