Experimental IRC client, daemon and bot
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

test 852B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #!/usr/bin/expect -f
  2. # Very basic end-to-end testing for Travis CI
  3. # Run the daemon to test against
  4. system ./kike --write-default-cfg
  5. spawn ./kike -d
  6. # 10 seconds is a bit too much
  7. set timeout 5
  8. spawn ./degesch
  9. # Fuck this Tcl shit, I want the exit code
  10. expect_after {
  11. eof {
  12. puts ""
  13. puts "Child exited prematurely"
  14. exit 1
  15. }
  16. }
  17. # Connect to the daemon
  18. send "/server add localhost\n"
  19. expect "]"
  20. send "/set servers.localhost.addresses = \"localhost\"\n"
  21. expect "Option changed"
  22. send "/disconnect\n"
  23. expect "]"
  24. send "/connect\n"
  25. expect "Connection established"
  26. # Try some chatting
  27. send "/join #test\n"
  28. expect "has joined"
  29. send "Hello\n"
  30. expect "Hello"
  31. # Attributes
  32. send "\x1bmbBold text! \x1bmc0,5And colors.\n"
  33. expect "]"
  34. # Try basic commands
  35. send "/set\n"
  36. expect "]"
  37. send "/help\n"
  38. expect "]"
  39. # Quit
  40. send "/quit\n"
  41. expect "Shutting down"