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