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

52 Коммитов

Автор SHA1 Сообщение Дата
Geoff Brown b12c9c3b81 Bug 1575773 - Warn when cppunit test file missing, and cleanup cppunit manifest; r=bc
Differential Revision: https://phabricator.services.mozilla.com/D77717
2020-06-02 15:52:09 +00:00
Geoff Brown da55c8ff29 Bug 1638954 - Run 'mach cppunittest' with python 3; r=bc
Differential Revision: https://phabricator.services.mozilla.com/D77258
2020-05-28 14:45:50 +00:00
Kartikaya Gupta bb83950948 Bug 1558598 - Force WebRender on or off in the cppunit harness. r=ahal
Also adds it to the mach command, which is a little weird, because the
mach command doesn't expose the option but does parse it via the cpp unit
argument parser. So I just exposed it on the mach command and after that
it Just Works for mach.

Differential Revision: https://phabricator.services.mozilla.com/D35859

--HG--
extra : moz-landing-system : lando
2019-06-29 09:49:23 +00:00
Marco Castelluccio 52be340076 Bug 1559975 - Add future imports to testing/remotecppunittests.py and testing/runcppunittests.py and remove them from py2 exclusion list r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D35246

--HG--
extra : moz-landing-system : lando
2019-06-28 13:47:57 +00:00
Mihai Alexandru Michis 9852c55d11 Backed out 5 changesets (bug 1559982, bug 1559975) for cpp unit test failures due to unsupported operand type. CLOSED TREE
Backed out changeset 2309aac6cea3 (bug 1559975)
Backed out changeset bf5a6d853abd (bug 1559975)
Backed out changeset 0c36f78c971a (bug 1559975)
Backed out changeset 0560cf7df7dc (bug 1559975)
Backed out changeset 4cb64ca524e7 (bug 1559982)
2019-06-27 02:03:31 +03:00
Marco Castelluccio ed545ba83e Bug 1559975 - Add future imports to testing/remotecppunittests.py and testing/runcppunittests.py and remove them from py2 exclusion list r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D35246

--HG--
extra : moz-landing-system : lando
2019-06-26 15:31:24 +00:00
Aaron Klotz 104c07093b Bug 1238305: Modify cppunittests to look up breakpad symbols for logged stack traces; r=ted
--HG--
extra : rebase_source : 159c245748d0192207ffa97465e254ea1a1538e2
2019-05-03 13:00:46 -06:00
David Teller 0da9f18390 Bug 1377007 - autospider.py,runcppunittests.py export the path to directory js/src,r=Yoric
Some tests need to find out js/src to locate their test
data. Exporting this information as part of the environment.

MozReview-Commit-ID: JAefL2arhJL

--HG--
extra : rebase_source : b99d55c4ab4335ea938d8f3a9c733ea74f02fddf
2017-12-08 11:14:12 +01:00
Narcis Beleuzu 996e222d3a Backed out 7 changesets (bug 1377007) for web platform reftests failures on CSS2/borders. r=backout
Backed out changeset c30bc5d5adbc (bug 1377007)
Backed out changeset 33fdf9e531e2 (bug 1377007)
Backed out changeset 267abdb38036 (bug 1377007)
Backed out changeset 4a452c3ac115 (bug 1377007)
Backed out changeset e9310960c9e6 (bug 1377007)
Backed out changeset 8e5e61dfbbaf (bug 1377007)
Backed out changeset 9ac83e79e656 (bug 1377007)
2017-12-15 02:16:50 +02:00
David Teller 16e627ac34 Bug 1377007 - autospider.py,runcppunittests.py export the path to directory js/src,r=Yoric
Some tests need to find out js/src to locate their test
data. Exporting this information as part of the environment.

MozReview-Commit-ID: JAefL2arhJL

--HG--
extra : rebase_source : 2c9e9fa39e41844518ed466a88023cc2b94dec55
2017-12-08 11:14:12 +01:00
Andrew Halberstadt 7f664cfdaf Bug 1209463 - [test] Log suite names in test harnesses, r=gbrown
Suite names are currently only used by formatters to print out
an overall summary from |mach test| and |mach mochitest|. So
this doesn't need to be exact and can be tweaked further at a
later date.

If multiple test invocations have the same suite name, their
results will be merged in the overall summary. If a suite name
is missing, the summary will contain a placeholder name.

MozReview-Commit-ID: K1xpb9hUQRX

