Index: tools/run_server.sh =================================================================== diff -u -rb3653a30a05b551f24ac231ca499d71252fd2a3c -r8101db5b5f4518548258c0724c2f50c67d591191 --- tools/run_server.sh (.../run_server.sh) (revision b3653a30a05b551f24ac231ca499d71252fd2a3c) +++ tools/run_server.sh (.../run_server.sh) (revision 8101db5b5f4518548258c0724c2f50c67d591191) @@ -1,3 +1,26 @@ #!/bin/bash +########################################################################### +# +# Copyright (c) 2019-2019 Diality Inc. - All Rights Reserved. +# +# THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN +# WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. +# +# @file run_server.sh +# +# @date 21-Oct-2020 +# @author Peter Lucia +# +# @brief Runs the squishqt server. Uses virtual window manager so +# the mouse and keyboard won't affect the running tests. +# Assumes the following packages have been installed: +# sudo apt install xvfb +# sudo apt install xfwm4 +# +############################################################################ +DISPLAY_NUM=8 /opt/squishqt/bin/squishserver --config addAppPath ~/Desktop -/opt/squishqt/bin/squishserver +./startxvfb.sh $DISPLAY_NUM +DISPLAY=:$DISPLAY_NUM /opt/squishqt/bin/squishserver +./stopxvfb.sh $DISPLAY_NUM +echo "Done."