1. 20 1月, 2009 1 次提交
    • M
      use uppercase POSIX compliant signals for the 'trap' command · 35641310
      Markus Heidelberg 提交于
      In 'man 1p trap' there is written:
      
          "Implementations may permit names with the SIG prefix or ignore case
          in signal names as an extension."
      
      So change the lowercase signals to uppercase, which is POSIX compliant
      instead of being an extension.
      
      There wasn't anybody claiming that it doesn't work, but there was a bug
      with using a signal with the SIG prefix, which is an extension as well.
      So let's play it safe and change it, since it doesn't hurt anyone.
      
      While at it, also convert 8 indentation spaces to 1 tab character.
      Signed-off-by: NMarkus Heidelberg <markus.heidelberg@web.de>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      35641310
  2. 17 8月, 2008 1 次提交
    • J
      tests: use $TEST_DIRECTORY to refer to the t/ directory · bfdbee98
      Junio C Hamano 提交于
      Many test scripts assumed that they will start in a 'trash' subdirectory
      that is a single level down from the t/ directory, and referred to their
      test vector files by asking for files like "../t9999/expect".  This will
      break if we move the 'trash' subdirectory elsewhere.
      
      To solve this, we earlier introduced "$TEST_DIRECTORY" so that they can
      refer to t/ directory reliably.  This finally makes all the tests use
      it to refer to the outside environment.
      
      With this patch, and a one-liner not included here (because it would
      contradict with what Dscho really wants to do):
      
      | diff --git a/t/test-lib.sh b/t/test-lib.sh
      | index 70ea7e0..60e69e4 100644
      | --- a/t/test-lib.sh
      | +++ b/t/test-lib.sh
      | @@ -485,7 +485,7 @@ fi
      |  . ../GIT-BUILD-OPTIONS
      |
      |  # Test repository
      | -test="trash directory"
      | +test="trash directory/another level/yet another"
      |  rm -fr "$test" || {
      |         trap - exit
      |         echo >&5 "FATAL: Cannot prepare test area"
      
      all the tests still pass, but we would want extra sets of eyeballs on this
      type of change to really make sure.
      
      [jc: with help from Stephan Beyer on http-push tests I do not run myself;
       credits for locating silly quoting errors go to Olivier Marin.]
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      bfdbee98
  3. 09 7月, 2008 1 次提交
  4. 06 5月, 2008 1 次提交
  5. 28 2月, 2008 1 次提交
    • C
      http-push: add regression tests · faa4bc35
      Clemens Buchacher 提交于
      http-push tests require a web server with WebDAV support.
      
      This commit introduces a HTTPD test library, which can be configured using
      the following environment variables.
      
      GIT_TEST_HTTPD		enable HTTPD tests
      LIB_HTTPD_PATH		web server path
      LIB_HTTPD_MODULE_PATH	web server modules path
      LIB_HTTPD_PORT		listening port
      LIB_HTTPD_DAV		enable DAV
      LIB_HTTPD_SVN		enable SVN
      LIB_HTTPD_SSL		enable SSL
      Signed-off-by: NClemens Buchacher <drizzd@aon.at>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      faa4bc35