summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Stransky <stransky@redhat.com>2020-12-14 20:44:05 +0100
committerMartin Stransky <stransky@redhat.com>2020-12-14 20:44:05 +0100
commit2f682bc9051ba00df27b6c83c50566bebcdd0dab (patch)
tree96823fbb6f853832dd4cc6502229822459919ac2
parentRemoved -j64 (diff)
downloadlibrewolf-fedora-ff-2f682bc9051ba00df27b6c83c50566bebcdd0dab.tar.gz
librewolf-fedora-ff-2f682bc9051ba00df27b6c83c50566bebcdd0dab.tar.bz2
librewolf-fedora-ff-2f682bc9051ba00df27b6c83c50566bebcdd0dab.zip
Added missing file
-rwxr-xr-xrun-tests-x1134
1 files changed, 34 insertions, 0 deletions
diff --git a/run-tests-x11 b/run-tests-x11
new file mode 100755
index 0000000..86c3d2e
--- /dev/null
+++ b/run-tests-x11
@@ -0,0 +1,34 @@
+#!/usr/bin/bash
+set -x
+
+export MACH_USE_SYSTEM_PYTHON=1
+export MOZ_NODE_PATH=/usr/bin/node
+export X_PARAMS="-screen 0 1600x1200x24"
+export MOCHITEST_PARAMS="--timeout 1 --chunk-by-dir 4"
+export TEST_DIR="test_results"
+
+# Fix for system nss
+ln -s /usr/bin/certutil objdir/dist/bin/certutil
+ln -s /usr/bin/pk12util objdir/dist/bin/pk12util
+
+NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"
+
+./mach xpcshell-test 2>&1 | cat - | tee $TEST_DIR/xpcshell
+./mach xpcshell-test --enable-webrender 2>&1 | cat - | tee $TEST_DIR/xpcshell-wr
+
+# Basic render testing
+export TEST_PARAMS=""
+export TEST_FLAVOUR=""
+xvfb-run -s "$X_PARAMS" -n 99 ./mach reftest $TEST_PARAMS 2>&1 | tee $TEST_DIR/reftest$TEST_FLAVOUR
+xvfb-run -s "$X_PARAMS" -n 97 ./mach crashtest $TEST_PARAMS 2>&1 | tee $TEST_DIR/crashtest$TEST_FLAVOUR
+xvfb-run -s "$X_PARAMS" -n 98 ./mach mochitest $MOCHITEST_PARAMS $TEST_PARAMS 2>&1 | tee $TEST_DIR/mochitest$TEST_FLAVOUR
+
+# WebRender testing
+export TEST_PARAMS="--enable-webrender $TEST_PARAMS"
+export TEST_FLAVOUR="-wr"
+xvfb-run -s "$X_PARAMS" -n 96 ./mach reftest $TEST_PARAMS 2>&1 | tee $TEST_DIR/reftest$TEST_FLAVOUR
+xvfb-run -s "$X_PARAMS" -n 94 ./mach crashtest $TEST_PARAMS 2>&1 | tee $TEST_DIR/crashtest$TEST_FLAVOUR
+xvfb-run -s "$X_PARAMS" -n 95 ./mach mochitest $MOCHITEST_PARAMS $TEST_PARAMS 2>&1 | tee $TEST_DIR/mochitest$TEST_FLAVOUR
+
+rm -f objdir/dist/bin/certutil
+rm -f objdir/dist/bin/pk12util
bgstack15