X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=RunServerTest;h=b117c703908f2871a8efbe52a22a9f5c0b97ac12;hb=f8ff5876b5787375fe629450d0c5d088965720d0;hp=0029d1aad1b33d4ad74c24d1ed72e40b14bc6e3b;hpb=41582cb84bded83614e11b1c115deea13e1914cc;p=tpg%2Fopendispense2.git diff --git a/RunServerTest b/RunServerTest index 0029d1a..b117c70 100755 --- a/RunServerTest +++ b/RunServerTest @@ -3,7 +3,19 @@ ARGS="--itemsfile items.cfg -p 11020" ARGS=$ARGS" --cokeport /dev/ttyUSB0" -if [ "x$1" == "xdbg" ]; 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