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