-2005-05-13 Michael Poole <mdpoole@troilus.org>
+2005-06-16 Michael Poole <mdpoole@troilus.org>
+
+ * include/ircd_string.h: Include necessary <string.h> header.
+
+ * ircd/test/.cvsignore: Ignore log output files.
+
+ * ircd/test/Makefile.in: Remove log output files.
+
+ * ircd/test/kill-block-1.cmd: Add sleeps to try to trigger Kills.
+
+ * ircd/test/run-tests.sh: Switch sense of argument. Send an IRC
+ debug dump to log files.
+
+2005-06-13 Michael Poole <mdpoole@troilus.org>
* ircd/s_user.c (make_user): Unconditionally increment userCount.
(free_user): Unconditionally decrement it here.
ban-walking loop. Add missing "e" to "members".
-2005-05-10 Michael Poole <mdpoole@troilus.org>
+2005-06-10 Michael Poole <mdpoole@troilus.org>
* ircd/match.c (check_if_ipmask): Strings that contain '?' cannot
be true IP masks.
*/
#ifndef INCLUDED_ircd_string_h
#define INCLUDED_ircd_string_h
+
+#include <string.h> /* for DupString()'s strcpy, strlen */
+
#ifndef INCLUDED_ircd_chattr_h
#include "ircd_chattr.h"
#endif
ircd_chattr_t
ircd_in_addr_t
ircd_string_t
+*.log
rm -f Makefile
clean:
- rm -f core *.o ${TESTPROGS}
+ rm -f core *.o *.log ${TESTPROGS}
# DO NOT DELETE THIS LINE (or the blank line after it) -- make depend depends on them.
connect cl1 Alex sub7 %srv% :s7server
connect cl2 Chloe chloe %srv% :Chloe
+cl1 sleep 30
+cl2 sleep 30
#! /bin/sh
+
set -e
-srcdir=$1
+srcdir=`dirname $0`
+ircdir=$1
+
cp ${srcdir}/ircd-t1.conf ircd-t1.conf
cp ${srcdir}/ircd-t2.conf ircd-t2.conf
echo "Testing one-shot ircd invocations."
-../ircd -v
-../ircd -x 6 -k -d . -f ircd-t1.conf -c user@127.0.0.1
+${ircdir}/ircd -v
+${ircdir}/ircd -x 6 -k -d . -f ircd-t1.conf -c user@127.0.0.1
echo "Starting ircd."
-../ircd -d . -f ircd-t1.conf
-../ircd -d . -f ircd-t2.conf
+${ircdir}/ircd -d . -f ircd-t1.conf
+${ircdir}/ircd -d . -f ircd-t2.conf
sleep 10
# stats-1 is out of alphabetical order to avoid triggering IPcheck.
-for script in channel-1 client-1 command-1 feature-1 gline-1 stats-1 jupe-1 kill-block-1 ; do
+for script in channel-1 client-1 commands-1 feature-1 gline-1 stats-1 jupe-1 kill-block-1 ; do
echo "Running test $script."
- ${srcdir}/test-driver.pl ${srcdir}/${script}.cmd
+ ${srcdir}/test-driver.pl -D ${srcdir}/${script}.cmd 2> ${script}.log
done
echo "Sending signals to server."
cp ${srcdir}/ircd-t1-2.conf ircd-t1.conf
sleep 610
kill -TERM `cat ircd-t1.pid` `cat ircd-t2.pid`
sleep 1
-../ircd -? || true
+${ircdir}/ircd -? || true