Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/bsd/atf/dist Import atf 0.10:



details:   https://anonhg.NetBSD.org/src/rev/f991c4129e2d
branches:  trunk
changeset: 756013:f991c4129e2d
user:      jmmv <jmmv%NetBSD.org@localhost>
date:      Sat Jul 03 08:04:47 2010 +0000

description:
Import atf 0.10:

Miscellaneous features

* Added expected failures support to test cases and atf-run.  These
  include, for example, expected clean exits, expected reception of fatal
  signals, expected timeouts and expected errors in condition checks.
  These statuses can be used to denote test cases that are known to fail
  due to a bug in the code they are testing.  atf-report reports these
  tests separately but they do not count towards the failed test cases
  amount.

* Added the ATF_CHECK_ERRNO and ATF_REQUIRE_ERRNO to the C library to
  allow easy checking of call failures that update errno.

* Added the has.cleanup meta-data property to test caes that specifies
  whether the test case has a cleanup routine or not; its value is
  automatically set.  This property is read by atf-run to know if it has to
  run the cleanup routine; skipping this run for every test case
  significantly speeds up the run time of test suites.

* Reversed the order of the ATF_CHECK_THROW macro in the C++ binding to
  take the expected exception as the first argument and the statement to
  execute as the second argument.

Changes in atf-check

* Changed atf-check to support negating the status and output checks by
  prefixing them with not- and added support to specify multiple checkers
  for stdout and stderr, not only one.

* Added the match output checker to atf-check to look for regular
  expressions in the stdout and stderr of commands.

* Modified the exit checks in atf-check to support checking for the
  reception of signals.

Code simplifications and cleanups

* Removed usage messages from test programs to simplify the
  implementation of every binding by a significant amount.  They just now
  refer the user to the appropriate manual page and do not attempt to wrap
  lines on terminal boundaries.  Test programs are not supposed to be run
  by users directly so this minor interface regression is not important.

* Removed the atf-format internal utility, which is unused after the
  change documented above.

* Removed the atf-cleanup internal utility.  It has been unused since the
  test case isolation was moved to atf-run in 0.8

* Splitted the Makefile.am into smaller files for easier maintenance and
  dropped the use of M4.  Only affects users building from the repository
  sources.

* Intermixed tests with the source files in the source tree to provide
  them more visibility and easier access.  The tests directory is gone from
  the source tree and tests are now suffixed by _test, not prefixed by t_.

* Simplifications to the atf-c library: removed the io, tcr and ui
  modules as they had become unnecessary after all simplifications
  introduced since the 0.8 release.

* Removed the application/X-atf-tcr format introduced in 0.8 release.
  Tests now print a much simplified format that is easy to parse and nicer
  to read by end users.  As a side effect, the default for test cases is
  now to print their results to stdout unless otherwise stated by providing
  the -r flag.

* Removed XML distribution documents and replaced them with plain-text
  documents.  They provided little value and introduced a lot of complexity
  to the build system.

* Simplified the output of atf-version by not attempting to print a
  revision number when building form a distfile.  Makes the build system
  easier to maintain.

