Skip to content

Commit

Permalink
register the Rust strings test and exercise new API symmetric tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cpetig committed Sep 2, 2024
1 parent b9ee2fa commit 797ca6c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions crates/cpp/tests/symmetric.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,11 @@ fn tests(
let mut files = Default::default();
let mut opts = wit_bindgen_cpp::Opts::default();
opts.symmetric = true;
if let Some(path) = path.file_name().and_then(|s| s.to_str()) {
if path.contains(".new.") {
opts.new_api = true;
}
}
opts.build().generate(&resolve, world, &mut files).unwrap();

for (file, contents) in files.iter() {
Expand Down
3 changes: 3 additions & 0 deletions crates/test-rust-wasm/src/bin/strings.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
include!("../../../../tests/runtime/strings/wasm.rs");

fn main() {}

0 comments on commit 797ca6c

Please sign in to comment.