Rename runwasm to runwasi.

pull/92/head
Dan Gohman 5 years ago
parent 21657b7a78
commit 268a57b41f

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
set -ueo pipefail set -ueo pipefail
runwasm="$1" runwasi="$1"
cd compile-only cd compile-only
for options in -O0 -O2 "-O2 -flto"; do for options in -O0 -O2 "-O2 -flto"; do
@ -22,11 +22,11 @@ for options in -O0 -O2 "-O2 -flto"; do
echo "===== Testing with $options =====" echo "===== Testing with $options ====="
for file in *.c; do for file in *.c; do
echo "Testing $file..." echo "Testing $file..."
../testcase.sh "$runwasm" clang "$options" "$file" ../testcase.sh "$runwasi" clang "$options" "$file"
done done
for file in *.cc; do for file in *.cc; do
echo "Testing $file..." echo "Testing $file..."
../testcase.sh "$runwasm" clang++ "$options" "$file" ../testcase.sh "$runwasi" clang++ "$options" "$file"
done done
done done
cd - >/dev/null cd - >/dev/null

@ -4,7 +4,7 @@ set -ueo pipefail
# A simple testcase runner that runs a command, captures all its command-line # A simple testcase runner that runs a command, captures all its command-line
# outputs, and compares them against expected outputs. # outputs, and compares them against expected outputs.
runwasm="$1" runwasi="$1"
clang="$2" clang="$2"
options="$3" options="$3"
input="$4" input="$4"
@ -29,7 +29,7 @@ else
fi fi
exit_status=0 exit_status=0
"$runwasm" "$wasm" \ "$runwasi" "$wasm" \
< "$stdin" \ < "$stdin" \
> "$stdout_observed" \ > "$stdout_observed" \
2> "$stderr_observed" \ 2> "$stderr_observed" \

Loading…
Cancel
Save