Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add sample ctest cmds to tutorials #566

Merged
merged 1 commit into from
Nov 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions tutorials/02_installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,22 @@ Follow these steps to run tests and static code analysis in your clone of this r
make test
```

Each test is registered with `ctest`. These can then be filtered with the `ctest` command line.

```
# See a list of all available tests
ctest -N

# Run all tests in dartsim (verbose)
ctest -R dartsim -V

# Run all INTEGRATION tests (verbose)
ctest -R INTEGRATION -V

# Run all COMMON tests (verbose)
ctest -R COMMON -V
```

3. You will need Cppcheck in order to run static code checks. On Ubuntu Cppcheck can be installed using
```
sudo apt-get install cppcheck
Expand Down
Loading