mirror of
https://github.com/mii443/wasmer.git
synced 2025-09-04 00:19:24 +00:00
test(c-api) Restore the wasm-c-api
test suite.
This commit is contained in:
18
lib/c-api/tests/wasm_c_api_tests.rs
Normal file
18
lib/c-api/tests/wasm_c_api_tests.rs
Normal file
@ -0,0 +1,18 @@
|
||||
mod test_c_helpers;
|
||||
|
||||
use test_c_helpers::compile_with_cmake_and_run_test;
|
||||
|
||||
#[test]
|
||||
fn test_wasm_c_api() {
|
||||
let project_tests_dir = concat!(env!("CARGO_MANIFEST_DIR"), "/tests/wasm_c_api/");
|
||||
|
||||
let cmake_args = vec![
|
||||
".",
|
||||
// We need something like this to get this working on Windows, but this doesn't seem
|
||||
// quite right -- perhaps it's double escaping the quotes?
|
||||
#[cfg(target_os = "windows")]
|
||||
r#"-G "MinGW Makefiles""#,
|
||||
];
|
||||
|
||||
compile_with_cmake_and_run_test(project_tests_dir, cmake_args);
|
||||
}
|
Reference in New Issue
Block a user