diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2025-01-06 17:13:30 +0100 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2025-01-08 06:40:52 +0100 |
commit | 278a7f95a9f50489f371b7137eff8a342b494fdf (patch) | |
tree | f23a43d502e4b7575801bdf4963e153419a2b0af /test | |
parent | a8575ab8757c3c22c534bcebd2558c712bc6df90 (diff) | |
download | xK-278a7f95a9f50489f371b7137eff8a342b494fdf.tar.gz xK-278a7f95a9f50489f371b7137eff8a342b494fdf.tar.xz xK-278a7f95a9f50489f371b7137eff8a342b494fdf.zip |
Port the integration test from expect to wdye
Diffstat (limited to 'test')
-rwxr-xr-x | test | 52 |
1 files changed, 0 insertions, 52 deletions
@@ -1,52 +0,0 @@ -#!/usr/bin/expect -f -# Very basic end-to-end testing for CI -set tempdir [exec mktemp -d] -set ::env(XDG_CONFIG_HOME) $tempdir - -# Run the daemon to test against -system ./xD --write-default-cfg -spawn ./xD -d - -# 10 seconds is a bit too much -set timeout 5 - -spawn ./xC - -# Fuck this Tcl shit, I want the exit code -expect_after { - eof { - puts "" - puts "Child exited prematurely" - exit 1 - } -} - -# Connect to the daemon -send "/server add localhost\n" -expect "]" -send "/set servers.localhost.addresses = \"localhost\"\n" -expect "Option changed" -send "/disconnect\n" -expect "]" -send "/connect\n" -expect "Welcome to" - -# Try some chatting -send "/join #test\n" -expect "has joined" -send "Hello\n" -expect "Hello" - -# Attributes -send "\x1bmbBold text! \x1bmc0,5And colors.\n" -expect "]" - -# Try basic commands -send "/set\n" -expect "]" -send "/help\n" -expect "]" - -# Quit -send "/quit\n" -expect "Shutting down" |