stress-B.e 872 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. # ngIRCd test suite
  2. # "Stress" body
  3. send "user user . . :User\r"
  4. expect {
  5. timeout { exit 1 }
  6. " 376"
  7. }
  8. sleep 2
  9. send "oper TestOp 123\r"
  10. expect {
  11. timeout { exit 1 }
  12. "MODE test* :+o"
  13. }
  14. expect {
  15. timeout { exit 1 }
  16. " 381 test"
  17. }
  18. sleep 2
  19. send "join #channel\r"
  20. expect {
  21. timeout { exit 1 }
  22. " 353 * = #channel "
  23. }
  24. expect {
  25. timeout { exit 1 }
  26. " 366 * #channel :"
  27. }
  28. send "mode #channel\r"
  29. expect {
  30. timeout { exit 1 }
  31. " 324 test* #channel"
  32. }
  33. send "join #channel2\r"
  34. expect {
  35. timeout { exit 1 }
  36. " 353 * = #channel2 "
  37. }
  38. expect {
  39. timeout { exit 1 }
  40. " 366 * #channel2 :"
  41. }
  42. send "names\r"
  43. expect {
  44. timeout { exit 1 }
  45. " 366 "
  46. }
  47. sleep 3
  48. send "part #channel2\r"
  49. expect {
  50. timeout { exit 1 }
  51. " PART #channel2 "
  52. }
  53. send "part #channel\r"
  54. expect {
  55. timeout { exit 1 }
  56. " PART #channel "
  57. }
  58. sleep 1
  59. send "quit\r"
  60. expect {
  61. timeout { exit 1 }
  62. "Connection closed"
  63. }