c5da2d
#!/usr/bin/bash
c5da2d
set -x
c5da2d
c5da2d
export MACH_USE_SYSTEM_PYTHON=1
c5da2d
export MOZ_NODE_PATH=/usr/bin/node
c5da2d
export X_PARAMS="-screen 0 1600x1200x24"
c5da2d
export MOCHITEST_PARAMS="--timeout 1 --chunk-by-dir 4"
c5da2d
export TEST_DIR="test_results"
c5da2d
c5da2d
# Fix for system nss
c5da2d
ln -s /usr/bin/certutil objdir/dist/bin/certutil
c5da2d
ln -s /usr/bin/pk12util objdir/dist/bin/pk12util
c5da2d
c5da2d
NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"
c5da2d
c5da2d
# Basic render testing
c5da2d
export TEST_PARAMS=""
c5da2d
export TEST_FLAVOUR=""
c5da2d
#xvfb-run -s "$X_PARAMS" -n 91 ./mach xpcshell-test --sequential $TEST_PARAMS 2>&1 | cat - | tee $TEST_DIR/xpcshell
c5da2d
#xvfb-run -s "$X_PARAMS" -n 92 ./mach reftest --marionette localhost:$(($(($RANDOM))+2000)) $TEST_PARAMS 2>&1 | tee $TEST_DIR/reftest$TEST_FLAVOUR
c5da2d
#xvfb-run -s "$X_PARAMS" -n 93 ./mach crashtest --marionette localhost:$(($(($RANDOM))+2000)) $TEST_PARAMS 2>&1 | tee $TEST_DIR/crashtest$TEST_FLAVOUR
c5da2d
#xvfb-run -s "$X_PARAMS" -n 94 ./mach mochitest --marionette localhost:$(($(($RANDOM))+2000)) $MOCHITEST_PARAMS $TEST_PARAMS 2>&1 | tee $TEST_DIR/mochitest$TEST_FLAVOUR
c5da2d
c5da2d
# WebRender testing
c5da2d
export TEST_PARAMS="--enable-webrender $TEST_PARAMS"
c5da2d
export TEST_FLAVOUR="-wr"
c5da2d
#xvfb-run -s "$X_PARAMS" -n 95 ./mach xpcshell-test --sequential $TEST_PARAMS 2>&1 | cat - | tee $TEST_DIR/xpcshell-wr
c5da2d
#sleep 60
c5da2d
#xvfb-run -s "$X_PARAMS" -n 96 ./mach reftest $TEST_PARAMS 2>&1 | tee $TEST_DIR/reftest$TEST_FLAVOUR
c5da2d
#sleep 60
c5da2d
#xvfb-run -s "$X_PARAMS" -n 97 ./mach crashtest $TEST_PARAMS 2>&1 | tee $TEST_DIR/crashtest$TEST_FLAVOUR
c5da2d
#sleep 60
c5da2d
#export DISPLAY=:0
c5da2d
#./mach mochitest dom/base/test/ $MOCHITEST_PARAMS $TEST_PARAMS 2>&1 | tee $TEST_DIR/mochitest$TEST_FLAVOUR
c5da2d
export DISPLAY=:98
c5da2d
xvfb-run -s "$X_PARAMS" -n 98 ./mach mochitest dom/base/test/ $MOCHITEST_PARAMS $TEST_PARAMS 2>&1 | tee $TEST_DIR/mochitest$TEST_FLAVOUR
c5da2d
c5da2d
rm -f  objdir/dist/bin/certutil
c5da2d
rm -f  objdir/dist/bin/pk12util