diffstat:

 external/bsd/atf/dist/AUTHORS                          |    36 +-
 external/bsd/atf/dist/Atffile                          |    12 +
 external/bsd/atf/dist/COPYING                          |   106 +-
 external/bsd/atf/dist/NEWS                             |   496 +++--
 external/bsd/atf/dist/README                           |    64 +-
 external/bsd/atf/dist/atf-c++/Atffile                  |    23 +
 external/bsd/atf/dist/atf-c++/application.cpp          |    56 +-
 external/bsd/atf/dist/atf-c++/application.hpp          |     4 +-
 external/bsd/atf/dist/atf-c++/application_test.cpp     |    48 +
 external/bsd/atf/dist/atf-c++/atf-c++-api.3            |   112 +-
 external/bsd/atf/dist/atf-c++/atf_c++_test.cpp         |    48 +
 external/bsd/atf/dist/atf-c++/build_test.cpp           |   247 +++
 external/bsd/atf/dist/atf-c++/check.cpp                |    15 +
 external/bsd/atf/dist/atf-c++/check.hpp                |    10 +
 external/bsd/atf/dist/atf-c++/check_test.cpp           |   419 +++++
 external/bsd/atf/dist/atf-c++/config.cpp               |     1 -
 external/bsd/atf/dist/atf-c++/config_test.cpp          |   232 +++
 external/bsd/atf/dist/atf-c++/env_test.cpp             |   101 +
 external/bsd/atf/dist/atf-c++/exceptions_test.cpp      |   157 ++
 external/bsd/atf/dist/atf-c++/expand_test.cpp          |   282 +++
 external/bsd/atf/dist/atf-c++/fs.cpp                   |    90 +-
 external/bsd/atf/dist/atf-c++/fs.hpp                   |    86 -
 external/bsd/atf/dist/atf-c++/fs_test.cpp              |   706 +++++++++
 external/bsd/atf/dist/atf-c++/io.cpp                   |    43 +-
 external/bsd/atf/dist/atf-c++/io_test.cpp              |   585 ++++++++
 external/bsd/atf/dist/atf-c++/macros.hpp               |    16 +-
 external/bsd/atf/dist/atf-c++/macros_hpp_test.cpp      |   125 +
 external/bsd/atf/dist/atf-c++/macros_test.cpp          |   517 +++++++
 external/bsd/atf/dist/atf-c++/parser.cpp               |   233 +++
 external/bsd/atf/dist/atf-c++/parser.hpp               |    81 +
 external/bsd/atf/dist/atf-c++/parser_test.cpp          |  1050 ++++++++++++++
 external/bsd/atf/dist/atf-c++/pkg_config_test.sh       |   150 ++
 external/bsd/atf/dist/atf-c++/process_test.cpp         |   367 +++++
 external/bsd/atf/dist/atf-c++/sanity_test.cpp          |    48 +
 external/bsd/atf/dist/atf-c++/signals_test.cpp         |   283 +++
 external/bsd/atf/dist/atf-c++/test_helpers.cpp         |   122 +
 external/bsd/atf/dist/atf-c++/test_helpers.hpp         |   187 ++
 external/bsd/atf/dist/atf-c++/tests_test.cpp           |   207 ++
 external/bsd/atf/dist/atf-c++/text_test.cpp            |   375 +++++
 external/bsd/atf/dist/atf-c++/ui.cpp                   |   127 +-
 external/bsd/atf/dist/atf-c++/ui_test.cpp              |   471 ++++++
 external/bsd/atf/dist/atf-c++/user_test.cpp            |   152 ++
 external/bsd/atf/dist/atf-c++/utils_test.cpp           |   308 ++++
 external/bsd/atf/dist/atf-c/Atffile                    |     5 +
 external/bsd/atf/dist/atf-c/atf-c-api.3                |   126 +-
 external/bsd/atf/dist/atf-c/atf_c_test.c               |    50 +
 external/bsd/atf/dist/atf-c/build_test.c               |   286 +++
 external/bsd/atf/dist/atf-c/check.c                    |    12 +
 external/bsd/atf/dist/atf-c/check.h                    |     2 +
 external/bsd/atf/dist/atf-c/check_test.c               |   578 +++++++
 external/bsd/atf/dist/atf-c/config.c                   |     1 -
 external/bsd/atf/dist/atf-c/config_test.c              |   156 ++
 external/bsd/atf/dist/atf-c/dynstr_test.c              |   647 ++++++++
 external/bsd/atf/dist/atf-c/env_test.c                 |   126 +
 external/bsd/atf/dist/atf-c/error_test.c               |   311 ++++
 external/bsd/atf/dist/atf-c/fs.h                       |     2 -
 external/bsd/atf/dist/atf-c/fs_test.c                  |  1106 +++++++++++++++
 external/bsd/atf/dist/atf-c/h_build.h                  |   414 +++++
 external/bsd/atf/dist/atf-c/list_test.c                |   336 ++++
 external/bsd/atf/dist/atf-c/macros.h                   |    16 +-
 external/bsd/atf/dist/atf-c/macros_h_test.c            |   103 +
 external/bsd/atf/dist/atf-c/macros_test.c              |   788 ++++++++++
 external/bsd/atf/dist/atf-c/map_test.c                 |   331 ++++
 external/bsd/atf/dist/atf-c/pkg_config_test.sh         |   151 ++
 external/bsd/atf/dist/atf-c/process_helpers.c          |   117 +
 external/bsd/atf/dist/atf-c/process_test.c             |  1159 ++++++++++++++++
 external/bsd/atf/dist/atf-c/sanity_test.c              |   263 +++
 external/bsd/atf/dist/atf-c/tc.h                       |    14 +-
 external/bsd/atf/dist/atf-c/tc_test.c                  |   199 ++
 external/bsd/atf/dist/atf-c/test_helpers.c             |   214 ++
 external/bsd/atf/dist/atf-c/test_helpers.h             |    77 +
 external/bsd/atf/dist/atf-c/test_helpers_test.c        |   188 ++
 external/bsd/atf/dist/atf-c/text_test.c                |   434 +++++
 external/bsd/atf/dist/atf-c/tp.c                       |     2 -
 external/bsd/atf/dist/atf-c/tp_main.c                  |   110 +-
 external/bsd/atf/dist/atf-c/tp_test.c                  |    50 +
 external/bsd/atf/dist/atf-c/user_test.c                |   151 ++
 external/bsd/atf/dist/atf-check/Atffile                |     5 +
 external/bsd/atf/dist/atf-check/atf-check.cpp          |   688 ++++++---
 external/bsd/atf/dist/atf-check/integration_test.sh    |   462 ++++++
 external/bsd/atf/dist/atf-config/Atffile               |     5 +
 external/bsd/atf/dist/atf-config/atf-config.1          |    10 +-
 external/bsd/atf/dist/atf-config/integration_test.sh   |   219 +++
 external/bsd/atf/dist/atf-report/Atffile               |     5 +
 external/bsd/atf/dist/atf-report/fail_helper.cpp       |    45 +
 external/bsd/atf/dist/atf-report/integration_test.sh   |   427 +++++
 external/bsd/atf/dist/atf-report/misc_helpers.cpp      |    68 +
 external/bsd/atf/dist/atf-report/pass_helper.cpp       |    44 +
 external/bsd/atf/dist/atf-report/reader.cpp            |   383 +++++
 external/bsd/atf/dist/atf-report/reader.hpp            |    86 +
 external/bsd/atf/dist/atf-report/reader_test.cpp       |   943 +++++++++++++
 external/bsd/atf/dist/atf-run/Atffile                  |     5 +
 external/bsd/atf/dist/atf-run/atf-run.1                |     2 +-
 external/bsd/atf/dist/atf-run/atffile.cpp              |   337 ++++
 external/bsd/atf/dist/atf-run/atffile.hpp              |    94 +
 external/bsd/atf/dist/atf-run/atffile_test.cpp         |   648 ++++++++
 external/bsd/atf/dist/atf-run/bad_metadata_helper.c    |    38 +
 external/bsd/atf/dist/atf-run/config.cpp               |   101 +-
 external/bsd/atf/dist/atf-run/config.hpp               |    18 +
 external/bsd/atf/dist/atf-run/config_test.cpp          |   380 +++++
 external/bsd/atf/dist/atf-run/expect_helpers.c         |   193 ++
 external/bsd/atf/dist/atf-run/fs.cpp                   |   255 +++
 external/bsd/atf/dist/atf-run/fs.hpp                   |    58 +
 external/bsd/atf/dist/atf-run/fs_test.cpp              |   292 ++++
 external/bsd/atf/dist/atf-run/integration_test.sh      |  1067 ++++++++++++++
 external/bsd/atf/dist/atf-run/misc_helpers.cpp         |   307 ++++
 external/bsd/atf/dist/atf-run/pass_helper.cpp          |    44 +
 external/bsd/atf/dist/atf-run/requirements_test.cpp    |   304 ++++
 external/bsd/atf/dist/atf-run/several_tcs_helper.c     |    71 +
 external/bsd/atf/dist/atf-run/test_program_test.cpp    |  1018 ++++++++++++++
 external/bsd/atf/dist/atf-run/zero_tcs_helper.c        |    35 +
 external/bsd/atf/dist/atf-sh/Atffile                   |    10 +
 external/bsd/atf/dist/atf-sh/atf-sh-api.3              |    93 +-
 external/bsd/atf/dist/atf-sh/atf_check_test.sh         |   187 ++
 external/bsd/atf/dist/atf-sh/config_test.sh            |    85 +
 external/bsd/atf/dist/atf-sh/integration_test.sh       |   100 +
 external/bsd/atf/dist/atf-sh/libatf-sh.subr            |   298 +++-
 external/bsd/atf/dist/atf-sh/misc_helpers.sh           |   278 +++
 external/bsd/atf/dist/atf-sh/normalize_test.sh         |    49 +
 external/bsd/atf/dist/atf-sh/tc_test.sh                |    50 +
 external/bsd/atf/dist/atf-sh/tp_test.sh                |    57 +
 external/bsd/atf/dist/atf-version/generate-revision.sh |   182 ++
 external/bsd/atf/dist/atf-version/revision.h           |     4 +
 external/bsd/atf/dist/doc/atf-formats.5                |    32 +-
 external/bsd/atf/dist/doc/atf-test-case.4              |    55 +-
 external/bsd/atf/dist/doc/atf-test-program.1           |    63 +-
 external/bsd/atf/dist/doc/atf.7.in                     |    25 +-
 external/bsd/atf/dist/test-programs/Atffile            |    10 +
 external/bsd/atf/dist/test-programs/c_helpers.c        |   577 +++++++
 external/bsd/atf/dist/test-programs/common.sh          |    43 +
 external/bsd/atf/dist/test-programs/config_test.sh     |    63 +
 external/bsd/atf/dist/test-programs/cpp_helpers.cpp    |   382 +++++
 external/bsd/atf/dist/test-programs/expect_test.sh     |   167 ++
 external/bsd/atf/dist/test-programs/fork_test.sh       |    65 +
 external/bsd/atf/dist/test-programs/meta_data_test.sh  |    66 +
 external/bsd/atf/dist/test-programs/result_test.sh     |   124 +
 external/bsd/atf/dist/test-programs/sh_helpers.sh      |   431 +++++
 external/bsd/atf/dist/test-programs/srcdir_test.sh     |   153 ++
 138 files changed, 28557 insertions(+), 1072 deletions(-)

