%script usleep () { click -e "DriverManager(wait $1us)" } click -p 8000 -e "Idle -> s :: Switch(0) -> Idle; s[1] -> Idle" & usleep 50 nc localhost 8000 CSOUT %file CSIN read s.switch llrpc s#4004C005 write s.switch 1 read s.switch llrpc s#80044006 4 read s.switch write stop true %expect CSOUT Click::ControlSocket/1.{{\d+}} 200 Read handler{{.*}} DATA 1 0200 LLRPC{{.*}} DATA 4 200 Write handler{{.*}} 200 Read handler{{.*}} DATA 1 1200 LLRPC{{.*}} DATA 0 200 Read handler{{.*}} DATA 1 0200 Write handler{{.*}}