JAL-3541 Helpers for running tests, and other commands headlessly
authorBen Soares <bsoares@dundee.ac.uk>
Tue, 12 May 2020 22:05:58 +0000 (23:05 +0100)
committerBen Soares <bsoares@dundee.ac.uk>
Tue, 12 May 2020 22:05:58 +0000 (23:05 +0100)
utils/cmd-nox.sh [new file with mode: 0755]
utils/gradle-nox.sh [new symlink]

diff --git a/utils/cmd-nox.sh b/utils/cmd-nox.sh
new file mode 100755 (executable)
index 0000000..bd615bd
--- /dev/null
@@ -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 (symlink)
index 0000000..4abb9a2
--- /dev/null
@@ -0,0 +1 @@
+cmd-nox.sh
\ No newline at end of file