Gitlab CI - Debugging
[tpg/opendispense2.git] / RunServerTest
index 27d943b..a72a3fa 100755 (executable)
@@ -1,8 +1,22 @@
 #!/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

UCC git Repository :: git.ucc.asn.au