|
|
Chromium Code Reviews|
Created:
3 years, 10 months ago by timvolodine Modified:
3 years, 10 months ago Reviewers:
Torne CC:
chromium-reviews, android-webview-reviews_chromium.org, jbudorick Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
Description[WebView] Fix the run_tests.sh script and add documentation.
Fix the run_tests.sh script to use the new wrapper and add
documentation.
BUG=686114
Review-Url: https://codereview.chromium.org/2659843003
Cr-Commit-Position: refs/heads/master@{#450062}
Committed: https://chromium.googlesource.com/chromium/src/+/2441837767de19419b168ee54b8234598db57f69
Patch Set 1 #
Total comments: 4
Patch Set 2 : run_tests_rebaseline, update documentation and address comments #Patch Set 3 : tweaks to documentation #Patch Set 4 : update documentation and copyright #
Messages
Total messages: 27 (15 generated)
timvolodine@chromium.org changed reviewers: + torne@chromium.org
https://codereview.chromium.org/2659843003/diff/1/android_webview/tools/syste... File android_webview/tools/system_webview_shell/test/data/run_tests.sh (right): https://codereview.chromium.org/2659843003/diff/1/android_webview/tools/syste... android_webview/tools/system_webview_shell/test/data/run_tests.sh:14: # and make sure it is enabled. Isn't the intention of the autogenerated scripts to handle these kinds of steps for us? https://codereview.chromium.org/2659843003/diff/1/android_webview/tools/syste... android_webview/tools/system_webview_shell/test/data/run_tests.sh:25: SCRIPT_BUILD_DIR="../../../../../out/Debug/" I don't think it's reasonable to hardcode this output directory - now that we have gn most people don't use out/Debug (at least I don't) and there's no particular required directory location. Shouldn't we instead be making the generated script do all the right stuff to run the tests, and getting rid of this script? Or am I not understanding the test setup?
https://codereview.chromium.org/2659843003/diff/1/android_webview/tools/syste... File android_webview/tools/system_webview_shell/test/data/run_tests.sh (right): https://codereview.chromium.org/2659843003/diff/1/android_webview/tools/syste... android_webview/tools/system_webview_shell/test/data/run_tests.sh:14: # and make sure it is enabled. On 2017/01/30 14:27:22, Torne wrote: > Isn't the intention of the autogenerated scripts to handle these kinds of steps > for us? right, this is a bit elaborate I'll double-check what the wrapper script does exactly. However some initial install has to happen anyway for it to work on a new device. https://codereview.chromium.org/2659843003/diff/1/android_webview/tools/syste... android_webview/tools/system_webview_shell/test/data/run_tests.sh:25: SCRIPT_BUILD_DIR="../../../../../out/Debug/" On 2017/01/30 14:27:22, Torne wrote: > I don't think it's reasonable to hardcode this output directory - now that we > have gn most people don't use out/Debug (at least I don't) and there's no > particular required directory location. good point, so maybe just have a parameter (with out/Debug as default) > > Shouldn't we instead be making the generated script do all the right stuff to > run the tests, and getting rid of this script? Or am I not understanding the > test setup? so, this script has the ability to do some rebaselining for the 'layout' tests expectations, which is kind of 'special' in this case. As I understand it the generated scripts are purely for running the tests similar to what test_runner.py used to do..
+cc:jbudorick@ FYI
The CQ bit was checked by timvolodine@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was checked by timvolodine@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
alright, thanks for the comments! I have updated the documentation (basically we only need to have a proper webview installed + build the test target). Also renamed the script to run_tests_rebaseline because that's what it does and added the option to provide a custom build directory. PTAL
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Oh, we only need to use this script to rebaseline? I guess the scripts can't easily install the actual WebView for you because there's to many possible configurations for this. We need to document that process somewhere, but it should probably be in the actual build instructions (in the docs folder), not inside a script that people mostly don't need to actually run.
LGTM
On 2017/02/13 11:17:40, Torne wrote: > Oh, we only need to use this script to rebaseline? yes, originally it was for running tests as well, but now we have a generated script for that > > I guess the scripts can't easily install the actual WebView for you because > there's to many possible configurations for this. We need to document that > process somewhere, but it should probably be in the actual build instructions > (in the docs folder), not inside a script that people mostly don't need to > actually run. ack )
The CQ bit was checked by timvolodine@chromium.org
The CQ bit was unchecked by timvolodine@chromium.org
The CQ bit was checked by timvolodine@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from torne@chromium.org Link to the patchset: https://codereview.chromium.org/2659843003/#ps60001 (title: "update documentation and copyright")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presub...)
The CQ bit was checked by timvolodine@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch.
Bot data: {"patchset_id": 60001, "attempt_start_ts": 1487016964404360,
"parent_rev": "3764134e53831644d51c780f3d9b3a50f8d43865", "commit_rev":
"2441837767de19419b168ee54b8234598db57f69"}
Message was sent while issue was closed.
Description was changed from ========== [WebView] Fix the run_tests.sh script and add documentation. Fix the run_tests.sh script to use the new wrapper and add documentation. BUG=686114 ========== to ========== [WebView] Fix the run_tests.sh script and add documentation. Fix the run_tests.sh script to use the new wrapper and add documentation. BUG=686114 Review-Url: https://codereview.chromium.org/2659843003 Cr-Commit-Position: refs/heads/master@{#450062} Committed: https://chromium.googlesource.com/chromium/src/+/2441837767de19419b168ee54b82... ==========
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/2441837767de19419b168ee54b82... |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
