tests updated
This commit is contained in:
@ -62,14 +62,17 @@ proc startioc {} {
|
||||
puts $fd "streamApp_registerRecordDeviceDriver"
|
||||
}
|
||||
puts $fd "streamSetLogfile StreamDebug.log"
|
||||
puts $fd "var streamDebug 1"
|
||||
puts $fd "var streamError 1"
|
||||
puts $fd "epicsEnvSet STREAM_PROTOCOL_PATH ."
|
||||
puts $fd "drvAsynIPPortConfigure device localhost:$port"
|
||||
if [info exists startup] {
|
||||
puts $fd $startup
|
||||
}
|
||||
puts $fd "dbLoadRecords test.db"
|
||||
puts $fd $startup
|
||||
puts $fd "iocInit"
|
||||
puts $fd "dbl"
|
||||
puts $fd "dbior stream 2"
|
||||
puts $fd "var streamDebug 1"
|
||||
close $fd
|
||||
if [info exists streamversion] {
|
||||
set ioc [open "|iocsh test.cmd >& $testname.ioclog 2>@stderr" w]
|
||||
|
@ -16,7 +16,7 @@ set records {
|
||||
|
||||
set protocol {
|
||||
Terminator = LF;
|
||||
test1 {out "\%\e%d\e\e\%";}
|
||||
test1 {out "\%\e%d%%\e\e\%";}
|
||||
}
|
||||
|
||||
set startup {
|
||||
@ -28,6 +28,6 @@ set debug 0
|
||||
startioc
|
||||
|
||||
put DZ:test1 1
|
||||
assure "%\0331\033\033%\n"
|
||||
assure "%\0331%\033\033%\n"
|
||||
|
||||
finish
|
||||
|
@ -63,7 +63,7 @@ fi
|
||||
for o in $O
|
||||
do
|
||||
g++ -I ../../src $o test.cc -o test.exe
|
||||
test.exe
|
||||
./test.exe
|
||||
if [ $? != 0 ]
|
||||
then
|
||||
echo -e "\033[31;7mTest failed.\033[0m"
|
||||
|
Reference in New Issue
Block a user