git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH/RFC] git-cvsserver: Add a basic test file for cvsserver

From
Junio C Hamano <junkio@cox.net>
Date
May 1, 2007, 08:50 UTC
Message-ID
<7vfy6h7wsb.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<11778774271937-git-send-email-frank@lichtenheld.de>
Frank Lichtenheld <frank@lichtenheld.de> writes:
Show 16 quoted lines
> Contains only one test (checkout) at this point and is
> mostly indented to be used as a RFC to discuss
> how to properly implement tests for git-cvsserver.
>
> Currently the test uses netcat to run git-cvsserver
> pserver on a unprivilegded port.
>
> Signed-off-by: Frank Lichtenheld <frank@lichtenheld.de>
> ---
>  t/t9400-git-cvsserver-read.sh |   56 +++++++++++++++++++++++++++++++++++++++++
>  1 files changed, 56 insertions(+), 0 deletions(-)
>  create mode 100644 t/t9400-git-cvsserver-read.sh
>
>  Since this is my first test script for git I would welcome comments
>  and suggestions. Especially if someone has a simpler method of
>  testing it than the somewhat fragile netcat hack I used.

Yes, before reading this three-line paragraph, use of netcat and hardcoded port number made my eyebrows raise.

But a git-cvsserver test suite that can be run from "make test" is a really good thing to have for us.

I haven't pursued this but have you considered :fork: connect method instead of :ext:, so that you do not have to use pserver nor ssh connection?

Previous: Frank LichtenheldNext: Frank Lichtenheld
Message 2 of 4 in “git-cvsserver: Add a basic test file for cvsserver”
  1. git-cvsserver: Add a basic test file for cvsserverFrank Lichtenheld, Apr 29, 2007
  2. Junio C HamanoMay 1, 2007
  3. Frank LichtenheldMay 1, 2007
  4. cvsserver: Add test cases for git-cvsserverFrank Lichtenheld, May 2, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.