Граф коммитов

125 Коммитов

Автор SHA1 Сообщение Дата
Chris Manchester dc4c4637b0 Bug 1468547 - Re-factor gtest mach command to not invoke make when not necessary. r=mshal
MozReview-Commit-ID: 6j7t0YIZc8n

--HG--
extra : rebase_source : e4478904d4f4e54ead473435df2c9e9a47a9294c
2018-07-09 14:28:59 -07:00
Henrik Skupin 894f69b8b2 Bug 1470414 - Clean-up moz.build files for BUG_COMPONENT in testing/. r=ahal
MozReview-Commit-ID: F5vHc4G13v6

--HG--
extra : rebase_source : 1c6c8de55def6026da467d589ec3a8b511986125
2018-06-22 13:32:05 +02:00
Margareta Eliza Balazs 38873b16e7 Backed out changeset 52e86ed85e54 (bug 1470414) for bustage in ./config/tests/test_mozbuild_reading.py::TestMozbuildReading on a CLOSED TREE 2018-06-25 17:29:18 +03:00
Henrik Skupin df65676052 Bug 1470414 - Clean-up moz.build files for BUG_COMPONENT in testing/. r=ahal
MozReview-Commit-ID: F5vHc4G13v6

--HG--
extra : rebase_source : c39293be7a60ecc22be2f385671769f371dca06b
2018-06-22 13:32:05 +02:00
Sebastian Hengst 0819f35e51 Backed out 4 changesets (bug 525063) on request from Andi. a=backout
Backed out changeset 516c4fb1e4b8 (bug 525063)
Backed out changeset 6ff8aaef2866 (bug 525063)
Backed out changeset bf13e4103150 (bug 525063)
Backed out changeset d7d2f08e051c (bug 525063)
2018-04-13 16:01:28 +03:00
Tristan Bourvon a3a77c0312 Bug 525063 - Initialize uninitialized class attributes in m-c. r=ehsan 2018-04-10 21:11:02 +02:00
William Lachance be63617e6b Bug 1451008 - Disable perfherder reporting for microbenchmarks on asan builds r=froydnj
MozReview-Commit-ID: HZLU6gsx7Sq

--HG--
extra : rebase_source : b02b507173dd0a36af8fddbae20827be648c7ae2
2018-04-03 11:31:36 -04:00
Nathan Froyd 0544a4cf70 Bug 1434671 - add a benchmarking macro permitting custom test fixtures; r=ted.mielczarek
GTest supports the TEST macro, which just runs a bunch of tests, and the
TEST_F macro, which enables writing custom test fixtures to perform
per-test setup and teardown.  The benchmarking framework we have has a
corresponding macro for the former, but no corresponding macro for the
latter.  If there's significant work to be done during setup and
teardown, we certainly don't want to be doing that work during the
actual benchmarking!  So let's introduce a MOZ_GTEST_BENCH_F macro that
works similarly to the TEST_F macro.
2018-02-26 17:31:58 -04:00
Geoff Brown 1b0e1177cb Bug 1322616 - Report unique message for gtest output timeout; r=jmaher 2017-12-05 15:43:03 -07:00
Mike Hommey f238dce0bd Bug 1419196 - Use the "threadsafe" variant of gtest death tests. r=ted
Because the default "fast" variant uses fork() on !windows, death tests
are dangerous, as they themselves say. There are race conditions
involving locks that lead to dead locks in the death test process while
disabling the crash reporter (currently, but this could happen for
different code, even the tested code itself).

See https://bugzilla.mozilla.org/show_bug.cgi?id=1419196#c7 for details.

Using the "threadsafe" variant creates new processes for each death
test. This is notably slower, but can't dead-lock because of some random
lock being held by some random other thread at the moment fork occurred.

