@@ -0,0 +1,839 @@
+#!/usr/bin/env python%0A%0Afrom testWrt import testsetup%0Afrom testWrt.lib import SSHOpenWrt, OpenWrtLog%0A%0ASSHOpenWrt = type('Base', (SSHOpenWrt, OpenWrtLog), %7B%7D)%0A%0Aif __name__ == %22__main__%22:%0A    ts = testsetup.create_generic()%0A    device = SSHOpenWrt(hostname=%22192.168.1.1%22, password=%22test%22)%0A%0A    if device.ping():%0A        device.log(%22reachable%22)%0A    else:%0A        device.log(%22not reachable%22)%0A%0A    if device.portscan(22):%0A        device.log(%22SSH running%22)%0A    else:%0A        device.log(%22SSH not running%22)%0A%0A    syslog = device.spawn_logserver(%22192.168.1.2%22, 5555)%0A%0A    msg = %22This IS a test%22%0A    msg_seen = False%0A%0A    while not msg_seen:%0A        device.execute(%22logger %25s%22 %25 msg)%0A        if msg in syslog.read():%0A            msg_seen = True%0A%0A    device.log(%22Message successfully received on %25s:%25s%22 %25%0A               (syslog.hostname, syslog.port))%0A

Add logread test