diffs (truncated from 31372 to 300 lines):

diff -r 099a2b6c1934 -r f991c4129e2d external/bsd/atf/dist/AUTHORS
--- a/external/bsd/atf/dist/AUTHORS     Fri Jul 02 21:19:00 2010 +0000
+++ b/external/bsd/atf/dist/AUTHORS     Sat Jul 03 08:04:47 2010 +0000
@@ -1,27 +1,25 @@
-   List of contributors to ATF
+Authors and contributors                        Automated Testing Framework
+===========================================================================
 
-   By Julio Merino, The NetBSD Foundation
-
-                                    Contents
 
-    1. Authors
+* Julio Merino <jmmv%NetBSD.org@localhost>
 
-                                    Authors
+  Main developer.  He started the work on this project when he took part in
+  the Google Summer of Code 2007 program as a student.
 
-     * Julio Merino <jmmv%NetBSD.org@localhost>
+* Martin Husemann <martin%NetBSD.org@localhost>
 
-       Main developer. He started the work on this project when he took part
-       in the Google Summer of Code 2007 program as a student.
+  Mentored this project during its development as part of the Google Summer
+  of Code 2007 program.
 
-     * Martin Husemann <martin%NetBSD.org@localhost>
-
-       Mentored this project during its development as part of the Google
-       Summer of Code 2007 program.
+* Lukasz Strzygowski <qx89l4%gmail.com@localhost>
 
