Skip to content

Commit 38d1b5e

Browse files
committed
Document running unit tests individually
ctest does not provide any option for passing custom arguments to the test executable, hence AOCL_BOARD_PACKAGE_ROOT must be set manually.
1 parent b41114d commit 38d1b5e

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,24 @@ ctest -V
160160
161161
- Running unit tests is not supported for ARM cross compilation.
162162
163+
- To run unit tests individually, first set the board package directory:
164+
165+
```
166+
export AOCL_BOARD_PACKAGE_ROOT="$(git rev-parse --show-toplevel)/test/board/a10_ref"
167+
```
168+
169+
Switch to the directory containing the test executable:
170+
171+
```
172+
cd build/test
173+
```
174+
175+
Run the tests whose [group and name contain the given substrings](https://github.com/cpputest/cpputest/blob/master/README.md#command-line-switches):
176+
177+
```
178+
./acl_test -v -g acl_mem -n create_buffer
179+
```
180+
163181
## Using the Runtime
164182
165183
### With IntelⓇ FPGA SDK for OpenCL™ or IntelⓇ FPGA RTE for OpenCL™

0 commit comments

Comments
 (0)