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