mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Add test for shell module
This commit is contained in:
@@ -381,4 +381,14 @@ TEST_F(ZNCTest, InvalidConfigInChan) {
|
||||
znc->ShouldFinishItself(1);
|
||||
}
|
||||
|
||||
TEST_F(ZNCTest, ShellModule) {
|
||||
auto znc = Run();Z;
|
||||
auto ircd = ConnectIRCd();Z;
|
||||
auto client = LoginClient();Z;
|
||||
client.Write("znc loadmod shell");
|
||||
client.Write("PRIVMSG *shell :echo blahblah");
|
||||
client.ReadUntil("PRIVMSG nick :blahblah");
|
||||
client.ReadUntil("PRIVMSG nick :znc$");
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user