diff --git a/scripts/grade-hw1.sh b/scripts/grade-hw1.sh index dfac604..13d510d 100755 --- a/scripts/grade-hw1.sh +++ b/scripts/grade-hw1.sh @@ -8,5 +8,5 @@ cargo fmt --all -- --check # run `cargo fmt` to auto-correct format. cargo clippy # Run tests. -RUST_MIN_STACK=33554432 cargo test test_examples_write_c --release -python3 tests/fuzz.py --print -n30 +RUST_MIN_STACK=33554432 cargo test --release test_examples_write_c +RUST_MIN_STACK=33554432 python3 tests/fuzz.py --print -n30 diff --git a/scripts/grade-hw2-small.sh b/scripts/grade-hw2-small.sh new file mode 100755 index 0000000..63f9643 --- /dev/null +++ b/scripts/grade-hw2-small.sh @@ -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_irgen_small diff --git a/scripts/grade-hw2.sh b/scripts/grade-hw2.sh new file mode 100755 index 0000000..420f08c --- /dev/null +++ b/scripts/grade-hw2.sh @@ -0,0 +1,12 @@ +#!/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_irgen +RUST_MIN_STACK=33554432 python3 tests/fuzz.py --irgen -n30