mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-15 06:58:50 +00:00
Add grading scripts
This commit is contained in:
11
scripts/grade-hw3.sh
Executable file
11
scripts/grade-hw3.sh
Executable 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
11
scripts/grade-hw4.sh
Executable 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
11
scripts/grade-hw5.sh
Executable 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
11
scripts/grade-hw6.sh
Executable 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
11
scripts/grade-hw7.sh
Executable 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
|
||||
Reference in New Issue
Block a user