Skip to content

Commit

Permalink
Add instructions on how to run automated test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
vedithal-amd committed Dec 23, 2024
1 parent c17e009 commit e539e98
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,20 @@ To quickly get the environment (bash shell) for building and testing, run the fo
* `cd utils/docker_env`
* `docker compose run app`

Inside the docker container, clean, build and install the project with tests enabled:
```
rm -rf build install && cmake -B build -D CMAKE_INSTALL_PREFIX=install -D ENABLE_TESTS=ON -D INSTALL_TESTS=ON -DENABLE_COVERAGE=ON -S . && cmake --build build --target install --parallel 8
```

Note that per the above command, build assets will be stored under `build` directory and installed assets will be stored under `install` directory.

Then, to run the automated test suite, run the following command:
```
ctest
```

For manual testing, you can find the executable at `install/bin/rocprof-compute`

NOTE: This Dockerfile uses `rocm/dev-ubuntu-22.04` as the base image

## How to Cite
Expand Down

0 comments on commit e539e98

Please sign in to comment.