From: Ben Soares Date: Tue, 12 May 2020 22:05:58 +0000 (+0100) Subject: JAL-3541 Helpers for running tests, and other commands headlessly X-Git-Tag: Release_2_11_4_0~45^2~9^2^2~5 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=b64c4e784adf02548947ea7cef7aff5062cae7ac;p=jalview.git JAL-3541 Helpers for running tests, and other commands headlessly --- diff --git a/utils/cmd-nox.sh b/utils/cmd-nox.sh new file mode 100755 index 0000000..bd615bd --- /dev/null +++ b/utils/cmd-nox.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +CMD=$(basename $0) +CMD=${CMD%-nox.sh} + +echo "Running '$CMD' headlessly" + +xvfb-run -s "-screen 0 1280x800x16" -e /dev/stdout -a $CMD ${@} diff --git a/utils/gradle-nox.sh b/utils/gradle-nox.sh new file mode 120000 index 0000000..4abb9a2 --- /dev/null +++ b/utils/gradle-nox.sh @@ -0,0 +1 @@ +cmd-nox.sh \ No newline at end of file