mirror of https://github.com/WebAssembly/wasi-sdk
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
369 B
18 lines
369 B
1 year ago
|
#!/bin/bash
|
||
|
# Simplified runner for cmake
|
||
|
|
||
|
set -ex
|
||
|
|
||
|
runwasi="$1"
|
||
|
target="$2"
|
||
|
stdout_expected="$3"
|
||
|
stderr_expected="/dev/null"
|
||
|
|
||
|
stdout_observed="$target.stdout.observed"
|
||
|
stderr_observed="$target.stderr.observed"
|
||
|
|
||
|
"$runwasi" "$target" > "$stdout_observed" 2> "$stderr_observed"
|
||
|
|
||
|
diff -u "$stderr_expected" "$stderr_observed"
|
||
|
diff -u "$stdout_expected" "$stdout_observed"
|