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