1
0
mirror of https://github.com/osmarks/ngircd.git synced 2025-01-19 20:12:53 +00:00
ngircd/src/testsuite
Dana Dahlstrom 6bd35bf090 Implement RFC 2812 handling of "0" argument to JOIN
The students in my software-engineering class are writing IRC clients in
Java, and I'm running ngIRCd as a sandbox for them to play in. We
noticed ngIRCd doesn't obey the "JOIN 0" command specified in RFC 2812:

   JOIN 0             ; Leave all currently joined
                      channels.

http://tools.ietf.org/html/rfc2812#section-3.2.1
I believe the following patch addresses this. Cheers!

[fw@strlen.de: put it into a seperate function]
2008-02-26 23:49:33 +01:00
..
.cvsignore Added .cvsignore files to hide generated files from CVS. 2006-12-28 13:20:07 +00:00
channel-test.e Implement RFC 2812 handling of "0" argument to JOIN 2008-02-26 23:49:33 +01:00
check-idle.e If nick name is already in use, interpret this as "clienst still connected". 2004-09-04 14:22:13 +00:00
connect-test.e - Test-Suite fuer den ngIRCd begonnen. 2002-09-09 10:16:24 +00:00
functions.inc Fixed echo without newline for systems not understanding "echo -n"; added 2004-09-06 22:04:06 +00:00
getpid.sh Added support for Solaris 11. 2006-08-05 00:15:28 +00:00
Makefile.am Adjust test suite to be usable on HP/UX 11.11 :-) 2007-11-18 15:07:16 +00:00
mode-test.e Updated tests to reflect last changes to MODE behaviour. 2004-03-10 20:40:06 +00:00
ngircd-test.conf Adjust test suite to be usable on HP/UX 11.11 :-) 2007-11-18 15:07:16 +00:00
README Added preliminary README text. 2004-09-04 13:58:31 +00:00
start-server.sh Fixed echo without newline for systems not understanding "echo -n"; added 2004-09-06 22:04:06 +00:00
stop-server.sh Fixed echo without newline for systems not understanding "echo -n"; added 2004-09-06 22:04:06 +00:00
stress-A.e Set timeout. 2005-08-12 21:35:12 +00:00
stress-B.e Modified expect script to work with servers having IDENT support. 2005-12-30 22:12:28 +00:00
stress-server.sh Added test if the stress-test expect script itself completes without errors. 2005-12-30 22:13:21 +00:00
test-loop.sh Enhanced messages and exit codes. 2004-09-04 19:14:46 +00:00
tests.sh Fixed echo without newline for systems not understanding "echo -n"; added 2004-09-06 22:04:06 +00:00
wait-tests.sh Detect source directory correctly. 2005-08-12 21:34:19 +00:00

                     ngIRCd - Next Generation IRC Server

                      (c)2001-2004 by Alexander Barton,
                    alex@barton.de, http://www.barton.de/

               ngIRCd is free software and published under the
                   terms of the GNU General Public License.

		       -- README for the Test Suite --


I. Overview
~~~~~~~~~~~

The purpose of the "test suite" contained in this directory is to detect
bugs and incompatibilities in ngIRCd introduced during coding and after
building ngIRCd on a specific platform.

To run the "standard" tests call "make check". It will build ngIRCd (if
required) and run some tests on it. These tests should be portable and run
on all supported platforms without errors.

Please note: most tests of this suite depend on the external tools expect(1)
and telnet(1), so make sure you have them installed. If not, the tests will
not fail but simply be skipped.


II. Shell Scripts
~~~~~~~~~~~~~~~~

getpid.sh <name>

	This script is used to detect the PID of the running process with
	the given name in a portable manner. The result is echoed on the
	console. It is a helper script for some other scripts of this suite.

start-server.sh

	start-server.sh starts up the test binary, "T-ngircd". It makes sure
	that getpid.sh is available and working, and that no other instance
	of the test binary is already running.
	The exit code is 0 if the test binary could be started.

stop-server.sh

	This script uses getpid.sh to detect a running test binary "T-ngircd"
	and then shuts it down using the TERM signal.
	The exit code is 0 if the test binary could be stopped.

stress-server.sh

	...

tests.sh

	...


III. Scripts for expect(1)
~~~~~~~~~~~~~~~~~~~~~~~~~~

channel-test.e
check-idle.e
connect-test.e
mode-test.e
stress-A.e
stress-B.e


-- 
$Id: README,v 1.1 2004/09/04 13:58:31 alex Exp $