--HG--
extra : rebase_source : 56bf678bc9a6588751520549d57db7293134e1f8
2017-11-24 14:22:20 +09:00
Gabriele Svelto ade65e26df Bug 1402519 - Remove MOZ_CRASHREPORTER directives from testing; r=ted.mielczarek
MozReview-Commit-ID: 3QJI8o9f9UW

--HG--
extra : rebase_source : fe23e92fa060e4ca58158eb4e8d82dcf9da2d2fe
2017-10-10 15:22:56 +02:00
shindli fb855aa7ba Backed out 16 changesets (bug 1402519) for conflicts during merge r=backout on a CLOSED TREE
Backed out changeset 07fcf163241a (bug 1402519)
Backed out changeset c6d2ad45d8e2 (bug 1402519)
Backed out changeset 8a3caca61294 (bug 1402519)
Backed out changeset 01425eae2c48 (bug 1402519)
Backed out changeset cf298d3815de (bug 1402519)
Backed out changeset e1964f4389cd (bug 1402519)
Backed out changeset f405337f3569 (bug 1402519)
Backed out changeset a76356fd3359 (bug 1402519)
Backed out changeset d3bb350d1c34 (bug 1402519)
Backed out changeset 9d3bfd9f932c (bug 1402519)
Backed out changeset e3dd6e5b073f (bug 1402519)
Backed out changeset e801b0c00134 (bug 1402519)
Backed out changeset 8a4139fa5dca (bug 1402519)
Backed out changeset 8d01c14ac1ca (bug 1402519)
Backed out changeset 24e0dcd01898 (bug 1402519)
Backed out changeset f8fdf450613f (bug 1402519)
2017-11-23 00:11:44 +02:00
Gabriele Svelto c0bde0772e Bug 1402519 - Remove MOZ_CRASHREPORTER directives from testing; r=ted.mielczarek
MozReview-Commit-ID: 3QJI8o9f9UW

--HG--
extra : rebase_source : 986fb3758f18c852abd0bc35005251c7ab9b8261
2017-10-10 15:22:56 +02:00
Henri Sivonen 9a34044063 Bug 1396208 - For benchmarking, add a black box function that is opaque to the optimizer. r=froydnj
MozReview-Commit-ID: 82jn6u6WRf0

--HG--
extra : rebase_source : 76e173841ed555b7e3741bf3d004de5aa071f3b0
2017-10-10 09:48:26 +03:00
Tom Ritter 701ee70a22 Bug 1406687 Pass return values from fwrite to Unused to silence the warn-unused-result warning r=njn
MozReview-Commit-ID: 4v6tPF5aMz7

--HG--
extra : rebase_source : fe434db73a8da686391462c12b91648348abcdc9
2017-10-09 15:01:48 -05:00
Sebastian Hengst ee63f2e30a Backed out changeset 0317bcff40bc (bug 1406687) for build bustage at testing/gtest/gtest/src/gtest.cc:3871: 'Unused' was not declared in this scope. r=backout 2017-10-09 18:52:39 +02:00
Tom Ritter 22d2cdf063 Bug 1406687 Pass return values from fwrite to Unused to silence the warn-unused-result warning r=njn
MozReview-Commit-ID: 4v6tPF5aMz7

--HG--
extra : rebase_source : c54b129c6815096035e262322f40aa0884b1ae56
2017-10-09 00:26:16 -05:00
Mike Hommey 37d01456dc Bug 1403366 - Don't set MOZILLA_FIVE_HOME from multiple scripts. r=froydnj
It was seldom used before previous commit and now does nothing.

--HG--
extra : rebase_source : e0b1dcdabe798af478e054cde0df65facf25ea21
2017-09-28 11:00:09 +09:00
Sebastian Hengst 2e58d81866 Backed out changeset ff0705eda4bd (bug 1403366) 2017-10-04 01:26:56 +02:00
Mike Hommey 5f2f5b4e64 Bug 1403366 - Don't set MOZILLA_FIVE_HOME from multiple scripts. r=froydnj
It was seldom used before previous commit and now does nothing.

