%require [ `whoami` = root ] %script click-install -e "Idle -> s :: Switch(0) -> Idle; s[1] -> Idle" (sleep 1 && nc localhost 8000 CSOUT) & click -e "khp::KernelHandlerProxy; ControlSocket(TCP, 8000, PROXY khp); DriverManager(wait_time 2s)" click-uninstall %file CSIN read s.switch llrpc s#4004C005 write s.switch 1 read s.switch llrpc s#80044006 4 read s.switch %expect CSOUT Click::ControlSocket/1.{{\d+}} 200 Read handler{{.*}} DATA 2 0 200 LLRPC{{.*}} DATA 4 200 Write handler{{.*}} 200 Read handler{{.*}} DATA 2 1 200 LLRPC{{.*}} DATA 0 200 Read handler{{.*}} DATA 2 0