mirror of
https://github.com/kmc7468/cs220.git
synced 2025-12-12 21:08:45 +00:00
34 lines
507 B
Bash
Executable File
34 lines
507 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
set -uo pipefail
|
|
IFS=$'\n\t'
|
|
|
|
# Imports library.
|
|
BASEDIR=$(dirname "$0")
|
|
source $BASEDIR/grade-utils.sh
|
|
|
|
RUNNERS=(
|
|
"cargo"
|
|
"cargo --release"
|
|
"cargo_asan"
|
|
"cargo_asan --release"
|
|
"cargo_tsan"
|
|
"cargo_tsan --release"
|
|
)
|
|
|
|
# Lints.
|
|
run_linters || exit 1
|
|
|
|
# Executes test for each runner.
|
|
for RUNNER in "${RUNNERS[@]}"; do
|
|
echo "Running with $RUNNER..."
|
|
|
|
TESTS=("--lib assignment13")
|
|
if [ $(run_tests) -ne 0 ]; then
|
|
exit 1
|
|
fi
|
|
done
|
|
|
|
exit 0
|