Skip to content

Commit 69cd8c9

Browse files
Remove Wasmer WASI tests
We no longer use it in carton
1 parent 253cfc9 commit 69cd8c9

File tree

4 files changed

+1
-369
lines changed

4 files changed

+1
-369
lines changed

.github/workflows/test.yml

-3
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ jobs:
1818
# Ensure that test succeeds with all toolchains and wasi backend combinations
1919
- { os: ubuntu-20.04, toolchain: wasm-5.7.3-RELEASE, wasi-backend: Node }
2020
- { os: ubuntu-20.04, toolchain: wasm-5.8.0-RELEASE, wasi-backend: Node }
21-
- { os: ubuntu-20.04, toolchain: wasm-5.7.3-RELEASE, wasi-backend: Wasmer }
22-
- { os: ubuntu-20.04, toolchain: wasm-5.8.0-RELEASE, wasi-backend: Wasmer }
23-
- { os: ubuntu-20.04, toolchain: wasm-5.9.1-RELEASE, wasi-backend: Wasmer }
2421
- { os: ubuntu-20.04, toolchain: wasm-5.7.3-RELEASE, wasi-backend: MicroWASI }
2522
- { os: ubuntu-20.04, toolchain: wasm-5.8.0-RELEASE, wasi-backend: MicroWASI }
2623
- { os: ubuntu-20.04, toolchain: wasm-5.9.1-RELEASE, wasi-backend: MicroWASI }

IntegrationTests/lib.js

-37
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
const SwiftRuntime = require("javascript-kit-swift").SwiftRuntime;
2-
const WasmerWASI = require("@wasmer/wasi").WASI;
3-
const WasmFs = require("@wasmer/wasmfs").WasmFs;
42
const NodeWASI = require("wasi").WASI;
53
const { WASI: MicroWASI, useAll } = require("uwasi");
64

@@ -9,41 +7,6 @@ const fs = require("fs");
97
const readFile = promisify(fs.readFile);
108

119
const WASI = {
12-
Wasmer: ({ programName }) => {
13-
// Instantiate a new WASI Instance
14-
const wasmFs = new WasmFs();
15-
// Output stdout and stderr to console
16-
const originalWriteSync = wasmFs.fs.writeSync;
17-
wasmFs.fs.writeSync = (fd, buffer, offset, length, position) => {
18-
const text = new TextDecoder("utf-8").decode(buffer);
19-
switch (fd) {
20-
case 1:
21-
console.log(text);
22-
break;
23-
case 2:
24-
console.error(text);
25-
break;
26-
}
27-
return originalWriteSync(fd, buffer, offset, length, position);
28-
};
29-
const wasi = new WasmerWASI({
30-
args: [programName],
31-
env: {},
32-
bindings: {
33-
...WasmerWASI.defaultBindings,
34-
fs: wasmFs.fs,
35-
},
36-
});
37-
38-
return {
39-
wasiImport: wasi.wasiImport,
40-
start(instance) {
41-
wasi.start(instance);
42-
instance.exports._initialize();
43-
instance.exports.main();
44-
}
45-
}
46-
},
4710
MicroWASI: ({ programName }) => {
4811
const wasi = new MicroWASI({
4912
args: [programName],

0 commit comments

Comments
 (0)