Updated tests
This commit is contained in:
parent
fc3de2e6e3
commit
5e4620df5a
19
firefox.spec
19
firefox.spec
@ -151,6 +151,8 @@ Source33: firefox.appdata.xml.in
|
|||||||
Source34: firefox-search-provider.ini
|
Source34: firefox-search-provider.ini
|
||||||
Source35: google-loc-api-key
|
Source35: google-loc-api-key
|
||||||
Source36: run-tests
|
Source36: run-tests
|
||||||
|
Source37: print_results_general
|
||||||
|
Source38: print_results_spec
|
||||||
|
|
||||||
# Build patches
|
# Build patches
|
||||||
Patch3: mozilla-build-arm.patch
|
Patch3: mozilla-build-arm.patch
|
||||||
@ -359,7 +361,10 @@ Summary: Results of testsuite
|
|||||||
%description -n %{testsuite_pkg_name}
|
%description -n %{testsuite_pkg_name}
|
||||||
This package contains results of tests executed during build.
|
This package contains results of tests executed during build.
|
||||||
%files -n %{testsuite_pkg_name}
|
%files -n %{testsuite_pkg_name}
|
||||||
/test_results
|
/test_general
|
||||||
|
/test_basic
|
||||||
|
/test_wr
|
||||||
|
/test_summary.txt
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
#---------------------------------------------------------------------
|
#---------------------------------------------------------------------
|
||||||
@ -702,6 +707,8 @@ make -C objdir buildsymbols
|
|||||||
|
|
||||||
%if 0%{?run_firefox_tests}
|
%if 0%{?run_firefox_tests}
|
||||||
cp %{SOURCE36} .
|
cp %{SOURCE36} .
|
||||||
|
cp %{SOURCE37} .
|
||||||
|
cp %{SOURCE38} .
|
||||||
./run-tests
|
./run-tests
|
||||||
%endif
|
%endif
|
||||||
#---------------------------------------------------------------------
|
#---------------------------------------------------------------------
|
||||||
@ -847,9 +854,13 @@ sed -i -e "s/\[Crash Reporter\]/[Crash Reporter]\nEnabled=1/" %{buildroot}/%{moz
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if 0%{?run_firefox_tests}
|
%if 0%{?run_firefox_tests}
|
||||||
# Add debuginfo for crash-stats.mozilla.com
|
%{__mkdir_p} %{buildroot}/test_general
|
||||||
%{__mkdir_p} %{buildroot}/test_results
|
%{__mkdir_p} %{buildroot}/test_basic
|
||||||
%{__cp} test_results/* %{buildroot}/test_results
|
%{__mkdir_p} %{buildroot}/test_wr
|
||||||
|
%{__cp} test_general/* %{buildroot}/test_general
|
||||||
|
%{__cp} test_basic/* %{buildroot}/test_basic
|
||||||
|
%{__cp} test_wr/* %{buildroot}/test_wr
|
||||||
|
%{__cp} test_summary.txt %{buildroot}/
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# Default
|
# Default
|
||||||
|
54
run-tests
54
run-tests
@ -5,36 +5,54 @@ export MACH_USE_SYSTEM_PYTHON=1
|
|||||||
export MOZ_NODE_PATH=/usr/bin/node
|
export MOZ_NODE_PATH=/usr/bin/node
|
||||||
export TEST_PARAMS=""
|
export TEST_PARAMS=""
|
||||||
export X_PARAMS="-screen 0 1600x1200x24"
|
export X_PARAMS="-screen 0 1600x1200x24"
|
||||||
|
export TEST_SUMMARY="test_summary.txt"
|
||||||
|
|
||||||
# Fix for system nss
|
# Fix for system nss
|
||||||
ln -s /usr/bin/certutil objdir/dist/bin/certutil
|
ln -s /usr/bin/certutil objdir/dist/bin/certutil
|
||||||
ln -s /usr/bin/pk12util objdir/dist/bin/pk12util
|
ln -s /usr/bin/pk12util objdir/dist/bin/pk12util
|
||||||
|
|
||||||
mkdir test_results
|
mkdir test_general
|
||||||
|
mkdir test_basic
|
||||||
|
mkdir test_wr
|
||||||
|
|
||||||
|
NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"
|
||||||
|
|
||||||
# Basic render testing
|
# Basic render testing
|
||||||
xvfb-run -s "$X_PARAMS" ./mach mochitest $TEST_PARAMS >& test_results/check-mochitest
|
export TEST_DIR="test_basic"
|
||||||
xvfb-run -s "$X_PARAMS" ./mach jstestbrowser $TEST_PARAMS >& test_results/check-jstestbrowser
|
xvfb-run -s "$X_PARAMS" ./mach mochitest $TEST_PARAMS >& $TEST_DIR/mochitest
|
||||||
xvfb-run -s "$X_PARAMS" ./mach crashtest $TEST_PARAMS --run-tests-in-parallel >& test_results/check-crashtest
|
xvfb-run -s "$X_PARAMS" ./mach jstestbrowser $TEST_PARAMS >& $TEST_DIR/jstestbrowser
|
||||||
xvfb-run -s "$X_PARAMS" ./mach marionette-test $TEST_PARAMS >& test_results/check-marionette-test
|
xvfb-run -s "$X_PARAMS" ./mach crashtest $TEST_PARAMS --run-tests-in-parallel >& $TEST_DIR/crashtest
|
||||||
xvfb-run -s "$X_PARAMS" ./mach reftest $TEST_PARAMS --run-tests-in-parallel >& test_results/check-reftest
|
xvfb-run -s "$X_PARAMS" ./mach marionette-test $TEST_PARAMS >& $TEST_DIR/marionette
|
||||||
./mach xpcshell-test $TEST_PARAMS 2>&1 | cat - > test_results/check-xpcshell-test
|
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
|
# WebRender testing
|
||||||
TEST_PARAMS="--enable-webrender $TEST_PARAMS"
|
TEST_PARAMS="--enable-webrender $TEST_PARAMS"
|
||||||
xvfb-run -s "$X_PARAMS" ./mach mochitest $TEST_PARAMS >& test_results/check-mochitest-wr
|
export TEST_DIR="test_wr"
|
||||||
xvfb-run -s "$X_PARAMS" ./mach jstestbrowser $TEST_PARAMS >& test_results/check-jstestbrowser-wr
|
xvfb-run -s "$X_PARAMS" ./mach mochitest $TEST_PARAMS >& $TEST_DIR/mochitest
|
||||||
xvfb-run -s "$X_PARAMS" ./mach crashtest $TEST_PARAMS --run-tests-in-parallel >& test_results/check-crashtest-wr
|
xvfb-run -s "$X_PARAMS" ./mach jstestbrowser $TEST_PARAMS >& $TEST_DIR/jstestbrowser
|
||||||
xvfb-run -s "$X_PARAMS" ./mach marionette-test $TEST_PARAMS >& test_results/check-marionette-test-wr
|
xvfb-run -s "$X_PARAMS" ./mach crashtest $TEST_PARAMS --run-tests-in-parallel >& $TEST_DIR/crashtest
|
||||||
xvfb-run -s "$X_PARAMS" ./mach reftest $TEST_PARAMS --run-tests-in-parallel >& test_results/check-reftest-wr
|
xvfb-run -s "$X_PARAMS" ./mach marionette-test $TEST_PARAMS >& $TEST_DIR/marionette
|
||||||
./mach xpcshell-test $TEST_PARAMS 2>&1 | cat - > test_results/check-xpcshell-test-wr
|
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
|
# Rest
|
||||||
objdir/dist/bin/jsapi-tests >& test_results/check-jsapi
|
export TEST_DIR="test_general"
|
||||||
./mach cppunittest >& test_results/check-cppunittest
|
objdir/dist/bin/jsapi-tests >& $TEST_DIR/jsapi
|
||||||
./mach gtest >& test_results/check-gtest
|
./mach cppunittest >& $TEST_DIR/cppunittest
|
||||||
./mach rusttests >& test_results/check-rusttests
|
./mach rusttests >& $TEST_DIR/rusttests
|
||||||
./mach jstests >& test_results/check-jstests
|
./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/certutil
|
||||||
rm -f objdir/dist/bin/pk12util
|
rm -f objdir/dist/bin/pk12util
|
||||||
|
Loading…
Reference in New Issue
Block a user