X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=RunServerTest;h=a72a3faeb48b5403c651d6b9e18104a1e09fb025;hb=91d11fd7f9bf911c6abc59a18e17ec5890cee148;hp=5bedb53082b0a6ceb55d99330e4ec3a43feb25ad;hpb=512c85b9aad68127e62244fdd8666779c053a50c;p=tpg%2Fopendispense2.git diff --git a/RunServerTest b/RunServerTest index 5bedb53..a72a3fa 100755 --- a/RunServerTest +++ b/RunServerTest @@ -2,6 +2,19 @@ ARGS="--itemsfile items.cfg -p 11020" ARGS=$ARGS" --cokeport /dev/ttyUSB0" +ARGS=$ARGS" -d 2" + +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