Home | History | Annotate | Line # | Download | only in dist
NEWS revision 1.1.1.3
      1    Major changes in ATF releases
      2 
      3    By Julio Merino, The NetBSD Foundation
      4 
      5                                     Contents
      6 
      7     1. Changes in version 0.8
      8 
      9     2. Changes in version 0.7
     10 
     11     3. Changes in version 0.6
     12 
     13     4. Changes in version 0.5
     14 
     15     5. Changes in version 0.4
     16 
     17     6. Changes in version 0.3
     18 
     19     7. Changes in version 0.2
     20 
     21     8. Changes in version 0.1
     22 
     23                              Changes in version 0.8
     24 
     25    Experimental version released on May 7th, 2010.
     26 
     27      * Test programs no longer run several test cases in a row. The execution
     28        of a test program now requires a test case name, and that single test
     29        case is executed. To execute several test cases, use the atf-run
     30        utility as usual.
     31 
     32      * Test programs no longer fork a subprocess to isolate the execution of
     33        test cases. They run the test case code in-process, and a crash of the
     34        test case will result in a crash of the test program. This is to ease
     35        debugging of faulty test cases.
     36 
     37      * Test programs no longer isolate their test cases. This means that they
     38        will not create temporary directories nor sanitize the environment any
     39        more. Yes: running a test case that depends on system state by hand
     40        will most likely yield different results depending on where (machine,
     41        directory, user environment, etc.) it is run. Isolation has been moved
     42        to atf-run.
     43 
     44      * Test programs no longer print a cryptic format (application/X-atf-tcs)
     45        on a special file channel. They can now print whatever they want on
     46        the screen. Because test programs can now only run one test case every
     47        time, providing controlled output is not necessary any more.
     48 
     49      * Test programs no longer write their status into a special file
     50        descriptor. Instead, they create a file with the results, which is
     51        later parsed by atf-run. This changes the semantics of the -r flag.
     52 
     53      * atf-run has been adjusted to perform the test case isolation. As a
     54        result, there is now a single canonical place that implements the
     55        isolation of test caes. In previous releases, the three language
     56        bindings (C, C++ and shell) had to be kept in sync with each other
     57        (read: not a nice thing to do at all). As a side effect of this
     58        change, writing bindings for other languages will be much, much easier
     59        from now on.
     60 
     61      * atf-run forks test programs on a test case basis, instead of on a test
     62        program basis as it did before. This is to provide the test case
     63        isolation that was before implemented by the test programs themselves.
     64 
     65      * Removed the atf-exec tool. This was used to implement test case
     66        isolation in atf-sh, but it is now unnecessary.
     67 
     68      * It is now optional to define the descr meta-data property. It has been
     69        proven to be mostly useless, because test cases often carry a
     70        descriptive name of their own.
     71 
     72                              Changes in version 0.7
     73 
     74    Experimental version released on December 22nd, 2009.
     75 
     76      * Added build-time checks to atf-c and atf-c++. A binding for atf-sh
     77        will come later.
     78 
     79      * Migrated all build-time checks for header files to proper ATF tests.
     80        This demonstrates the use of the new feature described above.
     81 
     82      * Added an internal API for child process management.
     83 
     84      * Converted all plain-text distribution documents to a Docbook canonical
     85        version, and include pre-generated plain text and HTML copies in the
     86        distribution file.
     87 
     88      * Simplified the contents of the Makefile.am by regenerating it from a
     89        canonical Makefile.am.m4 source. As a side-effect, some dependency
     90        specifications were fixed.
     91 
     92      * Migrated all checks from the check target to installcheck, as these
     93        require ATF to be installed.
     94 
     95      * Fixed sign comparison mismatches triggered by the now-enabled
     96        -Wsign-compare.
     97 
     98      * Fixed many memory and object leaks.
     99 
    100                              Changes in version 0.6
    101 
    102    Experimental version released on January 18th, 2009.
    103 
    104      * Make atf-exec be able to kill its child process after a certain period
    105        of time; this is controlled through the new -t option.
    106 
    107      * Change atf-sh to use atf-exec's -t option to control the test case's
    108        timeouts, instead of doing it internally. Same behavior as before, but
    109        noticeably faster.
    110 
    111      * atf-exec's -g option and atf-killpg are gone due to the previous
    112        change.
    113 
    114      * Added the atf-check(1) tool, a program that executes a given command
    115        and checks its exit code against a known value and allows the
    116        management of stdout and stderr in multiple ways. This replaces the
    117        previous atf_check function in the atf-sh library and exposes this
    118        functionality to both atf-c and atf-c++.
    119 
    120      * Added the ATF_REQUIRE family of macros to the C interface. These help
    121        in checking for fatal test conditions. The old ATF_CHECK macros now
    122        perform non-fatal checks only. I.e. by using ATF_CHECK, the test case
    123        can now continue its execution and the failures will not be reported
    124        until the end of the whole run.
    125 
    126      * Extended the amount of ATF_CHECK_* C macros with new ones to provide
    127        more features to the developer. These also have their corresponding
    128        counterparts in the ATF_REQUIRE_* family. The new macros (listing the
    129        suffixes only) are: _EQ (replaces _EQUAL), _EQ_MSG, _STREQ and
    130        _STREQ_MSG.
    131 
    132                              Changes in version 0.5
    133 
    134    Experimental version released on May 1st, 2008.
    135 
    136      * Clauses 3 and 4 of the BSD license used by the project were dropped.
    137        All the code is now under a 2-clause BSD license compatible with the
    138        GNU General Public License (GPL).
    139 
    140      * Added a C-only binding so that binary test programs do not need to be
    141        tied to C++ at all. This binding is now known as the atf-c library.
    142 
    143      * Renamed the C++ binding to atf-c++ for consistency with the new atf-c.
    144 
    145      * Renamed the POSIX shell binding to atf-sh for consistency with the new
    146        atf-c and atf-c++.
    147 
    148      * Added a -w flag to test programs through which it is possible to
    149        specify the work directory to be used. This was possible in prior
    150        releases by defining the workdir configuration variable (-v
    151        workdir=...), but was a conceptually incorrect mechanism.
    152 
    153      * Test programs now preserve the execution order of test cases when they
    154        are given in the command line. Even those mentioned more than once are
    155        executed multiple times to comply with the user's requests.
    156 
    157                              Changes in version 0.4
    158 
    159    Experimental version released on February 4th, 2008.
    160 
    161      * Added two new manual pages, atf-c++-api and atf-sh-api, describing the
    162        C++ and POSIX shell interfaces used to write test programs.
    163 
    164      * Added a pkg-config file, useful to get the flags to build against the
    165        C++ library or to easily detect the presence of ATF.
    166 
    167      * Added a way for test cases to require a specific architecture and/or
    168        machine type through the new 'require.arch' and 'require.machine'
    169        meta-data properties, respectively.
    170 
    171      * Added the 'timeout' property to test cases, useful to set an
    172        upper-bound limit for the test's run time and thus prevent global test
    173        program stalls due to the test case's misbehavior.
    174 
    175      * Added the atf-exec(1) internal utility, used to execute a command
    176        after changing the process group it belongs to.
    177 
    178      * Added the atf-killpg(1) internal utility, used to kill process groups.
    179 
    180      * Multiple portability fixes. Of special interest, full support for
    181        SunOS (Solaris Express Developer Edition 2007/09) using the Sun Studio
    182        12 C++ compiler.
    183 
    184      * Fixed a serious bug that prevented atf-run(1) from working at all
    185        under Fedora 8 x86_64. Due to the nature of the bug, other platforms
    186        were likely affected too.
    187 
    188                              Changes in version 0.3
    189 
    190    Experimental version released on November 11th, 2007.
    191 
    192      * Added XML output support to atf-report. This is accompanied by a DTD
    193        for the format's structure and sample XSLT/CSS files to post-process
    194        this output and convert it to a plain HTML report.
    195 
    196      * Changed atf-run to add system information to the report it generates.
    197        This is currently used by atf-report's XML output only, and is later
    198        printed in the HTML reports in a nice and useful summary table. The
    199        user and system administrator are allowed to tune this feature by
    200        means of hooks.
    201 
    202      * Removed the test cases' 'isolated' property. This was intended to
    203        avoid touching the file system at all when running the related test
    204        case, but this has not been true for a long while: some control files
    205        are unconditionally required for several purposes, and we cannot
    206        easily get rid of them. This way we remove several critical and
    207        delicate pieces of code.
    208 
    209      * Improved atf-report's CSV output format to include information about
    210        test programs too.
    211 
    212      * Fixed the tests that used atf-compile to not require this tool as a
    213        helper. Avoids systems without build-time utilities to skip many tests
    214        that could otherwise be run. (E.g. NetBSD without the comp.tgz set
    215        installed.)
    216 
    217      * Many general cleanups: Fixed many pieces of code marked as ugly and/or
    218        incomplete.
    219 
    220                              Changes in version 0.2
    221 
    222    Experimental version released on September 20th, 2007.
    223 
    224      * Test cases now get a known umask on entry.
    225 
    226      * atf-run now detects many unexpected failures caused by test programs
    227        and reports them as bogus tests. atf-report is able to handle these
    228        new errors and nicely reports them to the user.
    229 
    230      * All the data formats read and written by the tools have been
    231        documented and cleaned up. These include those grammars that define
    232        how the different components communicate with each other as well as
    233        the format of files written by the developers and users: the Atffiles
    234        and the configuration files.
    235 
    236      * Added the atf-version tool, a utility that displays information about
    237        the currently installed version of ATF.
    238 
    239      * Test cases can now define an optional cleanup routine to undo their
    240        actions regardless of their exit status.
    241 
    242      * atf-report now summarizes the list of failed (bogus) test programs
    243        when using the ticker output format.
    244 
    245      * Test programs now capture some termination signals and clean up any
    246        temporary files before exiting the program.
    247 
    248      * Multiple bug fixes and improvements all around.
    249 
    250                              Changes in version 0.1
    251 
    252    Experimental version released on August 20th, 2007.
    253 
    254      * First public version. This was released coinciding with the end of the
    255        Google Summer of Code 2007 program.
    256