-     * Lukasz Strzygowski <qx89l4%gmail.com@localhost>
+  Participant of the Google Summer of Code 2008 program.  Mentored by The
+  NetBSD Foundation, he worked on the atfify NetBSD-SoC project and, as a
+  side-effect, he contributed to the ATF source code.  He developed the
+  initial version of the atf-check utility and started the addition of the
+  ATF_REQUIRE family of macros in the C interface.
 
-       Participant of the Google Summer of Code 2008 program. Mentored by The
-       NetBSD Foundation, he worked on the atfify NetBSD-SoC project and, as
-       a side-effect, he contributed to the ATF source code. He developed the
-       initial version of the atf-check utility and started the addition of
-       the ATF_REQUIRE family of macros in the C interface.
+
+===========================================================================
+vim: filetype=text:textwidth=75:expandtab:shiftwidth=2:softtabstop=2
diff -r 099a2b6c1934 -r f991c4129e2d external/bsd/atf/dist/Atffile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/atf/dist/Atffile     Sat Jul 03 08:04:47 2010 +0000
@@ -0,0 +1,12 @@
+Content-Type: application/X-atf-atffile; version="1"
+
+prop: test-suite = atf
+
+tp: atf-c
+tp: atf-c++
+tp: atf-sh
+tp: test-programs
+tp: atf-check
+tp: atf-config
+tp: atf-report
+tp: atf-run
diff -r 099a2b6c1934 -r f991c4129e2d external/bsd/atf/dist/COPYING
--- a/external/bsd/atf/dist/COPYING     Fri Jul 02 21:19:00 2010 +0000
+++ b/external/bsd/atf/dist/COPYING     Sat Jul 03 08:04:47 2010 +0000
@@ -1,70 +1,70 @@
-   Redistribution terms
+Redistribution terms                            Automated Testing Framework
+===========================================================================
 
