README 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. ngIRCd - Next Generation IRC Server
  2. (c)2001-2004 by Alexander Barton,
  3. alex@barton.de, http://www.barton.de/
  4. ngIRCd is free software and published under the
  5. terms of the GNU General Public License.
  6. -- README for the Test Suite --
  7. I. Overview
  8. ~~~~~~~~~~~
  9. The purpose of the "test suite" contained in this directory is to detect
  10. bugs and incompatibilities in ngIRCd introduced during coding and after
  11. building ngIRCd on a specific platform.
  12. To run the "standard" tests call "make check". It will build ngIRCd (if
  13. required) and run some tests on it. These tests should be portable and run
  14. on all supported platforms without errors.
  15. Please note: most tests of this suite depend on the external tools expect(1)
  16. and telnet(1), so make sure you have them installed. If not, the tests will
  17. not fail but simply be skipped.
  18. II. Shell Scripts
  19. ~~~~~~~~~~~~~~~~
  20. getpid.sh <name>
  21. This script is used to detect the PID of the running process with
  22. the given name in a portable manner. The result is echoed on the
  23. console. It is a helper script for some other scripts of this suite.
  24. start-server.sh
  25. start-server.sh starts up the test binary, "T-ngircd". It makes sure
  26. that getpid.sh is available and working, and that no other instance
  27. of the test binary is already running.
  28. The exit code is 0 if the test binary could be started.
  29. stop-server.sh
  30. This script uses getpid.sh to detect a running test binary "T-ngircd"
  31. and then shuts it down using the TERM signal.
  32. The exit code is 0 if the test binary could be stopped.
  33. stress-server.sh
  34. ...
  35. tests.sh
  36. ...
  37. III. Scripts for expect(1)
  38. ~~~~~~~~~~~~~~~~~~~~~~~~~~
  39. channel-test.e
  40. check-idle.e
  41. connect-test.e
  42. mode-test.e
  43. stress-A.e
  44. stress-B.e
  45. --
  46. $Id: README,v 1.1 2004/09/04 13:58:31 alex Exp $