Add assignment 11

This commit is contained in:
Minseong Jang
2022-11-22 23:29:53 +09:00
parent 3351e8d330
commit 2ecc63770e
8 changed files with 393 additions and 0 deletions

33
scripts/grade-11.sh Executable file
View File

@@ -0,0 +1,33 @@
#!/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 assignment11_grade")
if [ $(run_tests) -ne 0 ]; then
exit 1
fi
done
exit 0

View File

@@ -7,3 +7,4 @@ BASEDIR=$(dirname "$0")/..
mkdir -p $BASEDIR/target
zip -rj $BASEDIR/target/assignment04.zip src/assignments/assignment04
zip -rj $BASEDIR/target/assignment11.zip src/assignments/assignment11