diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2010-07-02 14:59:46 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-07-05 11:23:41 -0700 |
commit | 2fac6a4b93c29c0e7226337d76097ea1e61e072d (patch) | |
tree | 605f4fcbf85db432698a987b588fe69362aee08e | |
parent | t/README: Document the prereq functions, and 3-arg test_* (diff) | |
download | tgif-2fac6a4b93c29c0e7226337d76097ea1e61e072d.tar.xz |
t/README: Document test_external*
There was do documentation for the test_external_without_stderr and
test_external functions.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r-- | t/README | 27 |
1 files changed, 27 insertions, 0 deletions
@@ -330,6 +330,33 @@ library for your script to use. test_done fi + - test_external [<prereq>] <message> <external> <script> + + Execute a <script> with an <external> interpreter (like perl). This + was added for tests like t9700-perl-git.sh which do most of their + work in an external test script. + + test_external \ + 'GitwebCache::*FileCache*' \ + "$PERL_PATH" "$TEST_DIRECTORY"/t9503/test_cache_interface.pl + + If the test is outputting its own TAP you should set the + test_external_has_tap variable somewhere before calling the first + test_external* function. See t9700-perl-git.sh for an example. + + # The external test will outputs its own plan + test_external_has_tap=1 + + - test_external_without_stderr [<prereq>] <message> <external> <script> + + Like test_external but fail if there's any output on stderr, + instead of checking the exit code. + + test_external_without_stderr \ + 'Perl API' \ + "$PERL_PATH" "$TEST_DIRECTORY"/t9700/test.pl + + Tips for Writing Tests ---------------------- |