1edebbb8eSjmmvMajor changes between releases Automated Testing Framework 2edebbb8eSjmmv=========================================================================== 3e2207522Sjmmv 4e2207522Sjmmv 5*940a202bSjmmvChanges in version 0.20 6*940a202bSjmmv*********************** 7*940a202bSjmmv 8*940a202bSjmmvExperimental version released on February 7th, 2014. 9*940a202bSjmmv 10*940a202bSjmmvThis is the first release without the code for the deprecated tools. If 11*940a202bSjmmvyou require such code, please fetch a copy of the 0.19 release and extract 12*940a202bSjmmvthe 'tools' directory for your own consumption. 13*940a202bSjmmv 14*940a202bSjmmv* Removed the deprecated tools. This includes atf-config, atf-report, 15*940a202bSjmmv atf-run and atf-version. 16*940a202bSjmmv 17*940a202bSjmmv 18d780102eSjmmvChanges in version 0.19 19d780102eSjmmv*********************** 20d780102eSjmmv 21d780102eSjmmvExperimental version released on February 7th, 2014. 22d780102eSjmmv 23d780102eSjmmvThis is the last release to bundle the code for the deprecated tools. 24d780102eSjmmvThe next release will drop their code and will stop worrying about 25d780102eSjmmvbackwards compatibility between the ATF libraries and what the old tools 26d780102eSjmmvmay or may not support. 27d780102eSjmmv 28d780102eSjmmvIf you still require the old tools for some reason, grab a copy of the 29d780102eSjmmv'tools' directory now. The code in this directory is standalone and 30d780102eSjmmvdoes not depend on any internal details of atf-c++ any longer. 31d780102eSjmmv 32d780102eSjmmv* Various fixes and improvements to support running as part of the FreeBSD 33d780102eSjmmv test suite. 34d780102eSjmmv 35d780102eSjmmv* Project hosting moved from Google Code (as a subproject of Kyua) to 36d780102eSjmmv GitHub (as a first-class project). The main reason for the change is 37d780102eSjmmv the suppression of binary downloads in Google Code on Jan 15th, 2014. 38d780102eSjmmv See https://github.com/jmmv/atf/ 39d780102eSjmmv 40d780102eSjmmv* Removed builtin help from atf-sh(1) and atf-check(1) for simplicity 41d780102eSjmmv reasons. In other words, their -h option is gone. 42d780102eSjmmv 43d780102eSjmmv* Moved the code of the deprecated tools into a 'tools' directory and 44d780102eSjmmv completely decoupled their code from the internals of atf-c++. The 45d780102eSjmmv reason for this is to painlessly allow a third-party to maintain a 46d780102eSjmmv copy of these tools after we delete them because upcoming changes to 47d780102eSjmmv atf-c++ would break the stale tools. 48d780102eSjmmv 49d780102eSjmmv 50d780102eSjmmvChanges in version 0.18 51d780102eSjmmv*********************** 52d780102eSjmmv 53d780102eSjmmvExperimental version released on November 16th, 2013. 54d780102eSjmmv 55d780102eSjmmv* Issue 45: Added require.memory support in atf-run for FreeBSD. 56d780102eSjmmv 57d780102eSjmmv* Fixed an issue with the handling of cin with libc++. 58d780102eSjmmv 59d780102eSjmmv* Issue 64: Fixed various mandoc formatting warnings. 60d780102eSjmmv 61d780102eSjmmv* NetBSD PR bin/48284: Made atf-check flush its progress message to 62d780102eSjmmv stdout so that an interrupted test case always shows the last message 63d780102eSjmmv being executed. 64d780102eSjmmv 65d780102eSjmmv* NetBSD PR bin/48285: Fixed atf_check examples in atf-sh-api(3). 66d780102eSjmmv 67d780102eSjmmv 680659fc67SjmmvChanges in version 0.17 690659fc67Sjmmv*********************** 700659fc67Sjmmv 710659fc67SjmmvExperimental version released on February 14th, 2013. 720659fc67Sjmmv 730659fc67Sjmmv* Added the atf_utils_cat_file, atf_utils_compare_file, 740659fc67Sjmmv atf_utils_copy_file, atf_utils_create_file, atf_utils_file_exists, 750659fc67Sjmmv atf_utils_fork, atf_utils_grep_file, atf_utils_grep_string, 760659fc67Sjmmv atf_utils_readline, atf_utils_redirect and atf_utils_wait utility 770659fc67Sjmmv functions to atf-c-api. Documented the already-public 780659fc67Sjmmv atf_utils_free_charpp function. 790659fc67Sjmmv 800659fc67Sjmmv* Added the cat_file, compare_file, copy_file, create_file, file_exists, 810659fc67Sjmmv fork, grep_collection, grep_file, grep_string, redirect and wait 820659fc67Sjmmv functions to the atf::utils namespace of atf-c++-api. These are 830659fc67Sjmmv wrappers around the same functions added to the atf-c-api library. 840659fc67Sjmmv 850659fc67Sjmmv* Added the ATF_CHECK_MATCH, ATF_CHECK_MATCH_MSG, ATF_REQUIRE_MATCH and 860659fc67Sjmmv ATF_REQUIRE_MATCH_MSG macros to atf-c to simplify the validation of a 870659fc67Sjmmv string against a regular expression. 880659fc67Sjmmv 890659fc67Sjmmv* Miscellaneous fixes for manpage typos and compilation problems with 900659fc67Sjmmv clang. 910659fc67Sjmmv 920659fc67Sjmmv* Added caching of the results of those configure tests that rely on 930659fc67Sjmmv executing a test program. This should help crossbuild systems by 940659fc67Sjmmv providing a mechanism to pre-specify what the results should be. 950659fc67Sjmmv 960659fc67Sjmmv* PR bin/45690: Make atf-report convert any non-printable characters to 970659fc67Sjmmv a plain-text representation (matching their corresponding hexadecimal 980659fc67Sjmmv entities) in XML output files. This is to prevent the output of test 990659fc67Sjmmv cases from breaking xsltproc later. 1000659fc67Sjmmv 1010659fc67Sjmmv 1024e036686SjmmvChanges in version 0.16 1034e036686Sjmmv*********************** 1044e036686Sjmmv 1054e036686SjmmvExperimental version released on July 10th, 2012. 1064e036686Sjmmv 1074e036686Sjmmv* Added a --enable-tools flag to configure to request the build of the 1084e036686Sjmmv deprecated ATF tools, whose build is now disabled by default. In order 1094e036686Sjmmv to continue running tests, you should migrate to Kyua instead of enabling 1104e036686Sjmmv the build of the deprecated tools. The kyua-atf-compat package provides 1114e036686Sjmmv transitional compatibility versions of atf-run and atf-report built on 1124e036686Sjmmv top of Kyua. 1134e036686Sjmmv 1144e036686Sjmmv* Tweaked the ATF_TEST_CASE macro of atf-c++ so that the compiler can 1154e036686Sjmmv detect defined but unused test cases. 1164e036686Sjmmv 1174e036686Sjmmv* PR bin/45859: Fixed some XSLT bugs that resulted in the tc-time and 1184e036686Sjmmv tp-time XML tags leaking into the generated HTML file. Also improved 1194e036686Sjmmv the CSS file slightly to correct alignment and color issues with the 1204e036686Sjmmv timestamps column. 1214e036686Sjmmv 1224e036686Sjmmv* Optimized atf-c++/macros.hpp so that GNU G++ consumes less memory during 1234e036686Sjmmv compilation with GNU G++. 1244e036686Sjmmv 1254e036686Sjmmv* Flipped the default to building shared libraries for atf-c and atf-c++, 1264e036686Sjmmv and started versioning them. As a side-effect, this removes the 1274e036686Sjmmv --enable-unstable-shared flag from configure that appears to not work any 1284e036686Sjmmv more (under NetBSD). Additionally, some distributions require the use of 1294e036686Sjmmv shared libraries for proper dependency tracking (e.g. Fedora), so it is 1304e036686Sjmmv better if we do the right versioning upstream. 1314e036686Sjmmv 1324e036686Sjmmv* Project hosting moved from an adhoc solution (custom web site and 1334e036686Sjmmv Monotone repository) to Google Code (standard wiki and Git). ATF now 1344e036686Sjmmv lives in a subcomponent of the Kyua project. 1354e036686Sjmmv 1364e036686Sjmmv 137a551a20fSjmmvChanges in version 0.15 138a551a20fSjmmv*********************** 139a551a20fSjmmv 140a551a20fSjmmvExperimental version released on January 16th, 2012. 141a551a20fSjmmv 142a551a20fSjmmv* Respect stdin in atf-check. The previous release silenced stdin for any 143a551a20fSjmmv processes spawned by atf, not only test programs, which caused breakage 144a551a20fSjmmv in tests that pipe data through atf-check. 145a551a20fSjmmv 146a551a20fSjmmv* Performance improvements to atf-sh. 147a551a20fSjmmv 148a551a20fSjmmv* Enabled detection of unused parameters and variables in the code and 149a551a20fSjmmv fixed all warnings. 150a551a20fSjmmv 151a551a20fSjmmv* Changed the behavior of "developer mode". Compiler warnings are now 152a551a20fSjmmv enabled unconditionally regardless of whether we are in developer mode or 153a551a20fSjmmv not; developer mode is now only used to perform strict warning checks and 154a551a20fSjmmv to enable assertions. Additionally, developer mode is now only 155a551a20fSjmmv automatically enabled when building from the repository, not for formal 156a551a20fSjmmv releases. 157a551a20fSjmmv 158a551a20fSjmmv* Added new Autoconf M4 macros (ATF_ARG_WITH, ATF_CHECK_C and 159a551a20fSjmmv ATF_CHECK_CXX) to provide a consistent way of defining a --with-arg flag 160a551a20fSjmmv in configure scripts and detecting the presence of any of the ATF 161a551a20fSjmmv bindings. Note that ATF_CHECK_SH was already introduced in 0.14, but it 162a551a20fSjmmv has now been modified to also honor --with-atf if instantiated. 163a551a20fSjmmv 164a551a20fSjmmv* Added timing support to atf-run / atf-report. 165a551a20fSjmmv 166a551a20fSjmmv* Added support for a 'require.memory' property, to specify the minimum 167a551a20fSjmmv amount of physical memory needed by the test case to yield valid results. 168a551a20fSjmmv 169a551a20fSjmmv* PR bin/45690: Force an ISO-8859-1 encoding in the XML files generated by 170a551a20fSjmmv atf-report so that invalid data in the output of test cases does not 171a551a20fSjmmv mangle our report. 172a551a20fSjmmv 173a551a20fSjmmv 1745055cfd6SjmmvChanges in version 0.14 1755055cfd6Sjmmv*********************** 1765055cfd6Sjmmv 1775055cfd6SjmmvExperimental version released on June 14th, 2011. 1785055cfd6Sjmmv 1795055cfd6Sjmmv* Added a pkg-config file for atf-sh and an aclocal file to ease the 1805055cfd6Sjmmv detection of atf-sh from autoconf scripts. 1815055cfd6Sjmmv 1825055cfd6Sjmmv* Made the default test case body defined by atf_sh fail. This is to 1835055cfd6Sjmmv ensure that test cases are properly defined in test programs and helps 1845055cfd6Sjmmv in catching typos in the names of the body functions. 1855055cfd6Sjmmv 1865055cfd6Sjmmv* PR bin/44882: Made atf-run connect the stdin of test cases to /dev/zero. 1875055cfd6Sjmmv This provides more consistent results with "normal" execution (in 1885055cfd6Sjmmv particular, when tests are executed detached from a terminal). 1895055cfd6Sjmmv 1905055cfd6Sjmmv* Made atf-run hardcode TZ=UTC for test cases. It used to undefine TZ, but 1915055cfd6Sjmmv that does not take into account that libc determines the current timezone 1925055cfd6Sjmmv from a configuration file. 1935055cfd6Sjmmv 1945055cfd6Sjmmv* All test programs will now print a warning when they are not run through 1955055cfd6Sjmmv atf-run(1) stating that this is unsupported and may deliver incorrect 1965055cfd6Sjmmv results. 1975055cfd6Sjmmv 1985055cfd6Sjmmv* Added support for the 'require.files' test-case property. This allows 1995055cfd6Sjmmv test cases to specify installed files that must be present for the test 2005055cfd6Sjmmv case to run. 2015055cfd6Sjmmv 2025055cfd6Sjmmv 203eb215e31SjmmvChanges in version 0.13 204eb215e31Sjmmv*********************** 205eb215e31Sjmmv 206eb215e31SjmmvExperimental version released on March 31st, 2011. 207eb215e31Sjmmv 208eb215e31SjmmvThis is the first release after the creation of the Kyua project, a more 209eb215e31Sjmmvmodular and reliable replacement for ATF. From now on, ATF will change to 210eb215e31Sjmmvaccomodate the transition to this new codebase, but ATF will still continue 211eb215e31Sjmmvto see development in the short/medium term. Check out the project page at 212eb215e31Sjmmvhttp://code.google.com/p/kyua/ for more details. 213eb215e31Sjmmv 214eb215e31SjmmvThe changes in this release are: 215eb215e31Sjmmv 216eb215e31Sjmmv* Added support to run the tests with the Kyua runtime engine (kyua-cli), a 217eb215e31Sjmmv new package that aims to replace atf-run and atf-report. The ATF tests 218eb215e31Sjmmv can be run with the new system by issuing a 'make installcheck-kyua' from 219eb215e31Sjmmv the top-level directory of the project (assuming the 'kyua' binary is 220eb215e31Sjmmv available during the configuration stage of ATF). 221eb215e31Sjmmv 222eb215e31Sjmmv* atf-run and atf-report are now in maintenance mode (but *not* deprecated 223eb215e31Sjmmv yet!). Kyua already implements a new, much more reliable runtime engine 224eb215e31Sjmmv that provides similar features to these tools. That said, it is not 225eb215e31Sjmmv complete yet so all development efforts should go towards it. 226eb215e31Sjmmv 227eb215e31Sjmmv* If GDB is installed, atf-run dumps the stack trace of crashing test 228eb215e31Sjmmv programs in an attempt to aid debugging. Contributed by Antti Kantee. 229eb215e31Sjmmv 230eb215e31Sjmmv* Reverted default timeout change in previous release and reset its value 231eb215e31Sjmmv to 5 minutes. This was causing several issues, specially when running 232eb215e31Sjmmv the existing NetBSD test suite in qemu. 233eb215e31Sjmmv 234eb215e31Sjmmv* Fixed the 'match' output checker in atf-check to properly validate the 235eb215e31Sjmmv last line of a file even if it does not have a newline. 236eb215e31Sjmmv 237eb215e31Sjmmv* Added the ATF_REQUIRE_IN and ATF_REQUIRE_NOT_IN macros to atf-c++ to 238eb215e31Sjmmv check for the presence (or lack thereof) of an element in a collection. 239eb215e31Sjmmv 240eb215e31Sjmmv* PR bin/44176: Fixed a race condition in atf-run that would crash atf-run 241eb215e31Sjmmv when the cleanup of a test case triggered asynchronous modifications to 242eb215e31Sjmmv its work directory (e.g. killing a daemon process that cleans up a pid 243eb215e31Sjmmv file in the work directory). 244eb215e31Sjmmv 245eb215e31Sjmmv* PR bin/44301: Fixed the sample XSLT file to report bogus test programs 246eb215e31Sjmmv instead of just listing them as having 0 test cases. 247eb215e31Sjmmv 248eb215e31Sjmmv 2490ebb519dSjmmvChanges in version 0.12 2500ebb519dSjmmv*********************** 2510ebb519dSjmmv 2520ebb519dSjmmvExperimental version released on November 7th, 2010. 2530ebb519dSjmmv 2540ebb519dSjmmv* Added the ATF_REQUIRE_THROW_RE to atf-c++, which is the same as 2550ebb519dSjmmv ATF_REQUIRE_THROW but allows checking for the validity of the exception's 2560ebb519dSjmmv error message by means of a regular expression. 2570ebb519dSjmmv 2580ebb519dSjmmv* Added the ATF_REQUIRE_MATCH to atf-c++, which allows checking for a 2590ebb519dSjmmv regular expression match in a string. 2600ebb519dSjmmv 2610ebb519dSjmmv* Changed the default timeout for test cases from 5 minutes to 30 seconds. 2620ebb519dSjmmv 30 seconds is long enough for virtually all tests to complete, and 5 2630ebb519dSjmmv minutes is a way too long pause in a test suite where a single test case 2640ebb519dSjmmv stalls. 2650ebb519dSjmmv 2660ebb519dSjmmv* Deprecated the use.fs property. While this seemed like a good idea in 2670ebb519dSjmmv the first place to impose more control on what test cases can do, it 2680ebb519dSjmmv turns out to be bad. First, use.fs=false prevents bogus test cases 2690ebb519dSjmmv from dumping core so after-the-fact debugging is harder. Second, 2700ebb519dSjmmv supporting use.fs adds a lot of unnecessary complexity. atf-run will 2710ebb519dSjmmv now ignore any value provided to use.fs and will allow test cases to 2720ebb519dSjmmv freely access the file system if they wish to. 2730ebb519dSjmmv 2740ebb519dSjmmv* Added the atf_tc_get_config_var_as_{bool,long}{,_wd} functions to the atf-c 2750ebb519dSjmmv library. The 'text' module became private in 0.11 but was being used 2760ebb519dSjmmv externally to simplify the parsing of configuration variables. 2770ebb519dSjmmv 2780ebb519dSjmmv* Made atf-run recognize the 'unprivileged-user' configuration variable 2790ebb519dSjmmv and automatically drop root privileges when a test case sets 2800ebb519dSjmmv require.user=unprivileged. Note that this is, by no means, done for 2810ebb519dSjmmv security purposes; this is just for user convenience; tests should, in 2820ebb519dSjmmv general, not be blindly run as root in the first place. 2830ebb519dSjmmv 2840ebb519dSjmmv 285895f502bSjmmvChanges in version 0.11 286895f502bSjmmv*********************** 287895f502bSjmmv 288895f502bSjmmvExperimental version released on October 20th, 2010. 289895f502bSjmmv 290895f502bSjmmv* The ATF_CHECK* macros in atf-c++ were renamed to ATF_REQUIRE* to match 291895f502bSjmmv their counterparts in atf-c. 292895f502bSjmmv 293895f502bSjmmv* Clearly separated the modules in atf-c that are supposed to be public 294895f502bSjmmv from those that are implementation details. The header files for the 295895f502bSjmmv internal modules are not installed any more. 296895f502bSjmmv 297895f502bSjmmv* Made the atf-check tool private. It is only required by atf-sh and being 298895f502bSjmmv public has the danger of causing confusion. Also, making it private 299895f502bSjmmv simplifies the public API of atf. 300895f502bSjmmv 301895f502bSjmmv* Changed atf-sh to enable per-command error checking (set -e) by default. 302895f502bSjmmv This catches many cases in which a test case is broken but it is not 303895f502bSjmmv reported as such because execution continues. 304895f502bSjmmv 305895f502bSjmmv* Fixed the XSTL and CSS stylesheets to support expected failures. 306895f502bSjmmv 307895f502bSjmmv 308edebbb8eSjmmvChanges in version 0.10 309edebbb8eSjmmv*********************** 310e2207522Sjmmv 311edebbb8eSjmmvExperimental version released on July 2nd, 2010. 312e2207522Sjmmv 313edebbb8eSjmmvMiscellaneous features 31412aa0b5aSjmmv 315edebbb8eSjmmv* Added expected failures support to test cases and atf-run. These 316edebbb8eSjmmv include, for example, expected clean exits, expected reception of fatal 317edebbb8eSjmmv signals, expected timeouts and expected errors in condition checks. 318edebbb8eSjmmv These statuses can be used to denote test cases that are known to fail 319edebbb8eSjmmv due to a bug in the code they are testing. atf-report reports these 320edebbb8eSjmmv tests separately but they do not count towards the failed test cases 321edebbb8eSjmmv amount. 32212aa0b5aSjmmv 323edebbb8eSjmmv* Added the ATF_CHECK_ERRNO and ATF_REQUIRE_ERRNO to the C library to 324edebbb8eSjmmv allow easy checking of call failures that update errno. 32512aa0b5aSjmmv 326edebbb8eSjmmv* Added the has.cleanup meta-data property to test caes that specifies 327edebbb8eSjmmv whether the test case has a cleanup routine or not; its value is 328edebbb8eSjmmv automatically set. This property is read by atf-run to know if it has to 329edebbb8eSjmmv run the cleanup routine; skipping this run for every test case 330edebbb8eSjmmv significantly speeds up the run time of test suites. 33112aa0b5aSjmmv 332edebbb8eSjmmv* Reversed the order of the ATF_CHECK_THROW macro in the C++ binding to 333edebbb8eSjmmv take the expected exception as the first argument and the statement to 334edebbb8eSjmmv execute as the second argument. 33512aa0b5aSjmmv 336edebbb8eSjmmvChanges in atf-check 337407d7761Sjmmv 338edebbb8eSjmmv* Changed atf-check to support negating the status and output checks by 339edebbb8eSjmmv prefixing them with not- and added support to specify multiple checkers 340edebbb8eSjmmv for stdout and stderr, not only one. 3419b3149ccSjmmv 342edebbb8eSjmmv* Added the match output checker to atf-check to look for regular 343edebbb8eSjmmv expressions in the stdout and stderr of commands. 344edebbb8eSjmmv 345edebbb8eSjmmv* Modified the exit checks in atf-check to support checking for the 346edebbb8eSjmmv reception of signals. 347edebbb8eSjmmv 348edebbb8eSjmmvCode simplifications and cleanups 349edebbb8eSjmmv 350edebbb8eSjmmv* Removed usage messages from test programs to simplify the 351edebbb8eSjmmv implementation of every binding by a significant amount. They just now 352edebbb8eSjmmv refer the user to the appropriate manual page and do not attempt to wrap 353edebbb8eSjmmv lines on terminal boundaries. Test programs are not supposed to be run 354edebbb8eSjmmv by users directly so this minor interface regression is not important. 355edebbb8eSjmmv 356edebbb8eSjmmv* Removed the atf-format internal utility, which is unused after the 357edebbb8eSjmmv change documented above. 358edebbb8eSjmmv 359edebbb8eSjmmv* Removed the atf-cleanup internal utility. It has been unused since the 360edebbb8eSjmmv test case isolation was moved to atf-run in 0.8 361edebbb8eSjmmv 362edebbb8eSjmmv* Splitted the Makefile.am into smaller files for easier maintenance and 363edebbb8eSjmmv dropped the use of M4. Only affects users building from the repository 364edebbb8eSjmmv sources. 365edebbb8eSjmmv 366edebbb8eSjmmv* Intermixed tests with the source files in the source tree to provide 367edebbb8eSjmmv them more visibility and easier access. The tests directory is gone from 368edebbb8eSjmmv the source tree and tests are now suffixed by _test, not prefixed by t_. 369edebbb8eSjmmv 370edebbb8eSjmmv* Simplifications to the atf-c library: removed the io, tcr and ui 371edebbb8eSjmmv modules as they had become unnecessary after all simplifications 372edebbb8eSjmmv introduced since the 0.8 release. 373edebbb8eSjmmv 374edebbb8eSjmmv* Removed the application/X-atf-tcr format introduced in 0.8 release. 375edebbb8eSjmmv Tests now print a much simplified format that is easy to parse and nicer 376edebbb8eSjmmv to read by end users. As a side effect, the default for test cases is 377edebbb8eSjmmv now to print their results to stdout unless otherwise stated by providing 378edebbb8eSjmmv the -r flag. 379edebbb8eSjmmv 380edebbb8eSjmmv* Removed XML distribution documents and replaced them with plain-text 381edebbb8eSjmmv documents. They provided little value and introduced a lot of complexity 382edebbb8eSjmmv to the build system. 383edebbb8eSjmmv 384edebbb8eSjmmv* Simplified the output of atf-version by not attempting to print a 385edebbb8eSjmmv revision number when building form a distfile. Makes the build system 386edebbb8eSjmmv easier to maintain. 387edebbb8eSjmmv 3889b3149ccSjmmv 3899b3149ccSjmmvChanges in version 0.9 390edebbb8eSjmmv********************** 3919b3149ccSjmmv 3929b3149ccSjmmvExperimental version released on June 3rd, 2010. 3939b3149ccSjmmv 3949b3149ccSjmmv* Added atf-sh, an interpreter to process test programs written using 395edebbb8eSjmmv the shell API. This is not really a shell interpreter by itself though: 396edebbb8eSjmmv it is just a wrapper around the system shell that eases the loading of 397edebbb8eSjmmv the necessary ATF libraries. 3989b3149ccSjmmv 3999b3149ccSjmmv* Removed atf-compile in favour of atf-sh. 4009b3149ccSjmmv 4019b3149ccSjmmv* Added the use.fs metadata property to test case, which is used to 4029b3149ccSjmmv specify which test cases require file system access. This is to 403edebbb8eSjmmv highlight dependencies on external resources more clearly and to speed up 404edebbb8eSjmmv the execution of test suites by skipping the creation of many unnecessary 405edebbb8eSjmmv work directories. 4069b3149ccSjmmv 4079b3149ccSjmmv* Fixed test programs to get a sane default value for their source 4089b3149ccSjmmv directory. This means that it should not be necessary any more to pass 409edebbb8eSjmmv -s when running test programs that do not live in the current directory. 4109b3149ccSjmmv 4119b3149ccSjmmv* Defining test case headers became optional. This is trivial to achieve 4129b3149ccSjmmv in shell-based tests but a bit ugly in C and C++. In C, use the new 4139b3149ccSjmmv ATF_TC_WITHOUT_HEAD macro to define the test case, and in C++ use 4149b3149ccSjmmv ATF_TEST_CASE_WITHOUT_HEAD. 415407d7761Sjmmv 416edebbb8eSjmmv 417407d7761SjmmvChanges in version 0.8 418edebbb8eSjmmv********************** 419407d7761Sjmmv 420407d7761SjmmvExperimental version released on May 7th, 2010. 421407d7761Sjmmv 422407d7761Sjmmv* Test programs no longer run several test cases in a row. The execution 423407d7761Sjmmv of a test program now requires a test case name, and that single test 424edebbb8eSjmmv case is executed. To execute several test cases, use the atf-run utility 425edebbb8eSjmmv as usual. 426407d7761Sjmmv 427407d7761Sjmmv* Test programs no longer fork a subprocess to isolate the execution of 428407d7761Sjmmv test cases. They run the test case code in-process, and a crash of the 429407d7761Sjmmv test case will result in a crash of the test program. This is to ease 430407d7761Sjmmv debugging of faulty test cases. 431407d7761Sjmmv 432407d7761Sjmmv* Test programs no longer isolate their test cases. This means that they 433407d7761Sjmmv will not create temporary directories nor sanitize the environment any 434edebbb8eSjmmv more. Yes: running a test case that depends on system state by hand will 435edebbb8eSjmmv most likely yield different results depending on where (machine, 436407d7761Sjmmv directory, user environment, etc.) it is run. Isolation has been moved 437407d7761Sjmmv to atf-run. 438407d7761Sjmmv 439407d7761Sjmmv* Test programs no longer print a cryptic format (application/X-atf-tcs) 440edebbb8eSjmmv on a special file channel. They can now print whatever they want on the 441edebbb8eSjmmv screen. Because test programs can now only run one test case every time, 442edebbb8eSjmmv providing controlled output is not necessary any more. 443407d7761Sjmmv 444407d7761Sjmmv* Test programs no longer write their status into a special file 445edebbb8eSjmmv descriptor. Instead, they create a file with the results, which is later 446edebbb8eSjmmv parsed by atf-run. This changes the semantics of the -r flag. 447407d7761Sjmmv 448407d7761Sjmmv* atf-run has been adjusted to perform the test case isolation. As a 449407d7761Sjmmv result, there is now a single canonical place that implements the 450407d7761Sjmmv isolation of test caes. In previous releases, the three language 451edebbb8eSjmmv bindings (C, C++ and shell) had to be kept in sync with each other (read: 452edebbb8eSjmmv not a nice thing to do at all). As a side effect of this change, writing 453edebbb8eSjmmv bindings for other languages will be much, much easier from now on. 454407d7761Sjmmv 455407d7761Sjmmv* atf-run forks test programs on a test case basis, instead of on a test 456407d7761Sjmmv program basis as it did before. This is to provide the test case 457407d7761Sjmmv isolation that was before implemented by the test programs themselves. 458407d7761Sjmmv 459407d7761Sjmmv* Removed the atf-exec tool. This was used to implement test case 460407d7761Sjmmv isolation in atf-sh, but it is now unnecessary. 461407d7761Sjmmv 462407d7761Sjmmv* It is now optional to define the descr meta-data property. It has been 463edebbb8eSjmmv proven to be mostly useless, because test cases often carry a descriptive 464edebbb8eSjmmv name of their own. 465edebbb8eSjmmv 46612aa0b5aSjmmv 46712aa0b5aSjmmvChanges in version 0.7 468edebbb8eSjmmv********************** 46912aa0b5aSjmmv 47012aa0b5aSjmmvExperimental version released on December 22nd, 2009. 47112aa0b5aSjmmv 47212aa0b5aSjmmv* Added build-time checks to atf-c and atf-c++. A binding for atf-sh 47312aa0b5aSjmmv will come later. 47412aa0b5aSjmmv 47512aa0b5aSjmmv* Migrated all build-time checks for header files to proper ATF tests. 47612aa0b5aSjmmv This demonstrates the use of the new feature described above. 47712aa0b5aSjmmv 47812aa0b5aSjmmv* Added an internal API for child process management. 47912aa0b5aSjmmv 48012aa0b5aSjmmv* Converted all plain-text distribution documents to a Docbook canonical 48112aa0b5aSjmmv version, and include pre-generated plain text and HTML copies in the 48212aa0b5aSjmmv distribution file. 48312aa0b5aSjmmv 48412aa0b5aSjmmv* Simplified the contents of the Makefile.am by regenerating it from a 48512aa0b5aSjmmv canonical Makefile.am.m4 source. As a side-effect, some dependency 48612aa0b5aSjmmv specifications were fixed. 48712aa0b5aSjmmv 48812aa0b5aSjmmv* Migrated all checks from the check target to installcheck, as these 48912aa0b5aSjmmv require ATF to be installed. 49012aa0b5aSjmmv 49112aa0b5aSjmmv* Fixed sign comparison mismatches triggered by the now-enabled 49212aa0b5aSjmmv -Wsign-compare. 49312aa0b5aSjmmv 49412aa0b5aSjmmv* Fixed many memory and object leaks. 49512aa0b5aSjmmv 496edebbb8eSjmmv 49712aa0b5aSjmmvChanges in version 0.6 498edebbb8eSjmmv********************** 49912aa0b5aSjmmv 50012aa0b5aSjmmvExperimental version released on January 18th, 2009. 50112aa0b5aSjmmv 50212aa0b5aSjmmv* Make atf-exec be able to kill its child process after a certain period 50312aa0b5aSjmmv of time; this is controlled through the new -t option. 504e2207522Sjmmv 505e2207522Sjmmv* Change atf-sh to use atf-exec's -t option to control the test case's 506e2207522Sjmmv timeouts, instead of doing it internally. Same behavior as before, but 507e2207522Sjmmv noticeably faster. 508e2207522Sjmmv 50912aa0b5aSjmmv* atf-exec's -g option and atf-killpg are gone due to the previous 51012aa0b5aSjmmv change. 511e2207522Sjmmv 51212aa0b5aSjmmv* Added the atf-check(1) tool, a program that executes a given command 513edebbb8eSjmmv and checks its exit code against a known value and allows the management 514edebbb8eSjmmv of stdout and stderr in multiple ways. This replaces the previous 515edebbb8eSjmmv atf_check function in the atf-sh library and exposes this functionality 516edebbb8eSjmmv to both atf-c and atf-c++. 517e2207522Sjmmv 518e2207522Sjmmv* Added the ATF_REQUIRE family of macros to the C interface. These help 519e2207522Sjmmv in checking for fatal test conditions. The old ATF_CHECK macros now 520e2207522Sjmmv perform non-fatal checks only. I.e. by using ATF_CHECK, the test case 521e2207522Sjmmv can now continue its execution and the failures will not be reported 522e2207522Sjmmv until the end of the whole run. 523e2207522Sjmmv 52412aa0b5aSjmmv* Extended the amount of ATF_CHECK_* C macros with new ones to provide 52512aa0b5aSjmmv more features to the developer. These also have their corresponding 526e2207522Sjmmv counterparts in the ATF_REQUIRE_* family. The new macros (listing the 527e2207522Sjmmv suffixes only) are: _EQ (replaces _EQUAL), _EQ_MSG, _STREQ and 528e2207522Sjmmv _STREQ_MSG. 529e2207522Sjmmv 530edebbb8eSjmmv 53112aa0b5aSjmmvChanges in version 0.5 532edebbb8eSjmmv********************** 533e2207522Sjmmv 53412aa0b5aSjmmvExperimental version released on May 1st, 2008. 535e2207522Sjmmv 536e2207522Sjmmv* Clauses 3 and 4 of the BSD license used by the project were dropped. 537edebbb8eSjmmv All the code is now under a 2-clause BSD license compatible with the GNU 538edebbb8eSjmmv General Public License (GPL). 539e2207522Sjmmv 540e2207522Sjmmv* Added a C-only binding so that binary test programs do not need to be 541e2207522Sjmmv tied to C++ at all. This binding is now known as the atf-c library. 542e2207522Sjmmv 543e2207522Sjmmv* Renamed the C++ binding to atf-c++ for consistency with the new atf-c. 544e2207522Sjmmv 545e2207522Sjmmv* Renamed the POSIX shell binding to atf-sh for consistency with the new 546e2207522Sjmmv atf-c and atf-c++. 547e2207522Sjmmv 54812aa0b5aSjmmv* Added a -w flag to test programs through which it is possible to 54912aa0b5aSjmmv specify the work directory to be used. This was possible in prior 550edebbb8eSjmmv releases by defining the workdir configuration variable (-v workdir=...), 551edebbb8eSjmmv but was a conceptually incorrect mechanism. 552e2207522Sjmmv 553e2207522Sjmmv* Test programs now preserve the execution order of test cases when they 554e2207522Sjmmv are given in the command line. Even those mentioned more than once are 555e2207522Sjmmv executed multiple times to comply with the user's requests. 556e2207522Sjmmv 557edebbb8eSjmmv 55812aa0b5aSjmmvChanges in version 0.4 559edebbb8eSjmmv********************** 560e2207522Sjmmv 56112aa0b5aSjmmvExperimental version released on February 4th, 2008. 562e2207522Sjmmv 563e2207522Sjmmv* Added two new manual pages, atf-c++-api and atf-sh-api, describing the 564e2207522Sjmmv C++ and POSIX shell interfaces used to write test programs. 565e2207522Sjmmv 566e2207522Sjmmv* Added a pkg-config file, useful to get the flags to build against the 567e2207522Sjmmv C++ library or to easily detect the presence of ATF. 568e2207522Sjmmv 569e2207522Sjmmv* Added a way for test cases to require a specific architecture and/or 570e2207522Sjmmv machine type through the new 'require.arch' and 'require.machine' 571e2207522Sjmmv meta-data properties, respectively. 572e2207522Sjmmv 57312aa0b5aSjmmv* Added the 'timeout' property to test cases, useful to set an 57412aa0b5aSjmmv upper-bound limit for the test's run time and thus prevent global test 57512aa0b5aSjmmv program stalls due to the test case's misbehavior. 576e2207522Sjmmv 57712aa0b5aSjmmv* Added the atf-exec(1) internal utility, used to execute a command 57812aa0b5aSjmmv after changing the process group it belongs to. 579e2207522Sjmmv 580e2207522Sjmmv* Added the atf-killpg(1) internal utility, used to kill process groups. 581e2207522Sjmmv 58212aa0b5aSjmmv* Multiple portability fixes. Of special interest, full support for 583edebbb8eSjmmv SunOS (Solaris Express Developer Edition 2007/09) using the Sun Studio 12 584edebbb8eSjmmv C++ compiler. 585e2207522Sjmmv 58612aa0b5aSjmmv* Fixed a serious bug that prevented atf-run(1) from working at all 58712aa0b5aSjmmv under Fedora 8 x86_64. Due to the nature of the bug, other platforms 58812aa0b5aSjmmv were likely affected too. 589e2207522Sjmmv 590edebbb8eSjmmv 59112aa0b5aSjmmvChanges in version 0.3 592edebbb8eSjmmv********************** 593e2207522Sjmmv 59412aa0b5aSjmmvExperimental version released on November 11th, 2007. 595e2207522Sjmmv 59612aa0b5aSjmmv* Added XML output support to atf-report. This is accompanied by a DTD 597edebbb8eSjmmv for the format's structure and sample XSLT/CSS files to post-process this 598edebbb8eSjmmv output and convert it to a plain HTML report. 599e2207522Sjmmv 600e2207522Sjmmv* Changed atf-run to add system information to the report it generates. 601e2207522Sjmmv This is currently used by atf-report's XML output only, and is later 602edebbb8eSjmmv printed in the HTML reports in a nice and useful summary table. The user 603edebbb8eSjmmv and system administrator are allowed to tune this feature by means of 604edebbb8eSjmmv hooks. 605e2207522Sjmmv 60612aa0b5aSjmmv* Removed the test cases' 'isolated' property. This was intended to 607edebbb8eSjmmv avoid touching the file system at all when running the related test case, 608edebbb8eSjmmv but this has not been true for a long while: some control files are 609edebbb8eSjmmv unconditionally required for several purposes, and we cannot easily get 610edebbb8eSjmmv rid of them. This way we remove several critical and delicate pieces of 611edebbb8eSjmmv code. 612e2207522Sjmmv 613e2207522Sjmmv* Improved atf-report's CSV output format to include information about 614e2207522Sjmmv test programs too. 615e2207522Sjmmv 616e2207522Sjmmv* Fixed the tests that used atf-compile to not require this tool as a 617e2207522Sjmmv helper. Avoids systems without build-time utilities to skip many tests 618e2207522Sjmmv that could otherwise be run. (E.g. NetBSD without the comp.tgz set 619e2207522Sjmmv installed.) 620e2207522Sjmmv 621e2207522Sjmmv* Many general cleanups: Fixed many pieces of code marked as ugly and/or 622e2207522Sjmmv incomplete. 623e2207522Sjmmv 624edebbb8eSjmmv 62512aa0b5aSjmmvChanges in version 0.2 626edebbb8eSjmmv********************** 627e2207522Sjmmv 62812aa0b5aSjmmvExperimental version released on September 20th, 2007. 629e2207522Sjmmv 630e2207522Sjmmv* Test cases now get a known umask on entry. 631e2207522Sjmmv 632edebbb8eSjmmv* atf-run now detects many unexpected failures caused by test programs and 633edebbb8eSjmmv reports them as bogus tests. atf-report is able to handle these new 634edebbb8eSjmmv errors and nicely reports them to the user. 635e2207522Sjmmv 63612aa0b5aSjmmv* All the data formats read and written by the tools have been 637edebbb8eSjmmv documented and cleaned up. These include those grammars that define how 638edebbb8eSjmmv the different components communicate with each other as well as the 639edebbb8eSjmmv format of files written by the developers and users: the Atffiles and the 640edebbb8eSjmmv configuration files. 641e2207522Sjmmv 64212aa0b5aSjmmv* Added the atf-version tool, a utility that displays information about 64312aa0b5aSjmmv the currently installed version of ATF. 644e2207522Sjmmv 645e2207522Sjmmv* Test cases can now define an optional cleanup routine to undo their 646e2207522Sjmmv actions regardless of their exit status. 647e2207522Sjmmv 64812aa0b5aSjmmv* atf-report now summarizes the list of failed (bogus) test programs 64912aa0b5aSjmmv when using the ticker output format. 650e2207522Sjmmv 651e2207522Sjmmv* Test programs now capture some termination signals and clean up any 652e2207522Sjmmv temporary files before exiting the program. 653e2207522Sjmmv 654e2207522Sjmmv* Multiple bug fixes and improvements all around. 655e2207522Sjmmv 656edebbb8eSjmmv 65712aa0b5aSjmmvChanges in version 0.1 658edebbb8eSjmmv********************** 659e2207522Sjmmv 66012aa0b5aSjmmvExperimental version released on August 20th, 2007. 661e2207522Sjmmv 662e2207522Sjmmv* First public version. This was released coinciding with the end of the 663e2207522Sjmmv Google Summer of Code 2007 program. 664edebbb8eSjmmv 665edebbb8eSjmmv 666edebbb8eSjmmv=========================================================================== 667edebbb8eSjmmvvim: filetype=text:textwidth=75:expandtab:shiftwidth=2:softtabstop=2 668