Changeset 1164


Ignore:
Timestamp:
Aug 13, 2010, 10:21:40 PM (9 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.

Location:
trunk/test
Files:
2 edited
10 moved

Legend:

Unmodified
Added
Removed
  • trunk/test/Makefile.am

    r1163 r1164  
    2626AM_DEFAULT_SOURCE_EXT = .cc
    2727
    28 EXTRA_PROGRAMS = cache_partial_test color_test \
    29   config_test copyright_test date_test \
    30   htmlstream_test \
    31   parser_test stats_test trac_test utility_test
     28EXTRA_PROGRAMS = cache_partial.test color.test \
     29  config.test copyright.test date.test \
     30  htmlstream.test \
     31  parser.test stats.test trac.test utility.test
    3232
    3333CLEANFILES = $(EXTRA_PROGRAMS)
     
    4545TESTS = $(EXTRA_PROGRAMS) $(distributed_TESTS)
    4646
    47 TEST_EXTENSIONS = .sh
     47TEST_EXTENSIONS = .sh .test
    4848
    4949EXTRA_DIST = $(distributed_TESTS)
     
    9090svndigest_copy_cache_test.log:init.sh $(top_builddir)/bin/svndigest-copy-cache $(repo_stamp)
    9191
    92 #cache_partial_test.log: $(repo_stamp)
    93 #copyright_test.log: $(repo_stamp)
    94 #stats_test.log: $(repo_stamp)
     92cache_partial.log: $(repo_stamp) $(srcdir)/data/AUTHORS.svndigest-cache-r61
     93copyright.log: $(repo_stamp)
     94stats.log: $(repo_stamp)
     95
  • 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.