Commit Graph

2427 Commits

Author SHA1 Message Date
Mark McCaskey
08b4b639f4 add realtime and monotonic clock support for wasi on windows 2019-05-21 10:24:06 -07:00
Jesús Leganés-Combarro 'piranna
490b94b814 Fix linting 2019-05-21 19:12:35 +02:00
bors[bot]
f3220a0435 Merge #451
451: implement map-dir for WASI; fix bug in path_open r=MarkMcCaskey a=MarkMcCaskey

Colon separated mapping, implemented to be compatible with wasmtime

resolves #458 

example:
```Rust
use std::fs;

fn main() {
    let read_dir = fs::read_dir(".").unwrap();
    for entry in read_dir {
        println!("{:?}", entry.unwrap().path());
    }
}
```
```shell
$ cargo run --release --bin wasmer -- run --mapdir=.:src list-files.wasm
"./bin"
"./installer"
"./lib"
"./update"
"./utils"
"./webassembly"
```

Co-authored-by: Mark McCaskey <mark@wasmer.io>
Co-authored-by: Mark McCaskey <markmccaskey@users.noreply.github.com>
2019-05-21 01:01:27 +00:00
Mark McCaskey
54a91a1b99 make wasi regression tests single threaded 2019-05-20 17:56:43 -07:00
Mark McCaskey
6b81ec0aa7 add mapdir regression test; add testfs; add arg passing system 2019-05-20 17:43:50 -07:00
Mark McCaskey
7734001c1c update plugin example to pass empty vec for mapped_dir arg 2019-05-20 16:50:56 -07:00
Mark McCaskey
3052a10aeb add warning if mapdir is used with emscripten 2019-05-20 16:49:49 -07:00
Mark McCaskey
7cc967e709 flip order of args in mapdir 2019-05-20 16:46:08 -07:00
Mark McCaskey
be4dd453c2 clean up and fix bugs 2019-05-20 16:39:02 -07:00
Mark McCaskey
97a2237255
Merge branch 'master' into feature/map-dir 2019-05-20 15:23:13 -07:00
bors[bot]
082c56bfc3 Merge #457
457: fix file metadata wasi test r=MarkMcCaskey a=MarkMcCaskey

gets the test working by properly filling in data into the stat

also resolves #453 

Co-authored-by: Mark McCaskey <mark@wasmer.io>
Co-authored-by: Mark McCaskey <markmccaskey@users.noreply.github.com>
2019-05-20 22:11:36 +00:00
Mark McCaskey
f2001fea50 fix file creation ts for WASI Linux 2019-05-20 15:02:22 -07:00
Mark McCaskey
d7d17bd647 add expect to call entrypoint in wasi tests 2019-05-20 13:55:29 -07:00
Jesús Leganés-Combarro 'piranna
34e16d4a84 Move ucontext related functions to their own namespace 2019-05-20 22:54:58 +02:00
Mark McCaskey
7a4b47d651 update compiled tests 2019-05-20 13:28:31 -07:00
Mark McCaskey
a4ccf369c8 explicitly default to nightly 2019-05-20 13:21:31 -07:00
Mark McCaskey
e00f414aa5 try using current rust nightly for wasi tests 2019-05-20 13:05:51 -07:00
Mark McCaskey
faeac98944 change directory before calling rename 2019-05-20 12:12:42 -07:00
Mark McCaskey
c1cda5f5b5 make the directory if it doesn't exist 2019-05-20 12:07:11 -07:00
Mark McCaskey
3fd55cfefb attempt to gain manual control over caching on windows wapm-cli 2019-05-20 11:56:40 -07:00
Mark McCaskey
10fb60db78 attempt to reset wapm-cli dir on windows CI 2019-05-20 11:43:28 -07:00
Mark McCaskey
463ca75637
Merge branch 'master' into fix/wasi-fs-metadata-test 2019-05-20 11:02:33 -07:00
Mark McCaskey
2c5f72805e fix WASI clock bugs 2019-05-20 11:01:28 -07:00
Mark McCaskey
8a177363f4 fix file metadata wasi test 2019-05-20 09:24:55 -07:00
Jesús Leganés-Combarro 'piranna
8995060f9b Mocks for _getcontext, _makecontext, _setcontext and _swapcontext 2019-05-19 20:53:24 +02:00
Jesús Leganés-Combarro 'piranna
f8cfb04e29 _alarm() 2019-05-19 20:24:49 +02:00
Jesús Leganés-Combarro 'piranna
2eb5ca1e48 _gai_strerror() 2019-05-19 20:16:00 +02:00
Jesús Leganés-Combarro 'piranna
7690febe77 getnameinfo() 2019-05-19 19:37:57 +02:00
Jesús Leganés-Combarro 'piranna
ad8178bb2a [pthread] rwlock_destroy(), rwlock_init() and rwlock_wrlock() 2019-05-19 19:16:04 +02:00
Syrus
b1fa60e44a Use appveyor repo tag 2019-05-18 13:26:32 -07:00
Syrus
520e8f7227 Trying to improve appveyor 2019-05-18 12:42:59 -07:00
Syrus
8f345dc284 Updated imports required for jq. Added get_str method in VarArgs 2019-05-18 12:38:22 -07:00
Syrus Akbary
933d22523a
Building wapm with appveyor 2019-05-18 12:18:54 -07:00
Syrus Akbary
973f9350b2
Update .appveyor.yml 2019-05-18 12:11:33 -07:00
Syrus Akbary
ff7cb0532e
Trying to improve appveryor deploys 2019-05-18 12:04:23 -07:00
Syrus Akbary
c55571e0e6
Fix macos release using latest wapm instead of pinned version 2019-05-18 00:38:31 -07:00
Mark McCaskey
4b03abafcc
Merge branch 'master' into feature/map-dir 2019-05-17 16:24:26 -07:00
bors[bot]
edae361689 Merge #452
452: add wasi regression test system r=MarkMcCaskey a=MarkMcCaskey

TODO:
- [x] clean up dependency on emscripten
- [x] clean up dependencies on compiler backends (maybe make a separate testing crate?)

Co-authored-by: Mark McCaskey <mark@wasmer.io>
2019-05-17 23:12:09 +00:00
Mark McCaskey
4760840a77 move stdout capture from runtime core to dev-utils 2019-05-17 15:48:30 -07:00
Mark McCaskey
542e47ff82 add more wasi tests 2019-05-17 15:31:02 -07:00
Mark McCaskey
faa4d058ec rm fallback cache in circle CI 2019-05-17 14:18:58 -07:00
Mark McCaskey
d50b7c498d move wasi tests to nightly section 2019-05-17 14:08:29 -07:00
Mark McCaskey
eb97235a99 fix typo; reorder wasi tests 2019-05-17 13:56:38 -07:00
Mark McCaskey
f03fbdbbb2 install the wasi toolchain and latest nightly in CI 2019-05-17 13:53:22 -07:00
Mark McCaskey
f3288489ba Add wasi integration tests; disable integration tests from all test 2019-05-17 13:42:21 -07:00
Mark McCaskey
b3b5716dbb add files in runtime_Core 2019-05-17 13:31:41 -07:00
Mark McCaskey
ec9c5360ef move stdio capture into runtime_core; rm emscripten dep in wasi 2019-05-17 13:30:10 -07:00
Mark McCaskey
b9bb310215 add wasi regression test system 2019-05-17 12:09:31 -07:00
Mark McCaskey
f9beef276d implement map-dir for WASI; fix bug in path_open 2019-05-16 17:35:13 -07:00
Syrus
4ddffb8285 Update libraries versions to 0.4.2 2019-05-16 14:39:13 -07:00