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.
wasi-sdk/tests/run.sh

33 lines
812 B

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