about summary refs log tree commit diff
path: root/src/testsuite
AgeCommit message (Collapse)Author
2013-02-22src/testsuite/README: add whois-test.eAlexander Barton
2012-12-25Add Cygwin binaries (*.exe) to .gitignore filesAlexander Barton
2012-11-13Test suite: correctly execute tests when stdout is redirectedAlexander Barton
2012-11-04Test suite: add some "remote checks" to whois-test.eAlexander Barton
2012-10-19Update error messages for user mode +b and channel Mode +M.DNS777
Replaced error message for channel mode +M with ERR_NEEDREGGEDNICK_MSG (used by Bahamut, inspircd, ircu & Unreal too) and using numeric 477 and the msg simliar like inspircd. Replaced the error message ERR_CANNOTSENDTONICK_MSG for user mode +b with ERR_NONONREG_MSG and using numeric 486, similar like unrealircd. (cherry picked from commit 55a61ab17f63a9e757b7c7598c31b98ce5a132e8 and commit 3737d9ab7da1ea0485cefc07c65dc5308bf0db02)
2012-10-15Test suite: add more checks to whois-test.eAlexander Barton
2012-10-08Test suite: add test for user mode "b"Alexander Barton
2012-10-06Test suite: make expect scripts more verboseAlexander Barton
Now tests.sh transforms each expect script it executes using sed(1) and inserts a 'puts -nonewline stderr "."' in front of each "expect" command.
2012-10-06Test suite: remove indentation of messagesAlexander Barton
2012-09-27Test suite: don't use "mkdir -p"Alexander Barton
"mkdir -p" is not supported on all platforms. Tested with Apple A/UX 3.1.x.
2012-09-27Fix getpid.sh to work on Apple A/UX againAlexander Barton
2012-09-24Remove all geneerated Makefile.am on "make maintainer-clean"Alexander Barton
2012-09-24Merge branch 'automake-am11-am12'Alexander Barton
* automake-am11-am12: autogen.sh: detect automake version format a.b.c and a.b configure.ng: don't require GIT tree to detect version string Include .mailmap file in distribution archives Include all build-system files into distribution archives Change build system to support new and old GNU automake
2012-09-24automake: don't use INCLUDES, it's AM_CPPFLAGS nowadaysAlexander Barton
2012-09-24Include all build-system files into distribution archivesAlexander Barton
2012-09-23Change build system to support new and old GNU automakeAlexander Barton
Starting with GNU automake 1.12, the "de-ANSI-fication support" has been removed, which ngIRCd used to enable building itself on very old systems. Now the problem is, that using automake >= 1.12 isn't working because of the now unsupported M4 macros. Therefore the solution that this patch implements is to dynamically generate the automake input files with our own ./autogen.sh script: configure.ng => configure.in Makefile.ng => Makefile.am This is quite an ugly approach, but it works and enables us to: 1. use current automake >= 1.12 for development and "private builds", 2. still build distribution archives using automake 1.11.x that have "de-ANSI-fication support" enabled in the generated Makefile's. And if you are using Makefile's generated with a automake version newer than 1.11.x (without "de-ANSI-fication support"), the ./configure script warns you not to use this generated build system to generate distribution archives. Drawback of this patch: you MUST use our autogen.sh script, you can't call the autoconf/automake commands directly any more; but autoreconf should still work ...
2012-08-06Tests and documentation for xopSebastian Köhler
2012-03-03getpid.sh: Fix testcase error for Debian using sbuildChristoph Biedl
When * building the ngircd Debian package (on Linux at least) and * using the sbuild build system, the command "ps -af" does not include the commands running inside the sbuild system. Therefore, start-server.sh will report a fail as getpid.sh cannot not find the ./T-ngircd1 just started although it's actually running. This results in a funny build log ... starting server 1 ... failure! FAIL: start-server1 running connect-test ... ok. PASS: connect-test The self-test of getpid.sh however will likely succeed as it's happy if it sees any process with "sh" somewhere in the name. Things go downhill from there. The confusing things are: * The alternative cowbuilder/pbuilder does not have this problem. * The alternative usage "ps ax" does fine. So, as a quick hack, the patch attached adds another switch to getpid.sh.
2012-01-21PRIVMSG/NOTICE: handle nick!user@host masks case-insensitiveAlexander Barton
And enhance our test suite to check this a little bit better :-)
2011-12-30Fixed handling of WHO commandsAlexander Barton
This fixes two bugs: - "WHO <nick>" returned nothing at all if the user was "+i" (reported by Cahata, thanks). - "WHO <nick|nickmask>" returned channel names instead of "*" when the user was member of a (visible) channel. Clean up code and add documentation as well.
2011-11-10whois-test: handle local hostname = "localhost.localdomain"Alexander Barton
Use the pattern "localhost*" for valid local hostnames.
2011-08-22Testsuite: bind to loopback (127.0.0.1) interface onlyAlexander Barton
2011-07-30Testsuite: make getpid.sh work even when run as rootAlexander Barton
Use ps(1) flag "-a" (as well as "-f"): "Select all processes except both session leaders (see getsid(2)) and processes not associated with a terminal." Thanks to Götz Hoffart for reporting this problem!
2011-06-25Testsuite: update configuration files for new config file formatAlexander Barton
2011-03-19Add "whois-test" to testsuite and distribution archiveAlexander Barton
Test script proposed by Dana Dahlstrom, 2008-02-17. See <https://arthur.barton.de/bugzilla/show_bug.cgi?id=72> ...
2011-03-19Add support for up to 3 targets in WHOIS queries.Florian Westphal
also allow up to one wildcard query from local hosts. Follows ircd 2.10 implementation rather than RFC 2812. At most 10 entries are returned per wildcard expansion. WHOIS test cases by Dana Dahlstrom.
2011-01-19ngircd-test2.conf: really disable Ident and PAM ...Alexander Barton
2011-01-18Add [Features] section to ngircd-test{1|2}.confAlexander Barton
Fix commit 5a34bb203a: It is not enough to strip the "No" prefix from "Ident" and "PAM", but we have to introduce the new [Features] section to fix all warning messages of ngIRCd. Variables "Ident" and "PAM" in [Global] are completely wrong :-(
2011-01-18Update testsuite configuration: strip No... prefixesAlexander Barton
2010-07-13Set NoPAM=yes in configuration files used for the testsuiteAlexander Barton
2009-03-07testsuite: add more predefined channels to server configFlorian Westphal
make sure it creates & and +, and accepts channel names without a special character (ngircd should treat 'Name = chan' as 'Name = #chan').
2008-12-03Testsuite start-server.sh: return correct exit code.Alexander Barton
src/testsuite/start-server.sh returns 0 when no errors occurred and the daemon has been startet and 1 on errors. Always returning 0 is wrong ...
2008-12-03Make testsuite (getpid.sh) work on OpenSolaris (i386/pc/solaris2.11).Alexander Barton
2008-11-19New configuration option "NoIdent" to disable IDENT lookupsAlexander Barton
The new configuration option "NoIdent" in ngircd.conf can be used to disable IDENT lookups even when the ngIRCd daemon is compiled with IDENT lookups enabled.
2008-11-13Test suite: start two servers and test server-server linksAlexander Barton
I changed the test suite to start two test servers (on port 6789 and 6790), so server-server links can be tested as well for which I included the new test script "server-link-test.e". In addition the documentation of the test suite (src/testsuite/README) has been updated and is more complete now.
2008-07-27GIT: added src/testsuite/message-test to ignore list.Alexander Barton
2008-07-27message-test: Disable two tests using "localhost" as host nameAlexander Barton
Some operating systems, for example OpenBSD and OpenSolaris, use "localhost.<domain>" instead of just "localhost" for 127.0.0.1, so the "message-test" using "localhost" failed on such systems. Don't have an idee how to make this work on all platforms ... :-/ So I simply disabled the two affected tests to make the testsuite run on OpenBSD and OpenSolaris again.
2008-07-27Added "message-test" to Makefile, so it is distrubuted and run.Alexander Barton
2008-07-27Cleaned up PRIVMSG and NOTICE patches.Brandon Beresini
2008-07-27Cumulative Message PatchBrandon Beresini
2008-07-21Fixes to misc-test: accept "localhost.<domain>" as well as "localhost"Alexander Barton
Some operating systems, for example OpenBSD, use "localhost.<domain>" instead of "localhost", so the "who-test" expecting "localhost" failed on such systems. (Please see 149859c5fecc..., which fixes this for the who-test already)
2008-05-15Add tests for MOTD, VERSION, TIME, USERHOSTBrandon Beresini
The misc-test.e file is also somewhat reorganized and commented here. Patch from Brandon Beresini, Bryan Caldwell and Dana Dahlstrom.
2008-05-11GIT: ignore symbolic links to tests in testsuite directoryAlexander Barton
Added symbolic links to new tests (invite-test, join-test, and kick-test) to .gitignore file.
2008-05-11Fixes to who-test: accept "localhost.<domain>" as well as "localhost"Alexander Barton
Some operating systems, for example OpenBSD, use "localhost.<domain>" instead of "localhost", so the "who-test" expecting "localhost" failed on such systems.
2008-05-09Removed space after # so that Cygwin's version of expect recognizes comments.Brandon Beresini
2008-05-09Fix secret channel information leakAli Shemiran
/who on a secret channel that the user is not a member of now returns proper RPL_ENDOFWHO_MSG instead of nothing.
2008-05-05Add invite-test.e to test suite.Florian Westphal
2008-05-05Tests for the INVITE command.Dana Dahlstrom
2008-05-05tests for JOIN and various repliesDana Dahlstrom
Brandon Beresini sent me a patch yesterday adding tests for JOIN under various circumstances, which I believe he worked on with Bryan Caldwell and Ali Shemiran. I made a few modifications; the result is below.
2008-05-05Allow KICK to handle comma-delimited lists (of channels, nicks).Bryan Caldwell
includes test cases. [fw@strlen.de: - move code around to avoid duplication - use const where possible - integrate test case]