From 4cdf16a143c3c2f5235501607afd979037bd975e Mon Sep 17 00:00:00 2001 From: Ben Soares Date: Tue, 12 May 2020 23:05:58 +0100 Subject: [PATCH] JAL-3541 Helpers for running tests, and other commands headlessly --- utils/cmd-nox.sh | 8 ++++++++ utils/gradle-nox.sh | 1 + 2 files changed, 9 insertions(+) create mode 100755 utils/cmd-nox.sh create mode 120000 utils/gradle-nox.sh 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 -- 1.7.10.2