Comments (5)
It now works with my custom build on macOS 🎉 (on Linux it's still blocked by #713)
% wasmer .build/wasm32-unknown-wasi/debug/swift-base64-kitPackageTests.xctest
Test Suite 'All tests' started at 2020-04-24 16:31:33.338
Test Suite 'testBundle.xctest' started at 2020-04-24 16:31:33.339
Test Suite 'DecodingTests' started at 2020-04-24 16:31:33.339
Test Case 'DecodingTests.testBase64DecodingAllTheBytesSequentially' started at 2020-04-24 16:31:33.339
Test Case 'DecodingTests.testBase64DecodingAllTheBytesSequentially' passed (0.001 seconds)
Test Case 'DecodingTests.testBase64DecodingArrayOfNulls' started at 2020-04-24 16:31:33.340
Test Case 'DecodingTests.testBase64DecodingArrayOfNulls' passed (0.0 seconds)
Test Case 'DecodingTests.testBase64DecodingWithInvalidLength' started at 2020-04-24 16:31:33.341
Test Case 'DecodingTests.testBase64DecodingWithInvalidLength' passed (0.0 seconds)
Test Case 'DecodingTests.testBase64DecodingWithPoop' started at 2020-04-24 16:31:33.341
Test Case 'DecodingTests.testBase64DecodingWithPoop' passed (0.0 seconds)
Test Case 'DecodingTests.testBase64UrlDecodingAllTheBytesSequentially' started at 2020-04-24 16:31:33.341
Test Case 'DecodingTests.testBase64UrlDecodingAllTheBytesSequentially' passed (0.001 seconds)
Test Case 'DecodingTests.testDecodeEmptyString' started at 2020-04-24 16:31:33.342
Test Case 'DecodingTests.testDecodeEmptyString' passed (0.0 seconds)
Test Suite 'DecodingTests' passed at 2020-04-24 16:31:33.342
Executed 6 tests, with 0 failures (0 unexpected) in 0.003 (0.003) seconds
Test Suite 'EncodingTests' started at 2020-04-24 16:31:33.343
Test Case 'EncodingTests.testBase64EncodingAllTheBytesSequentially' started at 2020-04-24 16:31:33.343
Test Case 'EncodingTests.testBase64EncodingAllTheBytesSequentially' passed (0.001 seconds)
Test Case 'EncodingTests.testBase64EncodingArrayOfNulls' started at 2020-04-24 16:31:33.344
Test Case 'EncodingTests.testBase64EncodingArrayOfNulls' passed (0.0 seconds)
Test Case 'EncodingTests.testBase64UrlEncodingAllTheBytesSequentially' started at 2020-04-24 16:31:33.344
Test Case 'EncodingTests.testBase64UrlEncodingAllTheBytesSequentially' passed (0.001 seconds)
Test Case 'EncodingTests.testEncodeEmptyData' started at 2020-04-24 16:31:33.345
Test Case 'EncodingTests.testEncodeEmptyData' passed (0.0 seconds)
Test Suite 'EncodingTests' passed at 2020-04-24 16:31:33.345
Executed 4 tests, with 0 failures (0 unexpected) in 0.002 (0.002) seconds
Test Suite 'IntegrationTests' started at 2020-04-24 16:31:33.345
Test Case 'IntegrationTests.testEncodeAndDecodingĨ' started at 2020-04-24 16:31:33.345
swift-base64-kit/Tests/Base64KitTests/IntegrationTests.swift:16: error: IntegrationTests.testEncodeAndDecodingĨ : XCTAssertEqual failed: ("Ĩ") is not equal to ("Ĩg=p/.") -
Test Case 'IntegrationTests.testEncodeAndDecodingĨ' failed (0.0 seconds)
Test Suite 'IntegrationTests' failed at 2020-04-24 16:31:33.346
Executed 1 test, with 1 failure (0 unexpected) in 0.0 (0.0) seconds
Test Suite 'testBundle.xctest' failed at 2020-04-24 16:31:33.346
Executed 11 tests, with 1 failure (0 unexpected) in 0.006 (0.006) seconds
Test Suite 'All tests' failed at 2020-04-24 16:31:33.346
Executed 11 tests, with 1 failure (0 unexpected) in 0.006 (0.006) seconds
A test failed, which is interesting, but at least XCTest
built for WASI helped in discovering that failure 😄
from swift.
Most likely this is blocked by #592 as XCTest has a dependency on Foundation.
from swift.
Quick update, I currently have a version of XCTest building for the WASI triple, it did require turning off a lot of things that aren't available in either WASI or WASIFoundation yet, namely anything related to Bundle
, asynchronous testing with expectations, parallel test runs etc. But at least it builds 🙂 I can't run any tests on macOS yet, I know test runs on macOS work differently because they don't use LinuxMain
, which have to be used when testing with the WASI triple. I tried to run some tests on Linux, but that's blocked by #713.
from swift.
@MaxDesiatov Wow, this is really great work!
After resolving some issues related to #592, can we merge our forked version of XCTest into upstream?
from swift.
Yes, upstreaming everything is high on my list, just wanted to get something working first 🙂
from swift.
Related Issues (20)
- DEVELOPMENT-SNAPSHOT in release version HOT 2
- CI failure: cannot guarantee tail call due to mismatched parameter counts HOT 2
- Enable `swiftasynccall` calling convention with tail-call feature HOT 2
- Workaround wasm platform compiler issue HOT 5
- SwiftWasm 5.10 release HOT 4
- Make Swift SDK host platform independent HOT 2
- Fatal error during compilation (Functions with 'no-prototype' attribute must take varargs) HOT 2
- The test executable fails to run due to call stack exhausted (swift-wasm-DEVELOPMENT-SNAPSHOT-2024-03-22-a) HOT 5
- XCTest requires access to host file system HOT 2
- XMLParser use requires shim to include libxml2.a HOT 3
- Cannot install swift-wasm-DEVELOPMENT-SNAPSHOT-2024-03-30-a-ubuntu20.04_aarch64.artifactbundle.zip HOT 3
- Roadmap: WASI Preview2 Support
- Support Swift SDK in vscode-swift
- Cannot import Foundation when using a host platform independent SDK HOT 6
- undefined symbols (RegexParser) HOT 2
- Thread and RunLoopMode.common in not available on WASM HOT 1
- SwiftWasm 6.0 release
- wasm-ld: error: swiftrt.o: undefined symbol: swift_addNewDSOImage HOT 2
- Overwriting a file with `Data.write(to:)` causes an error
- Embedded Wasm Build Is Needlessly Slow HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swift.