-   By Julio Merino, The NetBSD Foundation
 
-                                    Contents
+License
+*******
 
-    1. License
+Copyright (c) 2007, 2008, 2009, 2010 The NetBSD Foundation, Inc.
+All rights reserved.
 
-    2. Relicensed code
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
 
-                                    License
+1. Redistributions of source code must retain the above copyright notice,
+   this list of conditions and the following disclaimer.
 
-   Copyright (c) 2007, 2008, 2009, 2010 The NetBSD Foundation, Inc. All
-   rights reserved.
-
-   Redistribution and use in source and binary forms, with or without
-   modification, are permitted provided that the following conditions are
-   met:
+2. Redistributions in binary form must reproduce the above copyright
+   notice, this list of conditions and the following disclaimer in the
+   documentation and/or other materials provided with the distribution.
 
-    1. Redistributions of source code must retain the above copyright notice,
-       this list of conditions and the following disclaimer.
+THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGE.
 
-    2. Redistributions in binary form must reproduce the above copyright
-       notice, this list of conditions and the following disclaimer in the
-       documentation and/or other materials provided with the distribution.
 
-   THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
-   ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
-   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
-   PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR
-   CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-   EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-   PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
-   PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
-   LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-   NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-   SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+Relicensed code
+***************
+
+The following code snippets have been taken from other projects.  Even
+though they were not originally licensed under the terms above, the
+original authors have agreed to relicense their work so that this project
+can be distributed under a single license.  This section is put here just to
+clarify this fact.
 
-                                Relicensed code
+* configure.ac, Makefile.am: The original versions were derived from the
+  ones in the XML Catalog Manager project, version 2.2.
 
-   The following code snippets have been taken from other projects. Even
-   though they were not originally licensed under the terms above, the
-   original authors have agreed to relicense their work so that this project
-   can be distributed under a single license. This section is put here just
-   to clarify this fact.
+  Author: Julio Merino <jmmv%users.sourceforge.net@localhost>
+
+* atf-c/ui.c: The format_paragraph and format_text functions were
+  derived form the ones in the Monotone project, revision
+  3a0982da308228d796df35f98d787c5cff2bb5b6.
 
-     * configure.ac, Makefile.am: The original versions were derived from the
-       ones in the XML Catalog Manager project, version 2.2.
-
-       Author: Julio M. Merino Vidal <jmmv%users.sourceforge.net@localhost>
+  Author: Julio Merino <jmmv%NetBSD.org@localhost>
 
-     * atf-c/ui.c: The format_paragraph and format_text functions were
-       derived form the ones in the Monotone project, revision
-       3a0982da308228d796df35f98d787c5cff2bb5b6.
+* atf-c++/io.hpp, atf-c++/io.cpp, tests/atf-c++/t_io.cpp: These files
+  were derived from the file_handle, systembuf, pipe, pistream and postream
+  classes and tests found in the Boost.Process library.
 
-       Author: Julio M. Merino Vidal <jmmv%NetBSD.org@localhost>
+  Author: Julio Merino <jmmv84%gmail.com@localhost>
 
-     * atf-c++/io.hpp, atf-c++/io.cpp, tests/atf-c++/t_io.cpp: These files
-       were derived from the file_handle, systembuf, pipe, pistream and
-       postream classes and tests found in the Boost.Process library.
-
-       Author: Julio M. Merino Vidal <jmmv84%gmail.com@localhost>
+* admin/check-style.sh, admin/check-style-common.awk,
+  admin/check-style-cpp.awk, admin/check-style-shell.awk: These files,
+  except the first one, were first implemented in the Buildtool project.
+  They were later adapted to be part of Boost.Process and, during that
+  process, the shell script was created.
 
-     * admin/check-style.sh, admin/check-style-common.awk,
-       admin/check-style-cpp.awk, admin/check-style-shell.awk: These files,
-       except the first one, were first implemented in the Buildtool project.
-       They were later adapted to be part of Boost.Process and, during that
-       process, the shell script was created.
+  Author: Julio Merino <jmmv84%gmail.com@localhost>
+
 