--HG--
extra : rebase_source : e0b1dcdabe798af478e054cde0df65facf25ea21
2017-09-28 11:00:09 +09:00
Sebastian Hengst 6a0c7a5682 Backed out changeset 28b00bdf83a3 (bug 1403366) 2017-09-29 17:19:35 +02:00
Mike Hommey 8142d74974 Bug 1403366 - Don't set MOZILLA_FIVE_HOME from multiple scripts. r=froydnj
It was seldom used before previous commit and now does nothing.

--HG--
extra : rebase_source : 59ba89dbd8de9c0b9361872f3f45504a46f454a2
2017-09-28 11:00:09 +09:00
Joel Maher 4d24a9047f Bug 1331049 - reduce max timeout from 30 minutes to 20 minutes. r=ted 2017-09-13 05:18:43 -04:00
Josh Matthews cbc52c5c95 Bug 1394604 - Avoid direct path to python3 in bench script. r=froydnj 2017-08-30 10:34:00 -04:00
Simon Sapin 157c942bc4 Bug 1392329 - Add a command-line front-end script for gtest microbenchmarks. r=froydnj
Example usage:

$ ./testing/gtest/bench.py Stylo*

  29.779 ±  0.254 ms    Stylo.Servo_StyleSheet_FromUTF8Bytes_Bench
  28.841 ±  0.031 ms    Stylo.Gecko_nsCSSParser_ParseSheet_Bench
 296.240 ±  4.744 ms    Stylo.Servo_DeclarationBlock_SetPropertyById_Bench
 293.855 ±  4.304 ms    Stylo.Servo_DeclarationBlock_SetPropertyById_WithInitialSpace_Bench

MozReview-Commit-ID: L6vx8A8Iz9q

--HG--
extra : rebase_source : 6fab50ba3b34f84e4e07315581034a862ed00a3b
2017-08-21 18:34:54 +02:00
William Lachance 6cae76fb2a Bug 1384245 - Run gtest benchmarks multiple times and take median r=milan
MozReview-Commit-ID: 3g3RB36Brpw

--HG--
extra : rebase_source : 919fbff80f65122c690e119e989f7f7aa9c8b89d
2017-07-31 12:47:32 -04:00
Ionut Goldan 3a859abc10 Bug 1369807 - disable platform microbenchmarks on Linux r=jmaher,wlach
MozReview-Commit-ID: 8srIIdVUrMo

--HG--
extra : rebase_source : ae5e869be5440bcc0380f669233fc1636a358d11
2017-07-24 16:17:47 +03:00
Ting-Yu Chou 5dd0d99f75 Bug 1333003 part 6 - Fix test scripts to run ASan on Windows. r=ted
MozReview-Commit-ID: 6F9UXgTRb2Y

--HG--
extra : rebase_source : c618544db62381087f4190d3b12c57c340606b15
2017-03-10 12:08:34 +08:00
Dan Minor 774e2f6945 Bug 964133 - Build webrtc.org unit tests; r=jesup,ted.mielczarik
This adds a moz.build file for the tests. The alternative would be to hack up
the gyp files. Since gyp support has already been removed from upstream, this
does not really buy us anything as far as maintainabily goes. Once gn support
is available in our build system, we can remove this moz.build file and use
the gn files instead.

The include paths for the gtest and gmock headers in the webrtc.org tests are
not compatible with where we export the headers. We could patch each unittest,
but the include location has already changed upstream making this painful
to maintain. Instead, we duplicate the relevant headers to the expected path.

MozReview-Commit-ID: 1ADUAMxTCFq

