diff --git a/streamApp/tests/streamtestlib.tcl b/streamApp/tests/streamtestlib.tcl index 9c7f2eb..9c5103f 100644 --- a/streamApp/tests/streamtestlib.tcl +++ b/streamApp/tests/streamtestlib.tcl @@ -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] diff --git a/streamApp/tests/testPercent b/streamApp/tests/testPercent index fc78c27..80ec33a 100755 --- a/streamApp/tests/testPercent +++ b/streamApp/tests/testPercent @@ -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 diff --git a/streamApp/tests/testStreamBuffer b/streamApp/tests/testStreamBuffer index e284abe..51bfb5f 100755 --- a/streamApp/tests/testStreamBuffer +++ b/streamApp/tests/testStreamBuffer @@ -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"