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