You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
perform any transformations to the test files that are necessary to have them be integrate with testharness.js
run ./mach update-manifest (this creates the initial MANIFEST.json)
run ./mach test-wpt tests/wpt/webgpu --log-raw webgpu.log
run ./mach update-wpt webgpu.log
Steps 1 and 3 are the most fiddly - if the CTS already supports outputting WPT-compatible tests, that should make the process easier. For the WebGPU tests, we apply a series of patches to the test files that add <script> blocks (eg) and create automated test names (eg) in order to allow the WPT harness to run them successfully.
Making the import run automatically through a python script is best, but starting off by importing the unmodified files, making a commit, then modifying files by hand until the tests run makes it easier to turn the resulting diff into a script.
We should avoid depending on third-party code that is retrieved from the network while running tests. One possible solution is to vendor that module as well. Otherwise the changes look good!
Activity
kunalmohan commentedon Jul 24, 2020
@jdm How would I go about adding/initializing logs in the metadata directory? Are there any steps that I could refer to?
jdm commentedon Jul 24, 2020
@kunalmohan The steps for adding a new testsuite that is part of our web-platform-tests infrastructure go something like this:
./mach update-manifest(this creates the initial MANIFEST.json)./mach test-wpt tests/wpt/webgpu --log-raw webgpu.log./mach update-wpt webgpu.logSteps 1 and 3 are the most fiddly - if the CTS already supports outputting WPT-compatible tests, that should make the process easier. For the WebGPU tests, we apply a series of patches to the test files that add
<script>blocks (eg) and create automated test names (eg) in order to allow the WPT harness to run them successfully.jdm commentedon Jul 24, 2020
Making the import run automatically through a python script is best, but starting off by importing the unmodified files, making a commit, then modifying files by hand until the tests run makes it easier to turn the resulting diff into a script.
kunalmohan commentedon Jul 25, 2020
@jdm I have added the test suite here. The changes that I had to make after importing unmodified tests are in kunalmohan@c67f68d.
What do you think?
jdm commentedon Jul 25, 2020
We should avoid depending on third-party code that is retrieved from the network while running tests. One possible solution is to vendor that module as well. Otherwise the changes look good!
jdm commentedon Jul 25, 2020
You will also want a
__dir__.iniin the root meta directory that enables the webgpu preference when running the tests.Auto merge of #27402 - kunalmohan:webgpu-cts, r=<try>
Auto merge of #27402 - kunalmohan:webgpu-cts, r=<try>
Auto merge of #27402 - kunalmohan:webgpu-cts, r=<try>
Auto merge of #27402 - kunalmohan:webgpu-cts, r=<try>
Auto merge of #27402 - kunalmohan:webgpu-cts, r=<try>
Auto merge of #27402 - kunalmohan:webgpu-cts, r=<try>
Auto merge of #27402 - kunalmohan:webgpu-cts, r=<try>
Auto merge of #27402 - kunalmohan:webgpu-cts, r=jdm
Auto merge of #27402 - kunalmohan:webgpu-cts, r=<try>
Auto merge of #27402 - kunalmohan:webgpu-cts, r=jdm