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