NEWS revision 1.1.1.13 1 Major changes between releases Automated Testing Framework
2 ===========================================================================
3
4
5 Changes in version 0.19
6 ***********************
7
8 Experimental version released on February 7th, 2014.
9
10 This is the last release to bundle the code for the deprecated tools.
11 The next release will drop their code and will stop worrying about
12 backwards compatibility between the ATF libraries and what the old tools
13 may or may not support.
14
15 If you still require the old tools for some reason, grab a copy of the
16 'tools' directory now. The code in this directory is standalone and
17 does not depend on any internal details of atf-c++ any longer.
18
19 * Various fixes and improvements to support running as part of the FreeBSD
20 test suite.
21
22 * Project hosting moved from Google Code (as a subproject of Kyua) to
23 GitHub (as a first-class project). The main reason for the change is
24 the suppression of binary downloads in Google Code on Jan 15th, 2014.
25 See https://github.com/jmmv/atf/
26
27 * Removed builtin help from atf-sh(1) and atf-check(1) for simplicity
28 reasons. In other words, their -h option is gone.
29
30 * Moved the code of the deprecated tools into a 'tools' directory and
31 completely decoupled their code from the internals of atf-c++. The
32 reason for this is to painlessly allow a third-party to maintain a
33 copy of these tools after we delete them because upcoming changes to
34 atf-c++ would break the stale tools.
35
36
37 Changes in version 0.18
38 ***********************
39
40 Experimental version released on November 16th, 2013.
41
42 * Issue 45: Added require.memory support in atf-run for FreeBSD.
43
44 * Fixed an issue with the handling of cin with libc++.
45
46 * Issue 64: Fixed various mandoc formatting warnings.
47
48 * NetBSD PR bin/48284: Made atf-check flush its progress message to
49 stdout so that an interrupted test case always shows the last message
50 being executed.
51
52 * NetBSD PR bin/48285: Fixed atf_check examples in atf-sh-api(3).
53
54
55 Changes in version 0.17
56 ***********************
57
58 Experimental version released on February 14th, 2013.
59
60 * Added the atf_utils_cat_file, atf_utils_compare_file,
61 atf_utils_copy_file, atf_utils_create_file, atf_utils_file_exists,
62 atf_utils_fork, atf_utils_grep_file, atf_utils_grep_string,
63 atf_utils_readline, atf_utils_redirect and atf_utils_wait utility
64 functions to atf-c-api. Documented the already-public
65 atf_utils_free_charpp function.
66
67 * Added the cat_file, compare_file, copy_file, create_file, file_exists,
68 fork, grep_collection, grep_file, grep_string, redirect and wait
69 functions to the atf::utils namespace of atf-c++-api. These are
70 wrappers around the same functions added to the atf-c-api library.
71
72 * Added the ATF_CHECK_MATCH, ATF_CHECK_MATCH_MSG, ATF_REQUIRE_MATCH and
73 ATF_REQUIRE_MATCH_MSG macros to atf-c to simplify the validation of a
74 string against a regular expression.
75
76 * Miscellaneous fixes for manpage typos and compilation problems with
77 clang.
78
79 * Added caching of the results of those configure tests that rely on
80 executing a test program. This should help crossbuild systems by
81 providing a mechanism to pre-specify what the results should be.
82
83 * PR bin/45690: Make atf-report convert any non-printable characters to
84 a plain-text representation (matching their corresponding hexadecimal
85 entities) in XML output files. This is to prevent the output of test
86 cases from breaking xsltproc later.
87
88
89 Changes in version 0.16
90 ***********************
91
92 Experimental version released on July 10th, 2012.
93
94 * Added a --enable-tools flag to configure to request the build of the
95 deprecated ATF tools, whose build is now disabled by default. In order
96 to continue running tests, you should migrate to Kyua instead of enabling
97 the build of the deprecated tools. The kyua-atf-compat package provides
98 transitional compatibility versions of atf-run and atf-report built on
99 top of Kyua.
100
101 * Tweaked the ATF_TEST_CASE macro of atf-c++ so that the compiler can
102 detect defined but unused test cases.
103
104 * PR bin/45859: Fixed some XSLT bugs that resulted in the tc-time and
105 tp-time XML tags leaking into the generated HTML file. Also improved
106 the CSS file slightly to correct alignment and color issues with the
107 timestamps column.
108
109 * Optimized atf-c++/macros.hpp so that GNU G++ consumes less memory during
110 compilation with GNU G++.
111
112 * Flipped the default to building shared libraries for atf-c and atf-c++,
113 and started versioning them. As a side-effect, this removes the
114 --enable-unstable-shared flag from configure that appears to not work any
115 more (under NetBSD). Additionally, some distributions require the use of
116 shared libraries for proper dependency tracking (e.g. Fedora), so it is
117 better if we do the right versioning upstream.
118
119 * Project hosting moved from an adhoc solution (custom web site and
120 Monotone repository) to Google Code (standard wiki and Git). ATF now
121 lives in a subcomponent of the Kyua project.
122
123
124 Changes in version 0.15
125 ***********************
126
127 Experimental version released on January 16th, 2012.
128
129 * Respect stdin in atf-check. The previous release silenced stdin for any
130 processes spawned by atf, not only test programs, which caused breakage
131 in tests that pipe data through atf-check.
132
133 * Performance improvements to atf-sh.
134
135 * Enabled detection of unused parameters and variables in the code and
136 fixed all warnings.
137
138 * Changed the behavior of "developer mode". Compiler warnings are now
139 enabled unconditionally regardless of whether we are in developer mode or
140 not; developer mode is now only used to perform strict warning checks and
141 to enable assertions. Additionally, developer mode is now only
142 automatically enabled when building from the repository, not for formal
143 releases.
144
145 * Added new Autoconf M4 macros (ATF_ARG_WITH, ATF_CHECK_C and
146 ATF_CHECK_CXX) to provide a consistent way of defining a --with-arg flag
147 in configure scripts and detecting the presence of any of the ATF
148 bindings. Note that ATF_CHECK_SH was already introduced in 0.14, but it
149 has now been modified to also honor --with-atf if instantiated.
150
151 * Added timing support to atf-run / atf-report.
152
153 * Added support for a 'require.memory' property, to specify the minimum
154 amount of physical memory needed by the test case to yield valid results.
155
156 * PR bin/45690: Force an ISO-8859-1 encoding in the XML files generated by
157 atf-report so that invalid data in the output of test cases does not
158 mangle our report.
159
160
161 Changes in version 0.14
162 ***********************
163
164 Experimental version released on June 14th, 2011.
165
166 * Added a pkg-config file for atf-sh and an aclocal file to ease the
167 detection of atf-sh from autoconf scripts.
168
169 * Made the default test case body defined by atf_sh fail. This is to
170 ensure that test cases are properly defined in test programs and helps
171 in catching typos in the names of the body functions.
172
173 * PR bin/44882: Made atf-run connect the stdin of test cases to /dev/zero.
174 This provides more consistent results with "normal" execution (in
175 particular, when tests are executed detached from a terminal).
176
177 * Made atf-run hardcode TZ=UTC for test cases. It used to undefine TZ, but
178 that does not take into account that libc determines the current timezone
179 from a configuration file.
180
181 * All test programs will now print a warning when they are not run through
182 atf-run(1) stating that this is unsupported and may deliver incorrect
183 results.
184
185 * Added support for the 'require.files' test-case property. This allows
186 test cases to specify installed files that must be present for the test
187 case to run.
188
189
190 Changes in version 0.13
191 ***********************
192
193 Experimental version released on March 31st, 2011.
194
195 This is the first release after the creation of the Kyua project, a more
196 modular and reliable replacement for ATF. From now on, ATF will change to
197 accomodate the transition to this new codebase, but ATF will still continue
198 to see development in the short/medium term. Check out the project page at
199 http://code.google.com/p/kyua/ for more details.
200
201 The changes in this release are:
202
203 * Added support to run the tests with the Kyua runtime engine (kyua-cli), a
204 new package that aims to replace atf-run and atf-report. The ATF tests
205 can be run with the new system by issuing a 'make installcheck-kyua' from
206 the top-level directory of the project (assuming the 'kyua' binary is
207 available during the configuration stage of ATF).
208
209 * atf-run and atf-report are now in maintenance mode (but *not* deprecated
210 yet!). Kyua already implements a new, much more reliable runtime engine
211 that provides similar features to these tools. That said, it is not
212 complete yet so all development efforts should go towards it.
213
214 * If GDB is installed, atf-run dumps the stack trace of crashing test
215 programs in an attempt to aid debugging. Contributed by Antti Kantee.
216
217 * Reverted default timeout change in previous release and reset its value
218 to 5 minutes. This was causing several issues, specially when running
219 the existing NetBSD test suite in qemu.
220
221 * Fixed the 'match' output checker in atf-check to properly validate the
222 last line of a file even if it does not have a newline.
223
224 * Added the ATF_REQUIRE_IN and ATF_REQUIRE_NOT_IN macros to atf-c++ to
225 check for the presence (or lack thereof) of an element in a collection.
226
227 * PR bin/44176: Fixed a race condition in atf-run that would crash atf-run
228 when the cleanup of a test case triggered asynchronous modifications to
229 its work directory (e.g. killing a daemon process that cleans up a pid
230 file in the work directory).
231
232 * PR bin/44301: Fixed the sample XSLT file to report bogus test programs
233 instead of just listing them as having 0 test cases.
234
235
236 Changes in version 0.12
237 ***********************
238
239 Experimental version released on November 7th, 2010.
240
241 * Added the ATF_REQUIRE_THROW_RE to atf-c++, which is the same as
242 ATF_REQUIRE_THROW but allows checking for the validity of the exception's
243 error message by means of a regular expression.
244
245 * Added the ATF_REQUIRE_MATCH to atf-c++, which allows checking for a
246 regular expression match in a string.
247
248 * Changed the default timeout for test cases from 5 minutes to 30 seconds.
249 30 seconds is long enough for virtually all tests to complete, and 5
250 minutes is a way too long pause in a test suite where a single test case
251 stalls.
252
253 * Deprecated the use.fs property. While this seemed like a good idea in
254 the first place to impose more control on what test cases can do, it
255 turns out to be bad. First, use.fs=false prevents bogus test cases
256 from dumping core so after-the-fact debugging is harder. Second,
257 supporting use.fs adds a lot of unnecessary complexity. atf-run will
258 now ignore any value provided to use.fs and will allow test cases to
259 freely access the file system if they wish to.
260
261 * Added the atf_tc_get_config_var_as_{bool,long}{,_wd} functions to the atf-c
262 library. The 'text' module became private in 0.11 but was being used
263 externally to simplify the parsing of configuration variables.
264
265 * Made atf-run recognize the 'unprivileged-user' configuration variable
266 and automatically drop root privileges when a test case sets
267 require.user=unprivileged. Note that this is, by no means, done for
268 security purposes; this is just for user convenience; tests should, in
269 general, not be blindly run as root in the first place.
270
271
272 Changes in version 0.11
273 ***********************
274
275 Experimental version released on October 20th, 2010.
276
277 * The ATF_CHECK* macros in atf-c++ were renamed to ATF_REQUIRE* to match
278 their counterparts in atf-c.
279
280 * Clearly separated the modules in atf-c that are supposed to be public
281 from those that are implementation details. The header files for the
282 internal modules are not installed any more.
283
284 * Made the atf-check tool private. It is only required by atf-sh and being
285 public has the danger of causing confusion. Also, making it private
286 simplifies the public API of atf.
287
288 * Changed atf-sh to enable per-command error checking (set -e) by default.
289 This catches many cases in which a test case is broken but it is not
290 reported as such because execution continues.
291
292 * Fixed the XSTL and CSS stylesheets to support expected failures.
293
294
295 Changes in version 0.10
296 ***********************
297
298 Experimental version released on July 2nd, 2010.
299
300 Miscellaneous features
301
302 * Added expected failures support to test cases and atf-run. These
303 include, for example, expected clean exits, expected reception of fatal
304 signals, expected timeouts and expected errors in condition checks.
305 These statuses can be used to denote test cases that are known to fail
306 due to a bug in the code they are testing. atf-report reports these
307 tests separately but they do not count towards the failed test cases
308 amount.
309
310 * Added the ATF_CHECK_ERRNO and ATF_REQUIRE_ERRNO to the C library to
311 allow easy checking of call failures that update errno.
312
313 * Added the has.cleanup meta-data property to test caes that specifies
314 whether the test case has a cleanup routine or not; its value is
315 automatically set. This property is read by atf-run to know if it has to
316 run the cleanup routine; skipping this run for every test case
317 significantly speeds up the run time of test suites.
318
319 * Reversed the order of the ATF_CHECK_THROW macro in the C++ binding to
320 take the expected exception as the first argument and the statement to
321 execute as the second argument.
322
323 Changes in atf-check
324
325 * Changed atf-check to support negating the status and output checks by
326 prefixing them with not- and added support to specify multiple checkers
327 for stdout and stderr, not only one.
328
329 * Added the match output checker to atf-check to look for regular
330 expressions in the stdout and stderr of commands.
331
332 * Modified the exit checks in atf-check to support checking for the
333 reception of signals.
334
335 Code simplifications and cleanups
336
337 * Removed usage messages from test programs to simplify the
338 implementation of every binding by a significant amount. They just now
339 refer the user to the appropriate manual page and do not attempt to wrap
340 lines on terminal boundaries. Test programs are not supposed to be run
341 by users directly so this minor interface regression is not important.
342
343 * Removed the atf-format internal utility, which is unused after the
344 change documented above.
345
346 * Removed the atf-cleanup internal utility. It has been unused since the
347 test case isolation was moved to atf-run in 0.8
348
349 * Splitted the Makefile.am into smaller files for easier maintenance and
350 dropped the use of M4. Only affects users building from the repository
351 sources.
352
353 * Intermixed tests with the source files in the source tree to provide
354 them more visibility and easier access. The tests directory is gone from
355 the source tree and tests are now suffixed by _test, not prefixed by t_.
356
357 * Simplifications to the atf-c library: removed the io, tcr and ui
358 modules as they had become unnecessary after all simplifications
359 introduced since the 0.8 release.
360
361 * Removed the application/X-atf-tcr format introduced in 0.8 release.
362 Tests now print a much simplified format that is easy to parse and nicer
363 to read by end users. As a side effect, the default for test cases is
364 now to print their results to stdout unless otherwise stated by providing
365 the -r flag.
366
367 * Removed XML distribution documents and replaced them with plain-text
368 documents. They provided little value and introduced a lot of complexity
369 to the build system.
370
371 * Simplified the output of atf-version by not attempting to print a
372 revision number when building form a distfile. Makes the build system
373 easier to maintain.
374
375
376 Changes in version 0.9
377 **********************
378
379 Experimental version released on June 3rd, 2010.
380
381 * Added atf-sh, an interpreter to process test programs written using
382 the shell API. This is not really a shell interpreter by itself though:
383 it is just a wrapper around the system shell that eases the loading of
384 the necessary ATF libraries.
385
386 * Removed atf-compile in favour of atf-sh.
387
388 * Added the use.fs metadata property to test case, which is used to
389 specify which test cases require file system access. This is to
390 highlight dependencies on external resources more clearly and to speed up
391 the execution of test suites by skipping the creation of many unnecessary
392 work directories.
393
394 * Fixed test programs to get a sane default value for their source
395 directory. This means that it should not be necessary any more to pass
396 -s when running test programs that do not live in the current directory.
397
398 * Defining test case headers became optional. This is trivial to achieve
399 in shell-based tests but a bit ugly in C and C++. In C, use the new
400 ATF_TC_WITHOUT_HEAD macro to define the test case, and in C++ use
401 ATF_TEST_CASE_WITHOUT_HEAD.
402
403
404 Changes in version 0.8
405 **********************
406
407 Experimental version released on May 7th, 2010.
408
409 * Test programs no longer run several test cases in a row. The execution
410 of a test program now requires a test case name, and that single test
411 case is executed. To execute several test cases, use the atf-run utility
412 as usual.
413
414 * Test programs no longer fork a subprocess to isolate the execution of
415 test cases. They run the test case code in-process, and a crash of the
416 test case will result in a crash of the test program. This is to ease
417 debugging of faulty test cases.
418
419 * Test programs no longer isolate their test cases. This means that they
420 will not create temporary directories nor sanitize the environment any
421 more. Yes: running a test case that depends on system state by hand will
422 most likely yield different results depending on where (machine,
423 directory, user environment, etc.) it is run. Isolation has been moved
424 to atf-run.
425
426 * Test programs no longer print a cryptic format (application/X-atf-tcs)
427 on a special file channel. They can now print whatever they want on the
428 screen. Because test programs can now only run one test case every time,
429 providing controlled output is not necessary any more.
430
431 * Test programs no longer write their status into a special file
432 descriptor. Instead, they create a file with the results, which is later
433 parsed by atf-run. This changes the semantics of the -r flag.
434
435 * atf-run has been adjusted to perform the test case isolation. As a
436 result, there is now a single canonical place that implements the
437 isolation of test caes. In previous releases, the three language
438 bindings (C, C++ and shell) had to be kept in sync with each other (read:
439 not a nice thing to do at all). As a side effect of this change, writing
440 bindings for other languages will be much, much easier from now on.
441
442 * atf-run forks test programs on a test case basis, instead of on a test
443 program basis as it did before. This is to provide the test case
444 isolation that was before implemented by the test programs themselves.
445
446 * Removed the atf-exec tool. This was used to implement test case
447 isolation in atf-sh, but it is now unnecessary.
448
449 * It is now optional to define the descr meta-data property. It has been
450 proven to be mostly useless, because test cases often carry a descriptive
451 name of their own.
452
453
454 Changes in version 0.7
455 **********************
456
457 Experimental version released on December 22nd, 2009.
458
459 * Added build-time checks to atf-c and atf-c++. A binding for atf-sh
460 will come later.
461
462 * Migrated all build-time checks for header files to proper ATF tests.
463 This demonstrates the use of the new feature described above.
464
465 * Added an internal API for child process management.
466
467 * Converted all plain-text distribution documents to a Docbook canonical
468 version, and include pre-generated plain text and HTML copies in the
469 distribution file.
470
471 * Simplified the contents of the Makefile.am by regenerating it from a
472 canonical Makefile.am.m4 source. As a side-effect, some dependency
473 specifications were fixed.
474
475 * Migrated all checks from the check target to installcheck, as these
476 require ATF to be installed.
477
478 * Fixed sign comparison mismatches triggered by the now-enabled
479 -Wsign-compare.
480
481 * Fixed many memory and object leaks.
482
483
484 Changes in version 0.6
485 **********************
486
487 Experimental version released on January 18th, 2009.
488
489 * Make atf-exec be able to kill its child process after a certain period
490 of time; this is controlled through the new -t option.
491
492 * Change atf-sh to use atf-exec's -t option to control the test case's
493 timeouts, instead of doing it internally. Same behavior as before, but
494 noticeably faster.
495
496 * atf-exec's -g option and atf-killpg are gone due to the previous
497 change.
498
499 * Added the atf-check(1) tool, a program that executes a given command
500 and checks its exit code against a known value and allows the management
501 of stdout and stderr in multiple ways. This replaces the previous
502 atf_check function in the atf-sh library and exposes this functionality
503 to both atf-c and atf-c++.
504
505 * Added the ATF_REQUIRE family of macros to the C interface. These help
506 in checking for fatal test conditions. The old ATF_CHECK macros now
507 perform non-fatal checks only. I.e. by using ATF_CHECK, the test case
508 can now continue its execution and the failures will not be reported
509 until the end of the whole run.
510
511 * Extended the amount of ATF_CHECK_* C macros with new ones to provide
512 more features to the developer. These also have their corresponding
513 counterparts in the ATF_REQUIRE_* family. The new macros (listing the
514 suffixes only) are: _EQ (replaces _EQUAL), _EQ_MSG, _STREQ and
515 _STREQ_MSG.
516
517
518 Changes in version 0.5
519 **********************
520
521 Experimental version released on May 1st, 2008.
522
523 * Clauses 3 and 4 of the BSD license used by the project were dropped.
524 All the code is now under a 2-clause BSD license compatible with the GNU
525 General Public License (GPL).
526
527 * Added a C-only binding so that binary test programs do not need to be
528 tied to C++ at all. This binding is now known as the atf-c library.
529
530 * Renamed the C++ binding to atf-c++ for consistency with the new atf-c.
531
532 * Renamed the POSIX shell binding to atf-sh for consistency with the new
533 atf-c and atf-c++.
534
535 * Added a -w flag to test programs through which it is possible to
536 specify the work directory to be used. This was possible in prior
537 releases by defining the workdir configuration variable (-v workdir=...),
538 but was a conceptually incorrect mechanism.
539
540 * Test programs now preserve the execution order of test cases when they
541 are given in the command line. Even those mentioned more than once are
542 executed multiple times to comply with the user's requests.
543
544
545 Changes in version 0.4
546 **********************
547
548 Experimental version released on February 4th, 2008.
549
550 * Added two new manual pages, atf-c++-api and atf-sh-api, describing the
551 C++ and POSIX shell interfaces used to write test programs.
552
553 * Added a pkg-config file, useful to get the flags to build against the
554 C++ library or to easily detect the presence of ATF.
555
556 * Added a way for test cases to require a specific architecture and/or
557 machine type through the new 'require.arch' and 'require.machine'
558 meta-data properties, respectively.
559
560 * Added the 'timeout' property to test cases, useful to set an
561 upper-bound limit for the test's run time and thus prevent global test
562 program stalls due to the test case's misbehavior.
563
564 * Added the atf-exec(1) internal utility, used to execute a command
565 after changing the process group it belongs to.
566
567 * Added the atf-killpg(1) internal utility, used to kill process groups.
568
569 * Multiple portability fixes. Of special interest, full support for
570 SunOS (Solaris Express Developer Edition 2007/09) using the Sun Studio 12
571 C++ compiler.
572
573 * Fixed a serious bug that prevented atf-run(1) from working at all
574 under Fedora 8 x86_64. Due to the nature of the bug, other platforms
575 were likely affected too.
576
577
578 Changes in version 0.3
579 **********************
580
581 Experimental version released on November 11th, 2007.
582
583 * Added XML output support to atf-report. This is accompanied by a DTD
584 for the format's structure and sample XSLT/CSS files to post-process this
585 output and convert it to a plain HTML report.
586
587 * Changed atf-run to add system information to the report it generates.
588 This is currently used by atf-report's XML output only, and is later
589 printed in the HTML reports in a nice and useful summary table. The user
590 and system administrator are allowed to tune this feature by means of
591 hooks.
592
593 * Removed the test cases' 'isolated' property. This was intended to
594 avoid touching the file system at all when running the related test case,
595 but this has not been true for a long while: some control files are
596 unconditionally required for several purposes, and we cannot easily get
597 rid of them. This way we remove several critical and delicate pieces of
598 code.
599
600 * Improved atf-report's CSV output format to include information about
601 test programs too.
602
603 * Fixed the tests that used atf-compile to not require this tool as a
604 helper. Avoids systems without build-time utilities to skip many tests
605 that could otherwise be run. (E.g. NetBSD without the comp.tgz set
606 installed.)
607
608 * Many general cleanups: Fixed many pieces of code marked as ugly and/or
609 incomplete.
610
611
612 Changes in version 0.2
613 **********************
614
615 Experimental version released on September 20th, 2007.
616
617 * Test cases now get a known umask on entry.
618
619 * atf-run now detects many unexpected failures caused by test programs and
620 reports them as bogus tests. atf-report is able to handle these new
621 errors and nicely reports them to the user.
622
623 * All the data formats read and written by the tools have been
624 documented and cleaned up. These include those grammars that define how
625 the different components communicate with each other as well as the
626 format of files written by the developers and users: the Atffiles and the
627 configuration files.
628
629 * Added the atf-version tool, a utility that displays information about
630 the currently installed version of ATF.
631
632 * Test cases can now define an optional cleanup routine to undo their
633 actions regardless of their exit status.
634
635 * atf-report now summarizes the list of failed (bogus) test programs
636 when using the ticker output format.
637
638 * Test programs now capture some termination signals and clean up any
639 temporary files before exiting the program.
640
641 * Multiple bug fixes and improvements all around.
642
643
644 Changes in version 0.1
645 **********************
646
647 Experimental version released on August 20th, 2007.
648
649 * First public version. This was released coinciding with the end of the
650 Google Summer of Code 2007 program.
651
652
653 ===========================================================================
654 vim: filetype=text:textwidth=75:expandtab:shiftwidth=2:softtabstop=2
655