firefox/run-tests

41 lines
1.8 KiB
Plaintext
Raw Normal View History

#!/usr/bin/bash
set -x
export MACH_USE_SYSTEM_PYTHON=1
2020-11-20 11:27:58 +00:00
export MOZ_NODE_PATH=/usr/bin/node
export TEST_PARAMS=""
2020-11-20 21:24:45 +00:00
export X_PARAMS="-screen 0 1600x1200x24"
# Fix for system nss
ln -s /usr/bin/certutil objdir/dist/bin/certutil
ln -s /usr/bin/pk12util objdir/dist/bin/pk12util
mkdir test_results
2020-11-20 11:27:58 +00:00
# Basic render testing
2020-11-20 21:24:45 +00:00
xvfb-run -s "$X_PARAMS" ./mach mochitest $TEST_PARAMS >& test_results/check-mochitest
xvfb-run -s "$X_PARAMS" ./mach jstestbrowser $TEST_PARAMS >& test_results/check-jstestbrowser
xvfb-run -s "$X_PARAMS" ./mach crashtest $TEST_PARAMS --run-tests-in-parallel >& test_results/check-crashtest
xvfb-run -s "$X_PARAMS" ./mach marionette-test $TEST_PARAMS >& test_results/check-marionette-test
xvfb-run -s "$X_PARAMS" ./mach reftest $TEST_PARAMS --run-tests-in-parallel >& test_results/check-reftest
2020-11-20 11:27:58 +00:00
./mach xpcshell-test $TEST_PARAMS 2>&1 | cat - > test_results/check-xpcshell-test
# WebRender testing
TEST_PARAMS="--enable-webrender $TEST_PARAMS"
2020-11-20 21:24:45 +00:00
xvfb-run -s "$X_PARAMS" ./mach mochitest $TEST_PARAMS >& test_results/check-mochitest-wr
xvfb-run -s "$X_PARAMS" ./mach jstestbrowser $TEST_PARAMS >& test_results/check-jstestbrowser-wr
xvfb-run -s "$X_PARAMS" ./mach crashtest $TEST_PARAMS --run-tests-in-parallel >& test_results/check-crashtest-wr
xvfb-run -s "$X_PARAMS" ./mach marionette-test $TEST_PARAMS >& test_results/check-marionette-test-wr
xvfb-run -s "$X_PARAMS" ./mach reftest $TEST_PARAMS --run-tests-in-parallel >& test_results/check-reftest-wr
2020-11-20 11:27:58 +00:00
./mach xpcshell-test $TEST_PARAMS 2>&1 | cat - > test_results/check-xpcshell-test-wr
# Rest
objdir/dist/bin/jsapi-tests >& test_results/check-jsapi
./mach cppunittest >& test_results/check-cppunittest
./mach gtest >& test_results/check-gtest
./mach rusttests >& test_results/check-rusttests
./mach jstests >& test_results/check-jstests
rm -f objdir/dist/bin/certutil
rm -f objdir/dist/bin/pk12util