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