summaryrefslogtreecommitdiff
path: root/run-tests
blob: cf9eabf864b6e582096eebc8fd63bbcf63fce783 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/usr/bin/bash
set -x

export MACH_USE_SYSTEM_PYTHON=1
export MOZ_NODE_PATH=/usr/bin/node
export TEST_PARAMS=""
export X_PARAMS="-screen 0 1600x1200x24"
export TEST_SUMMARY="test_summary.txt"

# Fix for system nss
ln -s /usr/bin/certutil objdir/dist/bin/certutil
ln -s /usr/bin/pk12util objdir/dist/bin/pk12util

mkdir test_general
mkdir test_basic
mkdir test_wr

NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"

# Basic render testing
export TEST_DIR="test_basic"
xvfb-run -s "$X_PARAMS" ./mach mochitest $TEST_PARAMS >& $TEST_DIR/mochitest
xvfb-run -s "$X_PARAMS" ./mach jstestbrowser $TEST_PARAMS >& $TEST_DIR/jstestbrowser
xvfb-run -s "$X_PARAMS" ./mach crashtest $TEST_PARAMS --run-tests-in-parallel >& $TEST_DIR/crashtest
xvfb-run -s "$X_PARAMS" ./mach marionette-test $TEST_PARAMS >& $TEST_DIR/marionette
xvfb-run -s "$X_PARAMS" ./mach reftest $TEST_PARAMS --run-tests-in-parallel >& $TEST_DIR/reftest
./mach xpcshell-test $TEST_PARAMS 2>&1 | cat - > $TEST_DIR/xpcshell
./mach gtest -j $NCPUS $TEST_PARAMS >& $TEST_DIR/gtest

# WebRender testing
TEST_PARAMS="--enable-webrender $TEST_PARAMS"
export TEST_DIR="test_wr"
xvfb-run -s "$X_PARAMS" ./mach mochitest $TEST_PARAMS >& $TEST_DIR/mochitest
xvfb-run -s "$X_PARAMS" ./mach jstestbrowser $TEST_PARAMS >& $TEST_DIR/jstestbrowser
xvfb-run -s "$X_PARAMS" ./mach crashtest $TEST_PARAMS --run-tests-in-parallel >& $TEST_DIR/crashtest
xvfb-run -s "$X_PARAMS" ./mach marionette-test $TEST_PARAMS >& $TEST_DIR/marionette
xvfb-run -s "$X_PARAMS" ./mach reftest $TEST_PARAMS --run-tests-in-parallel >& $TEST_DIR/reftest
./mach xpcshell-test $TEST_PARAMS 2>&1 | cat - > $TEST_DIR/xpcshell
./mach gtest -j $NCPUS $TEST_PARAMS >& $TEST_DIR/gtest

# Rest
export TEST_DIR="test_general"
objdir/dist/bin/jsapi-tests >& $TEST_DIR/jsapi
./mach cppunittest >& $TEST_DIR/cppunittest
./mach rusttests >& $TEST_DIR/rusttests
./mach jstests >& $TEST_DIR/jstests

echo "Test results" > $TEST_SUMMARY
echo "" >> $TEST_SUMMARY
echo "Basic test results" >> $TEST_SUMMARY
./print_results_spec test_basic >> $TEST_SUMMARY
echo "WR test results" >> $TEST_SUMMARY
./print_results_spec test_wr >> $TEST_SUMMARY
echo "General test results" >> $TEST_SUMMARY
./print_results_general >> $TEST_SUMMARY

rm -f  objdir/dist/bin/certutil
rm -f  objdir/dist/bin/pk12util
bgstack15