NEWS revision 1.1.1.6 1 Major changes between releases Automated Testing Framework
2 ===========================================================================
3
4
5 Changes in version 0.11
6 ***********************
7
8 Experimental version released on October 20th, 2010.
9
10 * The ATF_CHECK* macros in atf-c++ were renamed to ATF_REQUIRE* to match
11 their counterparts in atf-c.
12
13 * Clearly separated the modules in atf-c that are supposed to be public
14 from those that are implementation details. The header files for the
15 internal modules are not installed any more.
16
17 * Made the atf-check tool private. It is only required by atf-sh and being
18 public has the danger of causing confusion. Also, making it private
19 simplifies the public API of atf.
20
21 * Changed atf-sh to enable per-command error checking (set -e) by default.
22 This catches many cases in which a test case is broken but it is not
23 reported as such because execution continues.
24
25 * Fixed the XSTL and CSS stylesheets to support expected failures.
26
27
28 Changes in version 0.10
29 ***********************
30
31 Experimental version released on July 2nd, 2010.
32
33 Miscellaneous features
34
35 * Added expected failures support to test cases and atf-run. These
36 include, for example, expected clean exits, expected reception of fatal
37 signals, expected timeouts and expected errors in condition checks.
38 These statuses can be used to denote test cases that are known to fail
39 due to a bug in the code they are testing. atf-report reports these
40 tests separately but they do not count towards the failed test cases
41 amount.
42
43 * Added the ATF_CHECK_ERRNO and ATF_REQUIRE_ERRNO to the C library to
44 allow easy checking of call failures that update errno.
45
46 * Added the has.cleanup meta-data property to test caes that specifies
47 whether the test case has a cleanup routine or not; its value is
48 automatically set. This property is read by atf-run to know if it has to
49 run the cleanup routine; skipping this run for every test case
50 significantly speeds up the run time of test suites.
51
52 * Reversed the order of the ATF_CHECK_THROW macro in the C++ binding to
53 take the expected exception as the first argument and the statement to
54 execute as the second argument.
55
56 Changes in atf-check
57
58 * Changed atf-check to support negating the status and output checks by
59 prefixing them with not- and added support to specify multiple checkers
60 for stdout and stderr, not only one.
61
62 * Added the match output checker to atf-check to look for regular
63 expressions in the stdout and stderr of commands.
64
65 * Modified the exit checks in atf-check to support checking for the
66 reception of signals.
67
68 Code simplifications and cleanups
69
70 * Removed usage messages from test programs to simplify the
71 implementation of every binding by a significant amount. They just now
72 refer the user to the appropriate manual page and do not attempt to wrap
73 lines on terminal boundaries. Test programs are not supposed to be run
74 by users directly so this minor interface regression is not important.
75
76 * Removed the atf-format internal utility, which is unused after the
77 change documented above.
78
79 * Removed the atf-cleanup internal utility. It has been unused since the
80 test case isolation was moved to atf-run in 0.8
81
82 * Splitted the Makefile.am into smaller files for easier maintenance and
83 dropped the use of M4. Only affects users building from the repository
84 sources.
85
86 * Intermixed tests with the source files in the source tree to provide
87 them more visibility and easier access. The tests directory is gone from
88 the source tree and tests are now suffixed by _test, not prefixed by t_.
89
90 * Simplifications to the atf-c library: removed the io, tcr and ui
91 modules as they had become unnecessary after all simplifications
92 introduced since the 0.8 release.
93
94 * Removed the application/X-atf-tcr format introduced in 0.8 release.
95 Tests now print a much simplified format that is easy to parse and nicer
96 to read by end users. As a side effect, the default for test cases is
97 now to print their results to stdout unless otherwise stated by providing
98 the -r flag.
99
100 * Removed XML distribution documents and replaced them with plain-text
101 documents. They provided little value and introduced a lot of complexity
102 to the build system.
103
104 * Simplified the output of atf-version by not attempting to print a
105 revision number when building form a distfile. Makes the build system
106 easier to maintain.
107
108
109 Changes in version 0.9
110 **********************
111
112 Experimental version released on June 3rd, 2010.
113
114 * Added atf-sh, an interpreter to process test programs written using
115 the shell API. This is not really a shell interpreter by itself though:
116 it is just a wrapper around the system shell that eases the loading of
117 the necessary ATF libraries.
118
119 * Removed atf-compile in favour of atf-sh.
120
121 * Added the use.fs metadata property to test case, which is used to
122 specify which test cases require file system access. This is to
123 highlight dependencies on external resources more clearly and to speed up
124 the execution of test suites by skipping the creation of many unnecessary
125 work directories.
126
127 * Fixed test programs to get a sane default value for their source
128 directory. This means that it should not be necessary any more to pass
129 -s when running test programs that do not live in the current directory.
130
131 * Defining test case headers became optional. This is trivial to achieve
132 in shell-based tests but a bit ugly in C and C++. In C, use the new
133 ATF_TC_WITHOUT_HEAD macro to define the test case, and in C++ use
134 ATF_TEST_CASE_WITHOUT_HEAD.
135
136
137 Changes in version 0.8
138 **********************
139
140 Experimental version released on May 7th, 2010.
141
142 * Test programs no longer run several test cases in a row. The execution
143 of a test program now requires a test case name, and that single test
144 case is executed. To execute several test cases, use the atf-run utility
145 as usual.
146
147 * Test programs no longer fork a subprocess to isolate the execution of
148 test cases. They run the test case code in-process, and a crash of the
149 test case will result in a crash of the test program. This is to ease
150 debugging of faulty test cases.
151
152 * Test programs no longer isolate their test cases. This means that they
153 will not create temporary directories nor sanitize the environment any
154 more. Yes: running a test case that depends on system state by hand will
155 most likely yield different results depending on where (machine,
156 directory, user environment, etc.) it is run. Isolation has been moved
157 to atf-run.
158
159 * Test programs no longer print a cryptic format (application/X-atf-tcs)
160 on a special file channel. They can now print whatever they want on the
161 screen. Because test programs can now only run one test case every time,
162 providing controlled output is not necessary any more.
163
164 * Test programs no longer write their status into a special file
165 descriptor. Instead, they create a file with the results, which is later
166 parsed by atf-run. This changes the semantics of the -r flag.
167
168 * atf-run has been adjusted to perform the test case isolation. As a
169 result, there is now a single canonical place that implements the
170 isolation of test caes. In previous releases, the three language
171 bindings (C, C++ and shell) had to be kept in sync with each other (read:
172 not a nice thing to do at all). As a side effect of this change, writing
173 bindings for other languages will be much, much easier from now on.
174
175 * atf-run forks test programs on a test case basis, instead of on a test
176 program basis as it did before. This is to provide the test case
177 isolation that was before implemented by the test programs themselves.
178
179 * Removed the atf-exec tool. This was used to implement test case
180 isolation in atf-sh, but it is now unnecessary.
181
182 * It is now optional to define the descr meta-data property. It has been
183 proven to be mostly useless, because test cases often carry a descriptive
184 name of their own.
185
186
187 Changes in version 0.7
188 **********************
189
190 Experimental version released on December 22nd, 2009.
191
192 * Added build-time checks to atf-c and atf-c++. A binding for atf-sh
193 will come later.
194
195 * Migrated all build-time checks for header files to proper ATF tests.
196 This demonstrates the use of the new feature described above.
197
198 * Added an internal API for child process management.
199
200 * Converted all plain-text distribution documents to a Docbook canonical
201 version, and include pre-generated plain text and HTML copies in the
202 distribution file.
203
204 * Simplified the contents of the Makefile.am by regenerating it from a
205 canonical Makefile.am.m4 source. As a side-effect, some dependency
206 specifications were fixed.
207
208 * Migrated all checks from the check target to installcheck, as these
209 require ATF to be installed.
210
211 * Fixed sign comparison mismatches triggered by the now-enabled
212 -Wsign-compare.
213
214 * Fixed many memory and object leaks.
215
216
217 Changes in version 0.6
218 **********************
219
220 Experimental version released on January 18th, 2009.
221
222 * Make atf-exec be able to kill its child process after a certain period
223 of time; this is controlled through the new -t option.
224
225 * Change atf-sh to use atf-exec's -t option to control the test case's
226 timeouts, instead of doing it internally. Same behavior as before, but
227 noticeably faster.
228
229 * atf-exec's -g option and atf-killpg are gone due to the previous
230 change.
231
232 * Added the atf-check(1) tool, a program that executes a given command
233 and checks its exit code against a known value and allows the management
234 of stdout and stderr in multiple ways. This replaces the previous
235 atf_check function in the atf-sh library and exposes this functionality
236 to both atf-c and atf-c++.
237
238 * Added the ATF_REQUIRE family of macros to the C interface. These help
239 in checking for fatal test conditions. The old ATF_CHECK macros now
240 perform non-fatal checks only. I.e. by using ATF_CHECK, the test case
241 can now continue its execution and the failures will not be reported
242 until the end of the whole run.
243
244 * Extended the amount of ATF_CHECK_* C macros with new ones to provide
245 more features to the developer. These also have their corresponding
246 counterparts in the ATF_REQUIRE_* family. The new macros (listing the
247 suffixes only) are: _EQ (replaces _EQUAL), _EQ_MSG, _STREQ and
248 _STREQ_MSG.
249
250
251 Changes in version 0.5
252 **********************
253
254 Experimental version released on May 1st, 2008.
255
256 * Clauses 3 and 4 of the BSD license used by the project were dropped.
257 All the code is now under a 2-clause BSD license compatible with the GNU
258 General Public License (GPL).
259
260 * Added a C-only binding so that binary test programs do not need to be
261 tied to C++ at all. This binding is now known as the atf-c library.
262
263 * Renamed the C++ binding to atf-c++ for consistency with the new atf-c.
264
265 * Renamed the POSIX shell binding to atf-sh for consistency with the new
266 atf-c and atf-c++.
267
268 * Added a -w flag to test programs through which it is possible to
269 specify the work directory to be used. This was possible in prior
270 releases by defining the workdir configuration variable (-v workdir=...),
271 but was a conceptually incorrect mechanism.
272
273 * Test programs now preserve the execution order of test cases when they
274 are given in the command line. Even those mentioned more than once are
275 executed multiple times to comply with the user's requests.
276
277
278 Changes in version 0.4
279 **********************
280
281 Experimental version released on February 4th, 2008.
282
283 * Added two new manual pages, atf-c++-api and atf-sh-api, describing the
284 C++ and POSIX shell interfaces used to write test programs.
285
286 * Added a pkg-config file, useful to get the flags to build against the
287 C++ library or to easily detect the presence of ATF.
288
289 * Added a way for test cases to require a specific architecture and/or
290 machine type through the new 'require.arch' and 'require.machine'
291 meta-data properties, respectively.
292
293 * Added the 'timeout' property to test cases, useful to set an
294 upper-bound limit for the test's run time and thus prevent global test
295 program stalls due to the test case's misbehavior.
296
297 * Added the atf-exec(1) internal utility, used to execute a command
298 after changing the process group it belongs to.
299
300 * Added the atf-killpg(1) internal utility, used to kill process groups.
301
302 * Multiple portability fixes. Of special interest, full support for
303 SunOS (Solaris Express Developer Edition 2007/09) using the Sun Studio 12
304 C++ compiler.
305
306 * Fixed a serious bug that prevented atf-run(1) from working at all
307 under Fedora 8 x86_64. Due to the nature of the bug, other platforms
308 were likely affected too.
309
310
311 Changes in version 0.3
312 **********************
313
314 Experimental version released on November 11th, 2007.
315
316 * Added XML output support to atf-report. This is accompanied by a DTD
317 for the format's structure and sample XSLT/CSS files to post-process this
318 output and convert it to a plain HTML report.
319
320 * Changed atf-run to add system information to the report it generates.
321 This is currently used by atf-report's XML output only, and is later
322 printed in the HTML reports in a nice and useful summary table. The user
323 and system administrator are allowed to tune this feature by means of
324 hooks.
325
326 * Removed the test cases' 'isolated' property. This was intended to
327 avoid touching the file system at all when running the related test case,
328 but this has not been true for a long while: some control files are
329 unconditionally required for several purposes, and we cannot easily get
330 rid of them. This way we remove several critical and delicate pieces of
331 code.
332
333 * Improved atf-report's CSV output format to include information about
334 test programs too.
335
336 * Fixed the tests that used atf-compile to not require this tool as a
337 helper. Avoids systems without build-time utilities to skip many tests
338 that could otherwise be run. (E.g. NetBSD without the comp.tgz set
339 installed.)
340
341 * Many general cleanups: Fixed many pieces of code marked as ugly and/or
342 incomplete.
343
344
345 Changes in version 0.2
346 **********************
347
348 Experimental version released on September 20th, 2007.
349
350 * Test cases now get a known umask on entry.
351
352 * atf-run now detects many unexpected failures caused by test programs and
353 reports them as bogus tests. atf-report is able to handle these new
354 errors and nicely reports them to the user.
355
356 * All the data formats read and written by the tools have been
357 documented and cleaned up. These include those grammars that define how
358 the different components communicate with each other as well as the
359 format of files written by the developers and users: the Atffiles and the
360 configuration files.
361
362 * Added the atf-version tool, a utility that displays information about
363 the currently installed version of ATF.
364
365 * Test cases can now define an optional cleanup routine to undo their
366 actions regardless of their exit status.
367
368 * atf-report now summarizes the list of failed (bogus) test programs
369 when using the ticker output format.
370
371 * Test programs now capture some termination signals and clean up any
372 temporary files before exiting the program.
373
374 * Multiple bug fixes and improvements all around.
375
376
377 Changes in version 0.1
378 **********************
379
380 Experimental version released on August 20th, 2007.
381
382 * First public version. This was released coinciding with the end of the
383 Google Summer of Code 2007 program.
384
385
386 ===========================================================================
387 vim: filetype=text:textwidth=75:expandtab:shiftwidth=2:softtabstop=2
388