1. 10 3月, 2011 1 次提交
  2. 18 11月, 2010 1 次提交
  3. 21 7月, 2010 1 次提交
  4. 09 7月, 2010 1 次提交
  5. 26 6月, 2010 1 次提交
  6. 03 3月, 2010 1 次提交
  7. 06 1月, 2010 1 次提交
    • T
      t/lib-http.sh: Restructure finding of default httpd location · 0d344738
      Tarmigan Casebolt 提交于
      On CentOS 5, httpd is located at /usr/sbin/httpd, and the modules are
      located at /usr/lib64/httpd/modules.  To enable easy testing of httpd,
      we would like those locations to be detected automatically.
      
      uname might not be the best way to determine the default location for
      httpd since different Linux distributions apparently put httpd in
      different places, so we test a couple different locations for httpd,
      and use the first one that we come across.  We do the same for the
      modules directory.
      
      cc: Jay Soffian <jaysoffian@gmail.com>
      Signed-off-by: NTarmigan Casebolt <tarmigan+git@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      0d344738
  8. 02 6月, 2009 1 次提交
  9. 05 4月, 2009 1 次提交
  10. 26 2月, 2009 2 次提交
    • J
      test scripts: refactor start_httpd helper · 75318a3b
      Jeff King 提交于
      There are some redirects and some error checking that need
      to be done by the caller; let's move both into the
      start_httpd function so that all callers don't have to
      repeat them (there is only one caller now, but another will
      follow in this series).
      
      This doesn't violate any assumptions that aren't already
      being made by lib-httpd, which is happy to say "skipping"
      and call test_done for a number of other cases.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJay Soffian <jaysoffian@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      75318a3b
    • J
      Allow HTTP tests to run on Darwin · 69707d61
      Jay Soffian 提交于
      This patch allows the HTTP tests to run on OS X 10.5. It is not
      sufficient to be able to pass in LIB_HTTPD_PATH and
      LIB_HTTPD_MODULE_PATH alone, as the apache.conf also needs a couple
      tweaks.
      
      These changes are put into an <IfDefine> to keep them Darwin specific,
      but this means lib-httpd.sh needs to be modified to pass -DDarwin to
      apache when running on Darwin. As long as we're making this change to
      lib-httpd.sh, we may as well set LIB_HTTPD_PATH and
      LIB_HTTPD_MODULE_PATH to appropriate default values for the platform.
      
      Note that we now pass HTTPD_PARA to apache at shutdown as well.
      Otherwise apache will emit a harmless, but noisy warning that LogFormat
      is an unknown directive.
      Signed-off-by: NJay Soffian <jaysoffian@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      69707d61
  11. 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
  12. 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
  13. 09 7月, 2008 1 次提交
  14. 06 5月, 2008 1 次提交
  15. 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