enable wasm TestBase64

This commit is contained in:
Folkert 2021-09-04 20:01:06 +02:00
parent 93817a38e2
commit 2e6bf95fda
2 changed files with 12 additions and 2 deletions

View File

@ -327,7 +327,7 @@ mod cli_run {
// TODO fix QuicksortApp and then remove this!
match benchmark.filename {
"QuicksortApp.roc" | "TestBase64.roc" => {
"QuicksortApp.roc" => {
eprintln!("WARNING: skipping testing benchmark {} because the test is broken right now!", benchmark.filename);
return;
}
@ -608,6 +608,14 @@ fn run_with_wasmer(wasm_path: &std::path::Path, stdin: &[&str]) -> String {
use std::io::Write;
use wasmer::{Instance, Module, Store};
// std::process::Command::new("cp")
// .args(&[
// wasm_path.to_str().unwrap(),
// "/home/folkertdev/roc/wasm/nqueens.wasm",
// ])
// .output()
// .unwrap();
let store = Store::default();
let module = Module::from_file(&store, &wasm_path).unwrap();

View File

@ -617,11 +617,13 @@ fn link_wasm32(
// include libc
"-lc",
"-target",
"wasm32-wasi",
"wasm32-wasi-musl",
"--pkg-begin",
"str",
zig_str_path.to_str().unwrap(),
"--pkg-end",
"--strip",
// "-O", "ReleaseSmall",
// useful for debugging
// "-femit-llvm-ir=/home/folkertdev/roc/roc/examples/benchmarks/platform/host.ll",
])