mirror of
https://github.com/kmc7468/cs220.git
synced 2025-12-14 22:18:46 +00:00
minor fix
This commit is contained in:
@@ -9,23 +9,21 @@ BASEDIR=$(dirname "$0")
|
|||||||
source $BASEDIR/test_cases.sh
|
source $BASEDIR/test_cases.sh
|
||||||
source $BASEDIR/grade-utils.sh
|
source $BASEDIR/grade-utils.sh
|
||||||
|
|
||||||
RUNNERS="cargo"
|
RUNNER="cargo"
|
||||||
|
|
||||||
# Lints.
|
# Lints.
|
||||||
run_linters || exit 0
|
run_linters || exit 0
|
||||||
|
|
||||||
# Executes test for each runner.
|
# Executes test for each runner.
|
||||||
for RUNNER in "${RUNNERS[@]}"; do
|
echo "Running with $RUNNER..."
|
||||||
echo "Running with $RUNNER..."
|
echo "Below lines will show only failed tests."
|
||||||
echo "Below lines will show only failed tests."
|
|
||||||
|
|
||||||
ASSIGNMENT=$(printf "assignment%02d" $1)
|
ASSIGNMENT=$(printf "assignment%02d" $1)
|
||||||
TEST_NAME=$(printf "TEST%02d" $1)
|
TEST_NAME=$(printf "TEST%02d" $1)
|
||||||
TESTS=$(get_test_cases $TEST_NAME)
|
TESTS=$(get_test_cases $TEST_NAME)
|
||||||
|
|
||||||
# Runs tests.
|
# Runs tests.
|
||||||
SCORE=$(run_tests)
|
SCORE=$(run_tests)
|
||||||
done
|
|
||||||
|
|
||||||
echo Your score: ${SCORE}
|
echo Your score: ${SCORE}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user