Changeset 1164 for trunk/test/README


Ignore:
Timestamp:
Aug 13, 2010, 10:21:40 PM (11 years ago)
Author:
Peter Johansson
Message:

improve lazycheck dependencies

To allow editing dependencies, the tests must have a suffix mentioned
in TEST_EXTENSION and it seems smoother if this suffix starts with a
period (.). Therefore tests are now named foo.test (rather than
foo_test before) and corresponding source is named foo.cc (rather than
foo_test.cc before). The change is documented in section 'Writing C++
tests' in test/README.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/README

    r1092 r1164  
    8888---------
    8989
     90  Tests written in C++ have suffix `.test', for example, `foo.test'
     91  and corresponding source is called `foo.cc'. To add a new test
     92  append `foo.test' to variable EXTRA_PROGRAMS in `Makefile.am' and
     93  edit `foo.cc'.
     94
    9095  Use the test::Suite class liberally. See other tests for examples of
    9196  typical usage.
     
    104109  file. If the data file is generated during build, e.g., checked out
    105110  in a wc and residing in builddir, use test:filename instead.
    106 
    107   Add the test to check_PROGRAMS in Makefile.am.
    108111
    109112Shell tests
Note: See TracChangeset for help on using the changeset viewer.