--HG--
extra : rebase_source : 2cc10faa7018ee8af8e8f3d7805265ed2dd89507
2017-03-27 15:51:16 -04:00
Wes Kocher 93d11e3441 Backed out 7 changesets (bug 1333003) for windows asan failures a=backout
Backed out changeset 3d2b2eeda8d3 (bug 1333003)
Backed out changeset 400d409ba4ca (bug 1333003)
Backed out changeset 1ba027abdfc9 (bug 1333003)
Backed out changeset 70114135bd8c (bug 1333003)
Backed out changeset 5715b15e33c0 (bug 1333003)
Backed out changeset 375e952bd738 (bug 1333003)
Backed out changeset d5d4112599f2 (bug 1333003)

MozReview-Commit-ID: DZUHJTdjX7V
2017-03-23 11:01:44 -07:00
Ting-Yu Chou e8fe1839b7 Bug 1333003 part 6 - Fix test scripts to run ASan on Windows. r=ted
MozReview-Commit-ID: 6F9UXgTRb2Y

--HG--
extra : rebase_source : c618544db62381087f4190d3b12c57c340606b15
2017-03-10 12:08:34 +08:00
Carsten "Tomcat" Book d40c4b5e91 Backed out changeset 18fd8676751a (bug 1333003) 2017-03-23 10:38:04 +01:00
Ting-Yu Chou 9c1ec9c16c Bug 1333003 part 6 - Fix test scripts to run ASan on Windows. r=ted
MozReview-Commit-ID: 6F9UXgTRb2Y

--HG--
extra : rebase_source : ae28acf8b01688ca73b09b08769e35261c9365bd
2017-03-10 12:08:34 +08:00
Dan Minor 2f2e51556a Bug 1343557 - Update build for gtest and gmock 1.7.0; r=ted.mielczarek
I've moved the mozilla specific gtest stuff to link directly in xul-gtest
rather than in the gtest static library to make it possible for standalone
programs to link against this library and not have to link
against other mozilla libraries. This allows us to build
media/webrtc/signaling/fuzztest against this version of gtest rather than the
webrtc version of gtest, which I plan to remove in a follow on bug.

I had to add a global disable for -Wgnu-zero-variadic-macro-arguments as we
hit that everywhere we use the INSTANTIATE_TEST_CASE_P macro.

This brings forward the fix from Bug 844630 to the visibility of environ in
gtest-death-test.cc.

I also removed code that set GTEST_API_ to a visibility that conflicts with
what we've defined elsewhere in tree.

MozReview-Commit-ID: 3cfuapC6vn0

--HG--
extra : rebase_source : 6e5d2684718b6ddaa5a64c1f26a0172c91b5a719
2017-03-03 14:54:05 -05:00
Dan Minor ff5253a2b8 Bug 1343557 - Update gtest and gmock to 1.7.0; r=ted.mielczarek
Import made from git revision ba638689e40fc60c2e5194fc777bf30541deeff8.

MozReview-Commit-ID: 3tks0D8npiP

--HG--
rename : testing/gtest/gmock/COPYING => testing/gtest/gmock/LICENSE
rename : testing/gtest/gtest/COPYING => testing/gtest/gtest/LICENSE
extra : rebase_source : 218e2c0c9842be214ddf7e00d536470276402d30
2017-03-02 08:59:50 -05:00
Joel Maher c24fdf40e4 Bug 1331049 - DeadlockDetector death test fails on osx tc build, extend timeout to 30 minutes. r=ted
MozReview-Commit-ID: 9jnrRzjGmnf
2017-02-09 08:27:19 -05:00
Nathan Froyd 2ebbd09068 Bug 1320752 - remove mozilla/Function.h; r=gerald
We have std::function available now, which is likely to be somewhat more
efficient.
2016-11-28 11:03:53 -05:00
Eric Rahm 4ec2c95fa7 Bug 1316729 - Pass command-line args to gtest. r=ted
MozReview-Commit-ID: 8Xs52E9NnCq
2016-11-16 13:04:11 -08:00
Julian Seward 1484a2b876 Bug 1313028 - GCC 6 null pointer check removal causes segfaulting in ActionResultHolder::GetValueAndDelete(). r=chmanchester. 2016-11-01 17:23:46 +01:00
Tom Tromey 5538d692d3 Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
This removes the unnecessary setting of c-basic-offset from all
python-mode files.

