mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-13 06:15:33 +00:00
fmt
This commit is contained in:
parent
e7e1b8c7d3
commit
dc19bf32b9
@ -33,8 +33,7 @@ macro_rules! assert_wasi_output {
|
|||||||
let module = wasmer_runtime_core::compile_with(&wasm_bytes[..], &get_compiler())
|
let module = wasmer_runtime_core::compile_with(&wasm_bytes[..], &get_compiler())
|
||||||
.expect("WASM can't be compiled");
|
.expect("WASM can't be compiled");
|
||||||
|
|
||||||
let import_object =
|
let import_object = generate_import_object(vec![], vec![], $po_dir_args, $mapdir_args);
|
||||||
generate_import_object(vec![], vec![], $po_dir_args, $mapdir_args);
|
|
||||||
|
|
||||||
let instance = module
|
let instance = module
|
||||||
.instantiate(&import_object)
|
.instantiate(&import_object)
|
||||||
|
@ -4,7 +4,10 @@ fn test_fseek() {
|
|||||||
"../../wasitests/fseek.wasm",
|
"../../wasitests/fseek.wasm",
|
||||||
"fseek",
|
"fseek",
|
||||||
vec![],
|
vec![],
|
||||||
vec![(".".to_string(), ::std::path::PathBuf::from("wasitests/test_fs/hamlet")),],
|
vec![(
|
||||||
|
".".to_string(),
|
||||||
|
::std::path::PathBuf::from("wasitests/test_fs/hamlet")
|
||||||
|
),],
|
||||||
vec![],
|
vec![],
|
||||||
"../../wasitests/fseek.out"
|
"../../wasitests/fseek.out"
|
||||||
);
|
);
|
||||||
|
@ -4,7 +4,10 @@ fn test_mapdir() {
|
|||||||
"../../wasitests/mapdir.wasm",
|
"../../wasitests/mapdir.wasm",
|
||||||
"mapdir",
|
"mapdir",
|
||||||
vec![],
|
vec![],
|
||||||
vec![(".".to_string(), ::std::path::PathBuf::from("wasitests/test_fs/hamlet")),],
|
vec![(
|
||||||
|
".".to_string(),
|
||||||
|
::std::path::PathBuf::from("wasitests/test_fs/hamlet")
|
||||||
|
),],
|
||||||
vec![],
|
vec![],
|
||||||
"../../wasitests/mapdir.out"
|
"../../wasitests/mapdir.out"
|
||||||
);
|
);
|
||||||
|
@ -4,7 +4,10 @@ fn test_readlink() {
|
|||||||
"../../wasitests/readlink.wasm",
|
"../../wasitests/readlink.wasm",
|
||||||
"readlink",
|
"readlink",
|
||||||
vec![],
|
vec![],
|
||||||
vec![(".".to_string(), ::std::path::PathBuf::from("wasitests/test_fs/hamlet")),],
|
vec![(
|
||||||
|
".".to_string(),
|
||||||
|
::std::path::PathBuf::from("wasitests/test_fs/hamlet")
|
||||||
|
),],
|
||||||
vec![],
|
vec![],
|
||||||
"../../wasitests/readlink.out"
|
"../../wasitests/readlink.out"
|
||||||
);
|
);
|
||||||
|
@ -4,7 +4,20 @@ fn test_wasi_sees_virtual_root() {
|
|||||||
"../../wasitests/wasi_sees_virtual_root.wasm",
|
"../../wasitests/wasi_sees_virtual_root.wasm",
|
||||||
"wasi_sees_virtual_root",
|
"wasi_sees_virtual_root",
|
||||||
vec![],
|
vec![],
|
||||||
vec![("act1".to_string(), ::std::path::PathBuf::from("wasitests/test_fs/hamlet/act1")),("act2".to_string(), ::std::path::PathBuf::from("wasitests/test_fs/hamlet/act2")),("act1-again".to_string(), ::std::path::PathBuf::from("wasitests/test_fs/hamlet/act1")),],
|
vec![
|
||||||
|
(
|
||||||
|
"act1".to_string(),
|
||||||
|
::std::path::PathBuf::from("wasitests/test_fs/hamlet/act1")
|
||||||
|
),
|
||||||
|
(
|
||||||
|
"act2".to_string(),
|
||||||
|
::std::path::PathBuf::from("wasitests/test_fs/hamlet/act2")
|
||||||
|
),
|
||||||
|
(
|
||||||
|
"act1-again".to_string(),
|
||||||
|
::std::path::PathBuf::from("wasitests/test_fs/hamlet/act1")
|
||||||
|
),
|
||||||
|
],
|
||||||
vec![],
|
vec![],
|
||||||
"../../wasitests/wasi_sees_virtual_root.out"
|
"../../wasitests/wasi_sees_virtual_root.out"
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user