aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/testing_commands.py
Commit message (Collapse)AuthorAgeFilesLines
...
* | Auto merge of #11378 - mbrubeck:debug-mozjs, r=larsbergstrombors-servo2016-05-271-0/+4
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Default to the same Cargo features in all build commands Fixes #8308 and #7327. r? @larsbergstrom <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11378) <!-- Reviewable:end -->
| * | Default to the same Cargo features in all build commandsMatt Brubeck2016-05-271-0/+4
| |/ | | | | | | Fixes #8308 and #7327.
* | Remove --faster flag from test-tidy, go fast by default. Fixes 11217Mitchell Hentges2016-05-251-18/+3
| |
* | Add --all for test-tidy, with backwards-compat with --fasterMitchell Hentges2016-05-241-2/+17
|/
* Auto merge of #11196 - fduraffourg:master, r=jdmbors-servo2016-05-171-0/+12
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add unit tests for cookies handling Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #9965 Either: - [X] There are tests for these changes OR - [ ] These changes do not require tests because _____ Add unit tests for the `net` component about cookies. The tests are generated with a new `mach update-net-cookies` command from this repo: https://github.com/abarth/http-state. This PR also includes two trivial bug fixes about cookie handling. From all the tests included, the following ones are currently failing: - cookie_http_state::test_0003 - cookie_http_state::test_0006 - cookie_http_state::test_attribute0004 - cookie_http_state::test_attribute0005 - cookie_http_state::test_attribute0007 - cookie_http_state::test_attribute0008 - cookie_http_state::test_domain0017 - cookie_http_state::test_mozilla0001 - cookie_http_state::test_mozilla0002 - cookie_http_state::test_mozilla0003 - cookie_http_state::test_mozilla0005 - cookie_http_state::test_mozilla0007 - cookie_http_state::test_mozilla0009 - cookie_http_state::test_mozilla0010 - cookie_http_state::test_mozilla0013 `test_000[36]` and `test_mozilla*` are failing because there is currently no method to clean a `net::cookie_storage` from expired cookies. `test_attribute000[4578]` are failing because hyper does not parse the `Secure` attribute correctly. I will open an issue on the upstream project. `test_domain0017` fails because the TLD .org is not on the PUB_DOMAINS list. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11196) <!-- Reviewable:end -->
| * Add unit tests for cookies base on abarth/http-state github repoFlorian Duraffourg2016-05-171-0/+12
| | | | | | | | | | - Add unit tests - Add a mach command to update cookie's unit tests
* | Implement --pref in test-wptAnthony Ramine2016-05-161-0/+8
|/
* Auto merge of #10892 - CorcovadoMing:patch-1, r=Wafflespeanutbors-servo2016-04-281-1/+4
|\ | | | | | | | | | | | | | | | | | | | | Pass --no-patch by default to update_css fix #10884 according to #9666 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10892) <!-- Reviewable:end -->
| * pass --no-patch by default to update_cssCorcovadoMing2016-04-281-1/+4
| |
* | Make css-properties.json checking a proper unit test.Simon Sapin2016-04-281-24/+0
|/
* Be sligthly more verbose about css-properties.json in test-unitSimon Sapin2016-04-201-0/+2
|
* Move Mako-related files into a new sub-directory.Simon Sapin2016-04-201-1/+1
| | | | There’s gonna be more of them.
* Merge list_properties.py into build_properties_rs.pySimon Sapin2016-04-201-14/+19
|
* Package tidyaskeing2016-04-141-3/+3
| | | | | | - Modified the testing commands - Added the requirements - Moved python/tidy/tests to python/tidy/servo_tidy_tests for self tidy tests
* tests for tidy.py #9152Maciej Skrzypkowski2016-04-071-4/+13
|
* Fix ./mach test-tidy --faster issuezakorgyula2016-04-051-1/+2
| | | | issue number: 9778
* Auto merge of #10238 - jdm:winunit, r=larsbergstrombors-servo2016-03-301-1/+5
|\ | | | | | | | | | | | | | | Run unit tests on appveyor <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10238) <!-- Reviewable:end -->
| * Always use backtraces on appveyor.Josh Matthews2016-03-281-1/+5
| |
* | Auto merge of #10265 - Ms2ger:reftest, r=jdmbors-servo2016-03-291-26/+0
|\ \ | | | | | | | | | | | | | | | | | | | | | Remove dead code that used to support the legacy reftest framework. <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10265) <!-- Reviewable:end -->
| * | Remove dead code that used to support the legacy reftest framework.Ms2ger2016-03-291-26/+0
| |/
* | Fixed a typoJussi Räsänen2016-03-281-1/+1
| |
* | Changed mach test to use generated json file of propertiesJussi Räsänen2016-03-281-2/+9
|/
* Auto merge of #10148 - malayaleecoder:master, r=Manishearthbors-servo2016-03-241-9/+0
|\ | | | | | | | | | | | | | | | | | | | | Remove test-ref command from testing_commands.py. Fixes #10125 Tries to fix #10125 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10148) <!-- Reviewable:end -->
| * Remove test-ref command from testing_commands.py. Fixes #10125malayaleecoder2016-03-231-9/+0
| |
* | Use call rather than check_call in jquery_test_runner.Ms2ger2016-03-161-2/+1
|/ | | | | | | The contract for mach commands is to return zero / non-zero to indicate success / failure, rather than throwing an exception. Since run_jquery.py uses a 1 exit code when there are unexpected results, this would cause an exception from check_call, which would then be printed with a stack trace.
* test_ref() got an unexpected keyword argument 'kind'.Fixes #9986malayaleecoder2016-03-151-3/+0
|
* Auto merge of #9685 - danlrobertson:i9666, r=Wafflespeanutbors-servo2016-02-261-1/+4
|\ | | | | | | | | | | | | | | | | | | | | | | Mach update-wpt should default to "--no-patch" Change mach default behavior for `update-wpt` to use the "--no-patch" option and provide an alternate option "--patch" for anyone who does in fact want `update-wpt` to automatically create a commit. Fixes #9666 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9685) <!-- Reviewable:end -->
| * Mach update-wpt shoudl default to "--no-patch"Daniel Robertson2016-02-171-1/+4
| | | | | | | | | | Change mach default behavior for update-wpt to "--no-patch" provide an alternate option "--patch" for anyone who does want this behavior
* | Refactored tidy for efficiency and optionally provide feedback on progressRavi Shankar2016-02-251-6/+10
|/
* Add an rr chaos modeMatt Brubeck2016-02-111-0/+7
|
* Factor out common code for mach test-wpt/test-cssMatt Brubeck2016-02-111-10/+7
|
* Add infrastructure for compiletestsFlorian Hahn2016-02-041-1/+63
| | | | Also adds compilefail tests for some lints, closes #5646.
* Fixed nitsShing Lyu2016-01-301-2/+4
|
* Add mach test-webidl commandShing Lyu2016-01-291-0/+20
|
* win32: mach and build command fixesVladimir Vukicevic2016-01-201-11/+11
| | | | | | | - Add SERVO_USE_NIGHTLY_RUST env var to use the latest rust/cargo nightly snapshot - Fix up looking for cargo binary (in cargo/bin/cargo, not bin/cargo) - Fix up win32 executable checking (use .exe suffix) - fix up win32 PATH handling (subprocess must use shell=True for PATH change to be honored)
* Make the properties list JSON and add some more info.Simon Sapin2016-01-151-2/+3
|
* Add a script to list all CSS properties parsed by Servo.Simon Sapin2016-01-151-0/+8
|
* Remove the legacy reftest framework.Ms2ger2016-01-141-46/+5
|
* add `faster` flag to `./mach test` command in order to call `test-tidy` properlyapopiak2016-01-131-2/+5
|
* add a --faster option to ./mach test-tidyDaan Sprenkels2016-01-071-2/+4
| | | | | | which will - only check files changed since the last merge by bors - and skip the wpt-lint
* Make test-wpt run with RUST_BACKTRACE=1 by default #8194nxnfufunezn2015-11-191-0/+1
|
* Auto merge of #8415 - mrobinson:create-wpt-relative, r=frewsxcvbors-servo2015-11-091-32/+51
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Form relative reference URLs during create-wpt Instead of always using the absolute path to the reference file when creating new reference tests, create-wpt now creates relative URLs if the files are in the same directory. This is the most common case for new Servo tests. Also fix some missing quotation marks in the create-wpt template. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8415) <!-- Reviewable:end -->
| * Form relative reference URLs during create-wptMartin Robinson2015-11-081-32/+51
| | | | | | | | | | | | | | | | Instead of always using the absolute path to the reference file when creating new reference tests, create-wpt now creates relative URLs if the files are in the same directory. This is the most common case for new Servo tests. Also fix some missing quotation marks in the create-wpt template.
* | Avoid UnboundLocalError upon "bogus" usage of ./mach create-wptSimon Martin2015-11-081-1/+2
|/
* Add create-wpt mach target to help with creating web-platform-testsJames Graham2015-10-201-3/+154
|
* Auto merge of #7813 - servo:parallel-unit-tests, r=mbrubeckbors-servo2015-10-011-5/+6
|\ | | | | | | | | | | | | | | | | | | | | | | Run all unit tests with just one Cargo command. Upgrade Cargo to get https://github.com/rust-lang/cargo/pull/1828, and use it for unit tests. This allows Cargo to get some more parallelism when compiling the test crates’ dependencies. `touch components/util/lib.rs && mach test-unit` on my machine goes from 149 seconds to 124. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7813) <!-- Reviewable:end -->
| * Run all unit tests with just one Cargo command.Simon Sapin2015-10-011-5/+6
| | | | | | | | | | | | | | | | | | | | Upgrade Cargo to get https://github.com/rust-lang/cargo/pull/1828, and use it for unit tests. This allows Cargo to get some more parallelism when compiling the test crates’ dependencies. `touch components/util/lib.rs && mach test-unit` on my machine goes from 149 seconds to 124.
* | Fixes for `mach test-ref` argument handlingMatt Brubeck2015-10-011-13/+13
|/ | | | | | | * Change parameter from `name` to `include`. This is consistent with other test suites, and also fixes a bug in `mach test` caused by a conflicting keyword parameter in `Registrar.dispatch`. * Allow any number of `include` arguments.
* Auto merge of #7809 - 6112:master, r=frewsxcvbors-servo2015-09-301-5/+30
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make `./mach test` work with unit tests Fixes #7618. Allows running a specific Rust test with one of: ``` ./mach test tests/unit/net/http_loader.rs ./mach test-unit tests/unit/net/http_loader.rs ./mach test-unit tests/unit/net/http_loader ./mach test-unit net/http_loader ``` Allows running a whole package's tests with one of: ``` ./mach test tests/unit/net ./mach test-unit tests/unit/net ``` <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7809) <!-- Reviewable:end -->
| * Allow `./mach test` and `./mach test-unit` to run unit tests with file pathNicolas2015-09-301-5/+30
| |