wamr-swift icon indicating copy to clipboard operation
wamr-swift copied to clipboard

Provide an ability to redirect stdout and stderr

Open MaxDesiatov opened this issue 4 years ago • 2 comments

carton test previously parsed output of tests that were run with wasmer. It's no longer possible to capture their output, I wonder if WAMR itself supports this at all?

MaxDesiatov avatar Dec 25 '20 19:12 MaxDesiatov

As far as I saw, WAMR doesn't provide a way to hook stdout/stderr :cry:

One suggestion: How about launching another carton process in carton test, and execute Wasm binary with WAMR in the spawned process, then capture the output?

kateinoigakukun avatar Dec 28 '20 09:12 kateinoigakukun

In the meantime, I've created https://github.com/bytecodealliance/wasm-micro-runtime/issues/482 to track this in WAMR proper.

MaxDesiatov avatar Dec 28 '20 17:12 MaxDesiatov