Skip to content

Commit

Permalink
more tech tips
Browse files Browse the repository at this point in the history
  • Loading branch information
tomtomjhj committed Sep 19, 2023
1 parent 3a93b5d commit 5267c58
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions homework/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <module name>
# 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 <module name> <test name>
# 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 <module name> -- --exact <test name>
```

- 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.
Expand Down

0 comments on commit 5267c58

Please sign in to comment.