diff options
author | Martin Stransky <stransky@redhat.com> | 2020-12-10 21:59:50 +0100 |
---|---|---|
committer | Martin Stransky <stransky@redhat.com> | 2020-12-10 21:59:50 +0100 |
commit | 7b9a3f8c100ece7222801e2fdf2d48269ea6a0a5 (patch) | |
tree | 010fb156764cb353e62ff24b30fb1dbacd350376 /run-tests-wayland | |
parent | Updated to Firefox 84 (diff) | |
download | librewolf-fedora-ff-7b9a3f8c100ece7222801e2fdf2d48269ea6a0a5.tar.gz librewolf-fedora-ff-7b9a3f8c100ece7222801e2fdf2d48269ea6a0a5.tar.bz2 librewolf-fedora-ff-7b9a3f8c100ece7222801e2fdf2d48269ea6a0a5.zip |
Build/test fixes
Diffstat (limited to 'run-tests-wayland')
-rwxr-xr-x | run-tests-wayland | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/run-tests-wayland b/run-tests-wayland new file mode 100755 index 0000000..43ee52c --- /dev/null +++ b/run-tests-wayland @@ -0,0 +1,35 @@ +#!/usr/bin/bash +set -x + +export MACH_USE_SYSTEM_PYTHON=1 +export MOZ_NODE_PATH=/usr/bin/node +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`" + +# Basic render testing +export TEST_PARAMS="" +export TEST_FLAVOUR="" +export MOZ_ENABLE_WAYLAND=1 +./mach mochitest $MOCHITEST_PARAMS $TEST_PARAMS >& $TEST_DIR/mochitest$TEST_FLAVOUR +./mach crashtest $TEST_PARAMS --run-tests-in-parallel >& $TEST_DIR/crashtest$TEST_FLAVOUR +./mach marionette-test $TEST_PARAMS >& $TEST_DIR/marionette$TEST_FLAVOUR +./mach reftest $TEST_PARAMS --run-tests-in-parallel >& $TEST_DIR/reftest$TEST_FLAVOUR +./mach xpcshell-test $TEST_PARAMS 2>&1 | cat - > $TEST_DIR/xpcshell$TEST_FLAVOUR + +# WebRender testing +export TEST_PARAMS="--enable-webrender $TEST_PARAMS" +export TEST_FLAVOUR="-wr" +./mach mochitest $MOCHITEST_PARAMS $TEST_PARAMS >& $TEST_DIR/mochitest$TEST_FLAVOUR +./mach crashtest $TEST_PARAMS --run-tests-in-parallel >& $TEST_DIR/crashtest$TEST_FLAVOUR +./mach marionette-test $TEST_PARAMS >& $TEST_DIR/marionette$TEST_FLAVOUR +./mach reftest $TEST_PARAMS --run-tests-in-parallel >& $TEST_DIR/reftest$TEST_FLAVOUR +./mach xpcshell-test $TEST_PARAMS 2>&1 | cat - > $TEST_DIR/xpcshell$TEST_FLAVOUR + +rm -f objdir/dist/bin/certutil +rm -f objdir/dist/bin/pk12util |