Changeset 1050 for trunk/test


Ignore:
Timestamp:
Apr 5, 2010, 4:01:33 AM (11 years ago)
Author:
Peter Johansson
Message:

refs #449. changes reflecting new parallel-tests driver

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/README

    r974 r1050  
    77========
    88
    9 Running all tests
     9Running the tests
    1010-----------------
    1111
    12   make check
     12  To run all tests:
    1313
     14    make check
     15
     16  To rerun only failed tests:
     17
     18    make recheck
     19
     20  To rerun only those tests for there are newer sources
     21
     22    make lazycheck
     23
     24  To run only a subset of tests, use TESTS variable:
     25
     26    make check TESTS="first_test second_test"
     27
     28  To enable test output you can use the VERBOSE variable
     29
     30    make check VERBOSE=1
    1431
    1532Interpretation
     
    3148-----------------------------
    3249
    33   You can run a specific test directly. Add a '-v' flag to trigger verbosity
    34 
    35     ./program_test -v
    36 
    37   If you want to run the test suite in verbose mode, you can invoke
    38   make as follows:
    39 
    40     make check VERBOSE=1
    41 
    42   If you want to run only a subset of tests, you can invoke make as follows
    43 
    44     make check TESTS="first_test second_test"
     50  You can run the test directly, `./foo_test'; it will be verbose. The
     51  verbose output is also available in `foo_test.log'. A summary log is
     52  created in the file `test-suite.log'.
    4553
    4654
     
    7987  typical usage.
    8088
    81   Set `need_test_repo` to true in Suite constructor if the test uses
     89  Set `need_test_repo` to true in Suite constructor if the test uses
    8290  the test repository. That will result in the test being skipped if
    8391  test repo is not available, or if it is available the wc will
    8492  checked out (if needed) and updated.
    85 
    86   Send output via test::Suite::out() which redirects the output to
    87   cout or /dev/null depending on whether VERBOSE and option `-v` are set.
    8893
    8994  If a test needs a data file, place the data in directory
     
    115120  Make sure to set svn property `svn:executable` on test.
    116121
    117   Add test to `distributed_TESTS` in Makefile.am.
     122  Add test to `distributed_TESTS` in Makefile.am. In order to get the
     123  lazycheck to behave as expected, declare accurate dependencies. If
     124  test 'foo.sh', for example, depends on file 'bar.txt', create a make
     125  rule: 'foo.log: bar.txt'.
    118126
    119127======================================================================
    120 Copyright (C) 2009 Peter Johansson
     128Copyright (C) 2009, 2010 Peter Johansson
    121129
    122130This file is part of svndigest, http://dev.thep.lu.se/svndigest
Note: See TracChangeset for help on using the changeset viewer.