-       Author: Julio M. Merino Vidal <jmmv84%gmail.com@localhost>
+===========================================================================
+vim: filetype=text:textwidth=75:expandtab:shiftwidth=2:softtabstop=2
diff -r 099a2b6c1934 -r f991c4129e2d external/bsd/atf/dist/NEWS
--- a/external/bsd/atf/dist/NEWS        Fri Jul 02 21:19:00 2010 +0000
+++ b/external/bsd/atf/dist/NEWS        Sat Jul 03 08:04:47 2010 +0000
@@ -1,284 +1,364 @@
-   Major changes in ATF releases
+Major changes between releases                  Automated Testing Framework
+===========================================================================
+
 
-   By Julio Merino, The NetBSD Foundation
+Changes in version 0.10
+***********************
 
-                                    Contents
+Experimental version released on July 2nd, 2010.
+
+Miscellaneous features
 
-    1. Changes in version 0.9
-
-    2. Changes in version 0.8
+* Added expected failures support to test cases and atf-run.  These
+  include, for example, expected clean exits, expected reception of fatal
+  signals, expected timeouts and expected errors in condition checks.
+  These statuses can be used to denote test cases that are known to fail
+  due to a bug in the code they are testing.  atf-report reports these
+  tests separately but they do not count towards the failed test cases
+  amount.
 
-    3. Changes in version 0.7
-
-    4. Changes in version 0.6
+* Added the ATF_CHECK_ERRNO and ATF_REQUIRE_ERRNO to the C library to
+  allow easy checking of call failures that update errno.
 
-    5. Changes in version 0.5
+* Added the has.cleanup meta-data property to test caes that specifies
+  whether the test case has a cleanup routine or not; its value is
+  automatically set.  This property is read by atf-run to know if it has to
+  run the cleanup routine; skipping this run for every test case
+  significantly speeds up the run time of test suites.
 
-    6. Changes in version 0.4
-
-    7. Changes in version 0.3
+* Reversed the order of the ATF_CHECK_THROW macro in the C++ binding to
+  take the expected exception as the first argument and the statement to
+  execute as the second argument.
 
-    8. Changes in version 0.2
+Changes in atf-check
 
-    9. Changes in version 0.1
+* Changed atf-check to support negating the status and output checks by
+  prefixing them with not- and added support to specify multiple checkers
+  for stdout and stderr, not only one.
 
-                             Changes in version 0.9
+* Added the match output checker to atf-check to look for regular
+  expressions in the stdout and stderr of commands.
 
-   Experimental version released on June 3rd, 2010.
+* Modified the exit checks in atf-check to support checking for the
+  reception of signals.
 
-     * Added atf-sh, an interpreter to process test programs written using
-       the shell API. This is not really a shell interpreter by itself
-       though: it is just a wrapper around the system shell that eases the
-       loading of the necessary ATF libraries.
+Code simplifications and cleanups
 
-     * Removed atf-compile in favour of atf-sh.
+* Removed usage messages from test programs to simplify the
+  implementation of every binding by a significant amount.  They just now
+  refer the user to the appropriate manual page and do not attempt to wrap
+  lines on terminal boundaries.  Test programs are not supposed to be run
+  by users directly so this minor interface regression is not important.
+
+* Removed the atf-format internal utility, which is unused after the
+  change documented above.
 
-     * Added the use.fs metadata property to test case, which is used to
-       specify which test cases require file system access. This is to
-       highlight dependencies on external resources more clearly and to speed
-       up the execution of test suites by skipping the creation of many
-       unnecessary work directories.
+* Removed the atf-cleanup internal utility.  It has been unused since the
+  test case isolation was moved to atf-run in 0.8
 
-     * Fixed test programs to get a sane default value for their source
-       directory. This means that it should not be necessary any more to pass
-       -s when running test programs that do not live in the current
-       directory.
+* Splitted the Makefile.am into smaller files for easier maintenance and
+  dropped the use of M4.  Only affects users building from the repository
+  sources.
+
+* Intermixed tests with the source files in the source tree to provide
+  them more visibility and easier access.  The tests directory is gone from
+  the source tree and tests are now suffixed by _test, not prefixed by t_.
 
-     * Defining test case headers became optional. This is trivial to achieve
-       in shell-based tests but a bit ugly in C and C++. In C, use the new
-       ATF_TC_WITHOUT_HEAD macro to define the test case, and in C++ use
-       ATF_TEST_CASE_WITHOUT_HEAD.
+* Simplifications to the atf-c library: removed the io, tcr and ui
+  modules as they had become unnecessary after all simplifications
+  introduced since the 0.8 release.
 



Home | Main Index | Thread Index | Old Index