Add grading scripts

This commit is contained in:
Minseong Jang
2022-04-21 18:23:53 +09:00
parent b2c8838dc8
commit 268bebc91e
5 changed files with 55 additions and 0 deletions

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

@@ -0,0 +1,11 @@
#!/usr/bin/env bash
# Exit when any command fails.
set -e
# Run lints.
cargo fmt --all -- --check # run `cargo fmt` to auto-correct format.
cargo clippy
# Run tests.
RUST_MIN_STACK=33554432 cargo test --release test_examples_simplify_cfg

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

@@ -0,0 +1,11 @@
#!/usr/bin/env bash
# Exit when any command fails.
set -e
# Run lints.
cargo fmt --all -- --check # run `cargo fmt` to auto-correct format.
cargo clippy
# Run tests.
RUST_MIN_STACK=33554432 cargo test --release test_examples_mem2reg

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

@@ -0,0 +1,11 @@
#!/usr/bin/env bash
# Exit when any command fails.
set -e
# Run lints.
cargo fmt --all -- --check # run `cargo fmt` to auto-correct format.
cargo clippy
# Run tests.
RUST_MIN_STACK=33554432 cargo test --release test_examples_gvn

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

@@ -0,0 +1,11 @@
#!/usr/bin/env bash
# Exit when any command fails.
set -e
# Run lints.
cargo fmt --all -- --check # run `cargo fmt` to auto-correct format.
cargo clippy
# Run tests.
RUST_MIN_STACK=33554432 cargo test --release test_examples_deadcode

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

@@ -0,0 +1,11 @@
#!/usr/bin/env bash
# Exit when any command fails.
set -e
# Run lints.
cargo fmt --all -- --check # run `cargo fmt` to auto-correct format.
cargo clippy
# Run tests.
RUST_MIN_STACK=33554432 cargo test --release test_examples_asmgen