Skip to content

Commit 68b4bbd

Browse files
Add instructions for running tests
1 parent 628e4cf commit 68b4bbd

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,16 @@ make -j
152152
sudo make install
153153
```
154154

155+
## Test instructions
156+
157+
To run the test suite:
158+
159+
```bash
160+
cmake -B build
161+
cmake --build build -j
162+
ctest --test-dir build
163+
```
164+
155165
## Tester program
156166

157167
You can pass the **tester** program one or more of the following arguments: ```u32```, ```s32```, ```u64```, ```s64``` to test the four cases (signed, unsigned, 32-bit, or 64-bit), or run it with no arguments to test all four. The tester will verify the correctness of libdivide via a set of randomly chosen numerators and denominators, by comparing the result of libdivide's division to hardware division. It will stop with an error message as soon as it finds a discrepancy.

0 commit comments

Comments
 (0)