Closed kateinoigakukun closed 9 months ago
Hi! I'm interested in contributing to this project. I'm gonna take a look at this since it's been marked as a good first issue
Is there an existing guide for building/testing the runtime for wasm? Or is it pretty much the same as x86_64?
@Vercantez Thank you for interest! Almost same as other platforms, but there are some differences.
To prepare your development environment, please execute ./utils/webassembly/ci-linux.sh
or ./utils/webassembly/ci-mac.sh
. It installs some dependencies and builds this project.
The above ci-mac.sh
script takes long time, so please use utils/webassembly/build-mac.sh
instead from the second time.
utils/webassembly/build-mac.sh
is just a wrapper of utils/build-script
and you can pass some additional flags to build-mac.sh
like
$ ./utils/webassembly/build-mac.sh --release -t --debug-swift-stdlib
When you want to run a test case, you can use utils/run-test
to test it rapidly.
$ ./utils/run-test --build-dir ../build/Ninja-ReleaseAssert+stdlib-DebugAssert/ --target wasi-wasm32 test/stdlib/Result.swift
Awesome! Thanks so much
Not failing cases are around 200 with -Onone
!
https://gistcdn.githack.com/kateinoigakukun/bb91a7cebda629fbe8b06cd2697b86d7/raw/c08ac2c2aaccd5295e5e025fa867be576d86125f/index.html
Now we are running stdlib tests on CI
Now, failing over 400 test cases https://gist.githack.com/kateinoigakukun/4967df0206477c913b7997862689a1b5/raw/319552867efc78d246432c72413b40eaf53d42f7/index.html
test/stdlib/mmap.swift
test/stdlib/simd_diagnostics.swift
test/stdlib/tgmath_optimized.swift
test/stdlib/VarArgs.swift
test/stdlib/tgmath.swift.gyb
test/stdlib/simd.swift.gyb
Tips
To execute a single test case,
run-test
is very useful.