Fix Windows CI
This commit is contained in:
@@ -9,5 +9,7 @@ install:
|
|||||||
- rustc -vV
|
- rustc -vV
|
||||||
- cargo -vV
|
- cargo -vV
|
||||||
- rustup component add rustfmt
|
- rustup component add rustfmt
|
||||||
|
- cd %APPVEYOR_BUILD_FOLDER%
|
||||||
|
- git submodule update --init --recursive
|
||||||
build: false
|
build: false
|
||||||
test_script: test-all.bat
|
test_script: test-all.bat
|
||||||
|
|||||||
@@ -1,60 +1,72 @@
|
|||||||
mod runtime;
|
mod runtime;
|
||||||
|
|
||||||
|
#[cfg(all(unix))]
|
||||||
#[test]
|
#[test]
|
||||||
fn sched_yield() -> Result<(), String> {
|
fn sched_yield() -> Result<(), String> {
|
||||||
runtime::run_test("tests/misc-tests/bin/sched_yield.wasm")
|
runtime::run_test("tests/misc-tests/bin/sched_yield.wasm")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(all(unix))]
|
||||||
#[test]
|
#[test]
|
||||||
fn truncation_rights() -> Result<(), String> {
|
fn truncation_rights() -> Result<(), String> {
|
||||||
runtime::run_test("tests/misc-tests/bin/truncation_rights.wasm")
|
runtime::run_test("tests/misc-tests/bin/truncation_rights.wasm")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(all(unix))]
|
||||||
#[test]
|
#[test]
|
||||||
fn unlink_directory() -> Result<(), String> {
|
fn unlink_directory() -> Result<(), String> {
|
||||||
runtime::run_test("tests/misc-tests/bin/unlink_directory.wasm")
|
runtime::run_test("tests/misc-tests/bin/unlink_directory.wasm")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(all(unix))]
|
||||||
#[test]
|
#[test]
|
||||||
fn remove_nonempty_directory() -> Result<(), String> {
|
fn remove_nonempty_directory() -> Result<(), String> {
|
||||||
runtime::run_test("tests/misc-tests/bin/remove_nonempty_directory.wasm")
|
runtime::run_test("tests/misc-tests/bin/remove_nonempty_directory.wasm")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(all(unix))]
|
||||||
#[test]
|
#[test]
|
||||||
fn interesting_paths() -> Result<(), String> {
|
fn interesting_paths() -> Result<(), String> {
|
||||||
runtime::run_test("tests/misc-tests/bin/interesting_paths.wasm")
|
runtime::run_test("tests/misc-tests/bin/interesting_paths.wasm")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(all(unix))]
|
||||||
#[test]
|
#[test]
|
||||||
fn nofollow_errors() -> Result<(), String> {
|
fn nofollow_errors() -> Result<(), String> {
|
||||||
runtime::run_test("tests/misc-tests/bin/nofollow_errors.wasm")
|
runtime::run_test("tests/misc-tests/bin/nofollow_errors.wasm")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(all(unix))]
|
||||||
#[test]
|
#[test]
|
||||||
fn symlink_loop() -> Result<(), String> {
|
fn symlink_loop() -> Result<(), String> {
|
||||||
runtime::run_test("tests/misc-tests/bin/symlink_loop.wasm")
|
runtime::run_test("tests/misc-tests/bin/symlink_loop.wasm")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(all(unix))]
|
||||||
#[test]
|
#[test]
|
||||||
fn close_preopen() -> Result<(), String> {
|
fn close_preopen() -> Result<(), String> {
|
||||||
runtime::run_test("tests/misc-tests/bin/close_preopen.wasm")
|
runtime::run_test("tests/misc-tests/bin/close_preopen.wasm")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(all(unix))]
|
||||||
#[test]
|
#[test]
|
||||||
fn clock_time_get() -> Result<(), String> {
|
fn clock_time_get() -> Result<(), String> {
|
||||||
runtime::run_test("tests/misc-tests/bin/clock_time_get.wasm")
|
runtime::run_test("tests/misc-tests/bin/clock_time_get.wasm")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(all(unix))]
|
||||||
#[test]
|
#[test]
|
||||||
fn readlink_no_buffer() -> Result<(), String> {
|
fn readlink_no_buffer() -> Result<(), String> {
|
||||||
runtime::run_test("tests/misc-tests/bin/readlink_no_buffer.wasm")
|
runtime::run_test("tests/misc-tests/bin/readlink_no_buffer.wasm")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(all(unix))]
|
||||||
#[test]
|
#[test]
|
||||||
fn isatty() -> Result<(), String> {
|
fn isatty() -> Result<(), String> {
|
||||||
runtime::run_test("tests/misc-tests/bin/isatty.wasm")
|
runtime::run_test("tests/misc-tests/bin/isatty.wasm")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(all(unix))]
|
||||||
#[test]
|
#[test]
|
||||||
fn directory_seek() -> Result<(), String> {
|
fn directory_seek() -> Result<(), String> {
|
||||||
runtime::run_test("tests/misc-tests/bin/directory_seek.wasm")
|
runtime::run_test("tests/misc-tests/bin/directory_seek.wasm")
|
||||||
|
|||||||
Reference in New Issue
Block a user