From 5267c5842b4f03d5310d1105dfa66397d24ae9c9 Mon Sep 17 00:00:00 2001 From: Jaehwang Jung Date: Tue, 19 Sep 2023 14:11:38 +0900 Subject: [PATCH] more tech tips --- homework/README.md | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/homework/README.md b/homework/README.md index 1d9ae31b3f3..a160f432f71 100644 --- a/homework/README.md +++ b/homework/README.md @@ -18,24 +18,33 @@ - Use rustfmt and clippy: - ``` + ```sh cargo fmt cargo clippy ``` - Running individual tests - ``` + ```sh # Run all tests in a module cargo test --test - # For example, run all tests in the hazard_pointer module + # For example, run all tests in tests/hazard_pointer.rs cargo test --test hazard_pointer - # Run all tests in a module + + # Run all tests in a module that matches (substring) the name cargo test --test # For example, run the stack_queue test in the hazard_pointer module cargo test --test hazard_pointer stack_queue + + # Run the test that exactly matches the name + cargo test --test -- --exact ``` +- Running grading scripts in Mac: [#338](https://github.com/kaist-cp/cs431/issues/338). + +- Q: Sanitizer output is not readable. + A: Make sure that `llvm-symbolizer` is under `$PATH`. This should be already set up in our server. + ## Using LLVM Sanitizers We use LLVM sanitizers for grading.