Files
StreamDevice/streamApp/tests/testPercent
2011-02-24 16:10:11 +00:00

34 lines
594 B
Tcl
Executable File

#!/usr/bin/env tclsh
source streamtestlib.tcl
# Define records, protocol and startup (text goes to files)
# The asynPort "device" is connected to a network TCP socket
# Talk to the socket with send/receive/assure
# Send commands to the ioc shell with ioccmd
set records {
record (longout, "DZ:test1")
{
field (DTYP, "stream")
field (OUT, "@test.proto test1 device")
}
}
set protocol {
Terminator = LF;
test1 {out "\%\e%d\e\e\%";}
}
set startup {
var streamDebug 1
}
set debug 0
startioc
ioccmd {dbpf DZ:test1 1}
assure "%\0331\033\033%\n"
finish