This was automatically generated using

    perl -pi -e 's/; *c-basic-offset: *[0-9]+//'

... on the affected files.

The bulk of these files are moz.build files but there a few others as
well.

MozReview-Commit-ID: 2pPf3DEiZqx

--HG--
extra : rebase_source : 0a7dcac80b924174a2c429b093791148ea6ac204
2016-07-14 10:16:42 -06:00
Benoit Girard dec95787f8 Bug 1256408 - Add graphics microbenchmarking. r=mstange
MozReview-Commit-ID: H4IRZuLy7do

--HG--
extra : rebase_source : 8eed4669b59496370dbc47d32e2696de60ea43f2
2016-03-16 14:20:33 -04:00
Chris Manchester 7bec6d7863 Bug 1055224 - Run gtest output through a stack fixer. r=ahal
--HG--
extra : commitid : EI5D81v5sjt
2016-01-15 10:36:46 -08:00
Chris Manchester 89c245af6b Bug 992983 - Build and upload the gtest libxul during test packaging. r=ted
--HG--
extra : commitid : EH7XMBkAkta
2015-07-16 16:52:31 -07:00
Chris Manchester f8960c5aa0 Bug 1136841 - Fix rungtests.py to check for crashes in the correct directory. r=ahal
--HG--
extra : commitid : L8s8maHpcyP
2016-01-07 12:27:10 -08:00
Chris Pearce c9a6b8d6a4 Bug 1227775 - Call mozilla::ipc::windows::InitUIThread() in RunGtestFunc(). r=benwa 2015-11-26 13:50:52 +13:00
Chris Manchester 884de0189d Backed out changeset 92e5edb0d02e (bug 992983) for breaking fix_stack_using_bpsyms.py
--HG--
extra : commitid : zxCwIsOz0B
2015-10-19 12:15:43 -07:00
Chris Manchester 3ac85eaba9 Bug 992983 - Build and upload the gtest libxul during test packaging. r=ted
--HG--
extra : commitid : 3gQEwA4tB9L
2015-07-16 16:52:31 -07:00
Chris Manchester ad002b0bc0 Bug 992983 - Add test summary lines to gtest's automation-specific output format. r=benwa
--HG--
extra : commitid : IQWWm28UPvz
2015-08-18 11:32:31 -07:00
Andrew Halberstadt 2be5ff0c10 Bug 1014760 - Move mozlog.structured to mozlog; Move mozlog to mozlog.unstructured, r=jgraham
Mozlog currently has two implementations. The top level package is based on the logging module and is
deprecated. The newer structured logging implementation lives in mozlog.structured. This patch swaps the
two, so the top level mozlog module contains the recommended implementation, while mozlog.unstructured
contains the old one.

