]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/testsuite/start-server.sh
- Test-Suite fuer den ngIRCd begonnen.
[ngircd-alex.git] / src / testsuite / start-server.sh
diff --git a/src/testsuite/start-server.sh b/src/testsuite/start-server.sh
new file mode 100755 (executable)
index 0000000..11b8121
--- /dev/null
@@ -0,0 +1,15 @@
+#!/bin/sh
+# ngIRCd Test Suite
+# $Id: start-server.sh,v 1.1 2002/09/09 10:16:24 alex Exp $
+
+echo "      starting server ..."
+
+echo "This is an ngIRCd Test Server" > ngircd-test.motd
+
+../ngircd/ngircd -np -f ngircd-test.conf > ngircd-test.log 2>&1 &
+sleep 1
+
+pid=`ps a | grep ngircd-test | head -n 1 | cut -d ' ' -f 1`
+kill -0 $pid > /dev/null 2>&1
+
+# -eof-