git.ucc.asn.au
/
tpg
/
opendispense2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed client returning 0 for error conditions (zero gives specifically)
[tpg/opendispense2.git]
/
RunServerTest
diff --git
a/RunServerTest
b/RunServerTest
index
27d943b
..
a72a3fa
100755
(executable)
--- a/
RunServerTest
+++ b/
RunServerTest
@@
-1,8
+1,22
@@
#!/bin/sh
#!/bin/sh
-ARGS="--itemsfile items.cfg -p 11020 --cokeport /dev/ttyUSB0"
+ARGS="--itemsfile items.cfg -p 11020"
+ARGS=$ARGS" --cokeport /dev/ttyUSB0"
+ARGS=$ARGS" -d 2"
-if [ "x$1" != "x" ]; then
+if [ "x$2" != "x" ]; then
+ _cokebank=$1
+else
+ _cokebank="sqlite"
+fi
+
+rm cokebank.so
+rm cokebank.db
+
+ln -s cokebank_$_cokebank.so cokebank.so
+ln -s cokebank_$_cokebank.db cokebank.db
+
+if [ "x$1" = "xdbg" ]; then
LD_LIBRARY_PATH=. gdb --args ./dispsrv $ARGS
else
LD_LIBRARY_PATH=. ./dispsrv $ARGS
LD_LIBRARY_PATH=. gdb --args ./dispsrv $ARGS
else
LD_LIBRARY_PATH=. ./dispsrv $ARGS
UCC
git Repository :: git.ucc.asn.au