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_1_1~13^2~26^2^2~6 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=4cdf16a143c3c2f5235501607afd979037bd975e;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