--HG--
rename : testing/mozbase/docs/mozlog_structured.rst => testing/mozbase/docs/mozlog.rst
rename : testing/mozbase/mozlog/mozlog/structured/commandline.py => testing/mozbase/mozlog/mozlog/commandline.py
rename : testing/mozbase/mozlog/mozlog/structured/formatters/__init__.py => testing/mozbase/mozlog/mozlog/formatters/__init__.py
rename : testing/mozbase/mozlog/mozlog/structured/formatters/base.py => testing/mozbase/mozlog/mozlog/formatters/base.py
rename : testing/mozbase/mozlog/mozlog/structured/formatters/errorsummary.py => testing/mozbase/mozlog/mozlog/formatters/errorsummary.py
rename : testing/mozbase/mozlog/mozlog/structured/formatters/html/__init__.py => testing/mozbase/mozlog/mozlog/formatters/html/__init__.py
rename : testing/mozbase/mozlog/mozlog/structured/formatters/html/html.py => testing/mozbase/mozlog/mozlog/formatters/html/html.py
rename : testing/mozbase/mozlog/mozlog/structured/formatters/html/main.js => testing/mozbase/mozlog/mozlog/formatters/html/main.js
rename : testing/mozbase/mozlog/mozlog/structured/formatters/html/style.css => testing/mozbase/mozlog/mozlog/formatters/html/style.css
rename : testing/mozbase/mozlog/mozlog/structured/formatters/html/xmlgen.py => testing/mozbase/mozlog/mozlog/formatters/html/xmlgen.py
rename : testing/mozbase/mozlog/mozlog/structured/formatters/machformatter.py => testing/mozbase/mozlog/mozlog/formatters/machformatter.py
rename : testing/mozbase/mozlog/mozlog/structured/formatters/tbplformatter.py => testing/mozbase/mozlog/mozlog/formatters/tbplformatter.py
rename : testing/mozbase/mozlog/mozlog/structured/formatters/unittest.py => testing/mozbase/mozlog/mozlog/formatters/unittest.py
rename : testing/mozbase/mozlog/mozlog/structured/formatters/xunit.py => testing/mozbase/mozlog/mozlog/formatters/xunit.py
rename : testing/mozbase/mozlog/mozlog/structured/handlers/__init__.py => testing/mozbase/mozlog/mozlog/handlers/__init__.py
rename : testing/mozbase/mozlog/mozlog/structured/handlers/base.py => testing/mozbase/mozlog/mozlog/handlers/base.py
rename : testing/mozbase/mozlog/mozlog/structured/handlers/bufferhandler.py => testing/mozbase/mozlog/mozlog/handlers/bufferhandler.py
rename : testing/mozbase/mozlog/mozlog/structured/handlers/statushandler.py => testing/mozbase/mozlog/mozlog/handlers/statushandler.py
rename : testing/mozbase/mozlog/mozlog/structured/logtypes.py => testing/mozbase/mozlog/mozlog/logtypes.py
rename : testing/mozbase/mozlog/mozlog/structured/reader.py => testing/mozbase/mozlog/mozlog/reader.py
rename : testing/mozbase/mozlog/mozlog/structured/scripts/__init__.py => testing/mozbase/mozlog/mozlog/scripts/__init__.py
rename : testing/mozbase/mozlog/mozlog/structured/scripts/format.py => testing/mozbase/mozlog/mozlog/scripts/format.py
rename : testing/mozbase/mozlog/mozlog/structured/scripts/logmerge.py => testing/mozbase/mozlog/mozlog/scripts/logmerge.py
rename : testing/mozbase/mozlog/mozlog/structured/scripts/unstable.py => testing/mozbase/mozlog/mozlog/scripts/unstable.py
rename : testing/mozbase/mozlog/mozlog/structured/stdadapter.py => testing/mozbase/mozlog/mozlog/stdadapter.py
rename : testing/mozbase/mozlog/mozlog/structured/structuredlog.py => testing/mozbase/mozlog/mozlog/structuredlog.py
rename : testing/mozbase/mozlog/mozlog/logger.py => testing/mozbase/mozlog/mozlog/unstructured/logger.py
rename : testing/mozbase/mozlog/mozlog/loggingmixin.py => testing/mozbase/mozlog/mozlog/unstructured/loggingmixin.py
rename : testing/mozbase/mozlog/mozlog/loglistener.py => testing/mozbase/mozlog/mozlog/unstructured/loglistener.py
extra : commitid : 3JWk75JY4N0
extra : rebase_source : 229bad7a7bf8ead013ce62d128c0896a75cad393
2015-07-16 10:38:40 -04:00
Birunthan Mohanathas a8939590de Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
The bulk of this commit was generated by running:

  run-clang-tidy.py \
    -checks='-*,llvm-namespace-comment' \
    -header-filter=^/.../mozilla-central/.* \
    -fix
2015-07-13 08:25:42 -07:00