X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=RunServerTest;h=a72a3faeb48b5403c651d6b9e18104a1e09fb025;hb=91d11fd7f9bf911c6abc59a18e17ec5890cee148;hp=99661763ad292bc23cad04d6e1a649ecab6f80f3;hpb=dfa4eb21fc9e7cc2bfa912581d38aaee04f3b990;p=tpg%2Fopendispense2.git diff --git a/RunServerTest b/RunServerTest index 9966176..a72a3fa 100755 --- a/RunServerTest +++ b/RunServerTest @@ -2,8 +2,21 @@ 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