2020-12-14 19:44:05 +00:00
|
|
|
#!/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`"
|
|
|
|
|
|
|
|
# Basic render testing
|
|
|
|
export TEST_PARAMS=""
|
|
|
|
export TEST_FLAVOUR=""
|
2021-01-04 21:02:09 +00:00
|
|
|
xvfb-run -s "$X_PARAMS" -n 94 ./mach xpcshell-test $TEST_PARAMS 2>&1 | cat - | tee $TEST_DIR/xpcshell
|
2020-12-14 19:44:05 +00:00
|
|
|
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
|
2021-01-12 13:15:37 +00:00
|
|
|
#xvfb-run -s "$X_PARAMS" -n 98 ./mach mochitest $MOCHITEST_PARAMS $TEST_PARAMS 2>&1 | tee $TEST_DIR/mochitest$TEST_FLAVOUR
|
2020-12-14 19:44:05 +00:00
|
|
|
|
|
|
|
# WebRender testing
|
|
|
|
export TEST_PARAMS="--enable-webrender $TEST_PARAMS"
|
|
|
|
export TEST_FLAVOUR="-wr"
|
2021-01-04 21:02:09 +00:00
|
|
|
xvfb-run -s "$X_PARAMS" -n 93 ./mach xpcshell-test $TEST_PARAMS 2>&1 | cat - | tee $TEST_DIR/xpcshell-wr
|
2020-12-14 19:44:05 +00:00
|
|
|
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
|
2021-01-12 13:15:37 +00:00
|
|
|
#xvfb-run -s "$X_PARAMS" -n 95 ./mach mochitest $MOCHITEST_PARAMS $TEST_PARAMS 2>&1 | tee $TEST_DIR/mochitest$TEST_FLAVOUR
|
2020-12-14 19:44:05 +00:00
|
|
|
|
|
|
|
rm -f objdir/dist/bin/certutil
|
|
|
|
rm -f objdir/dist/bin/pk12util
|