--HG--
extra : rebase_source : cc8cc8b36255d939dd5dffd3c5444c34951ac8e2
2017-11-27 17:20:06 -05:00
Sylvestre Ledru 61e0724a88 Bug 1406666 - Add testing/*cppun*.py to the list of flake8 compliant code r=ahal
MozReview-Commit-ID: KWsXMRgy4XG

--HG--
extra : rebase_source : b6e82fcd6f5dfb9f823ac5d00c623387b7e95632
2017-10-07 19:45:12 +02: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
Simon Garesste 310bdc1c20 Bug 1231810 - Fix files not following flake8 convention r=ted
flake8 was reporting the following issues:
* expected two blank lines
* unexpected spaces around keyword / parameter equals
* wrongly imported modules or multiple imports on one line
* under-indented lines for visual indent
* unidentified name because of a bad call

MozReview-Commit-ID: 7sjDoH4Z89L

--HG--
extra : rebase_source : 376759dd1679b42c07fe3370e6617e3feb7b4f52
2016-01-10 11:19:37 +01: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
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
Nathan Froyd 120cdf42f2 Bug 1281918 - make runcppunittests filter out non-executable files when given a directory; r=chmanchester
When runcppunittest (resp. |mach cppunittest|) is passed a directory, it
attempts to indiscriminately run all the files found in that directory.
This is unhelpful, as directories containing compiled cppunittests also
tend to have other things: Makefiles, object files, etc.  Let's filter
out non-executable files from the directory listing and make the user
experience more pleasant.
2016-06-24 04:02:18 -04:00
Wes Kocher edebbea4b6 Backed out changeset c6617c4a27b4 (bug 1238305) for android cpp failures
--HG--
extra : commitid : EuB6Kp1TqPh
2016-01-29 15:01:46 -08:00
Aaron Klotz fed7bf0616 Bug 1238305: Modify cppunittests to look up breakpad symbols for logged stack traces; r=ted
--HG--
extra : rebase_source : 61234601a1e3d7d355c61a3458fc344b616db630
2016-01-12 12:58:59 -07:00
Stephen A Pohl 641d6dcaa6 Bug 1217144: Allow for cppunittest to be run locally on OSX. r=erahm 2015-10-27 13:50:56 -04:00
Andrew McCreight 2c3c9e03aa Bug 1215679 - Ignore ODR violations in ASan CPP unit tests. r=jmaher 2015-10-22 09:33:43 -07:00
Andrew McCreight 3979b8629b Bug 1216721 - Only get the symbolizer path for ASan for ASan builds. r=chmanchester 2015-10-22 09:33:43 -07:00
Geoff Brown ca1aa238ee Bug 1090276 - Support mach cppunittest on Android; r=dminor 2015-09-14 08:40:35 -06:00
Jonathan Griffin 105e1bf9c3 Bug 1190474 - Allow test-specific timeouts to be specified in cppunittest.ini, r=chmanchester
--HG--
extra : commitid : KHoHs6bXJln
2015-08-12 16:25:56 -07:00
Sebastian Hengst 4bf9aa2b08 Backout bedff4a78d9a (bug 1190474) for B2G ICS Emulator Cpp unittests permafail. r=backout 2015-08-13 09:08:45 +02:00
Jonathan Griffin 97fb05e7fd Bug 1190474 - Allow test-specific timeouts to be specified in cppunittest.ini, r=chmanchester
--HG--
extra : commitid : Dylb8zPXhh4
2015-08-12 16:25:56 -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
Geoff Brown cbc6dc061e Bug 1171299 - Support mozinfo.json in cppunit tests; r=dminor 2015-06-04 10:51:14 -06:00
Dan Minor 7c19db87c2 Bug 1087567 - Add proper manifest for cppunit tests; r=ted
--HG--
extra : rebase_source : 622e454f491462d9d2c4125d1309a28854a92b0b
2014-10-28 09:38:21 -04:00
Stephen Pohl d4af9f452d Mac v2 signing - Bug 1064952 - Update Cpp unit test harness for the new v2 bundle structure on OSX. r=jmaher 2014-09-29 11:51:39 -07:00
Chris Manchester 644813fdf7 Bug 1034272 - Convert cppunittests to structured logging.;r=ted 2014-07-10 09:33:39 -04:00
Andrew McCreight d39154adc1 Bug 1023368 - Non-fatally provide information about the LLVM symbolizer in cppunittests. r=jmaher 2014-06-24 11:27:39 -07:00
Andrew McCreight 8f67db8df7 Bug 1023368 - ASan tests should show an error when the symbolizer isn't found. r=jmaher 2014-06-14 16:43:46 -07:00
Dan Minor 227aca8fa4 Bug 994830 - Make cppunittest test timeout less than mozharness process timeout; r=ted 2014-04-10 15:24:29 -04:00
Dan Minor bb4ff66fb2 Bug 949538 - Add mach target for cpp unittests; r=gps 2014-01-02 10:19:35 -05:00
Dan Minor 039861bb02 Bug 915245 - Add manifest support to cpp unittest harness; r=ted 2013-09-24 07:18:58 -04:00
Christian Holler 01aa013cea Bug 917242 - Symbolize ASan traces in automation. r=ted 2013-09-20 13:37:53 +02:00
Dan Minor ed657ae616 Bug 908644 - Add a global result summary to cppunittest output;r=ted 2013-08-23 09:28:50 -04:00
Dan Minor eaaf70938d Bug 903606 - Use mozfile.TemporaryDirectory in cppunittest scripts;r=ted 2013-08-19 10:02:42 -04:00
Dan Minor c34f2491db Bug 893085 - remotecppunittests.py should accept --apk option and test directories as well as files on the command line; r=ted 2013-08-02 09:53:13 -04:00
Dan Minor 8386cbcaf2 Bug 892439: runcppunittests.py should accept either test files or test directories from the command line; r=ted 2013-07-12 07:42:14 -04:00
Ted Mielczarek ff28b877cf bug 825511 - use outputTimeout for runcppunittests.py. r=ahal
--HG--
extra : rebase_source : 420bd55289ec63b92bec57f0d73d47aecda580be
2013-01-03 18:50:22 -05:00
Geoff Brown f556fe775f Bug 811411 - Add ability to run C++ unit tests on mobile; r=ted.mielczarek
--HG--
extra : rebase_source : c45a5d3792e0dcdfc11ea4f893cb72e7367cd1fd
2013-01-03 13:01:54 -07:00