Skip to content

Commit af99d9b

Browse files
authored
Update README.md
1 parent 18640f3 commit af99d9b

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,11 @@ For the demo:
77
- This will create two excel sheets. The Sheet called testgen_mocks.xlsx will contain information about the functions that are declared as extern
88
- Fill in the excel sheet like this:
99

10-
| return: RETURN_INT(int) | position_as_bytes: WRITE_BYTES(12) | hmac_as_bytes: WRITE_BYTES(64) | | |
11-
|-----------------------------|------------------------------------|--------------------------------|------------------------|-----------------------|
12-
| return: RETURN_INT(int) | message: WRITE_BYTES(len) | key: WRITE_BYTES(64) | nonce: WRITE_BYTES(64) | hmac: WRITE_BYTES(64) |
13-
| return: RETURN_INT(uint8_t) | | | | |
14-
| return: RETURN_INT(int) | | | | |
15-
10+
| int GPS_driver_obtain_current_position(uint8_t * position_as_bytes, uint8_t * hmac_as_bytes) | return: RETURN_INT(int) | position_as_bytes: WRITE_BYTES(12) | hmac_as_bytes: WRITE_BYTES(64) | | |
11+
|---------------------------------------------------------------------------------------------------------------------------|-----------------------------|------------------------------------|--------------------------------|------------------------|-----------------------|
12+
| int third_party_library_calc_hmac(uint8_t * const message, int len, char * const key, char * const nonce, uint8_t * hmac) | return: RETURN_INT(int) | message: WRITE_BYTES(len) | key: WRITE_BYTES(64) | nonce: WRITE_BYTES(64) | hmac: WRITE_BYTES(64) |
13+
| uint8_t HSM_get_random_byte() | return: RETURN_INT(uint8_t) | | | | |
14+
| int driver_get_current_time() | return: RETURN_INT(int) | | | | |
1615
- Run the second script to generate the mocking library from this:
1716
- ```python3 gen_tests.py mocklib gen_template/testgen_mocks.xlsx ../mocks```
1817
- This creates mocklib.h and mocklib.cpp in fuzzing/mocks

0 commit comments

Comments
 (0)