-
Notifications
You must be signed in to change notification settings - Fork 953
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add information on running tests (#796)
Co-authored-by: SpyCheese <[email protected]>
- Loading branch information
1 parent
52fd824
commit 79ed14c
Showing
2 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Tests execution | ||
TON contains multiple unit-tests, that facilitate detection of erroneous blockchain behaviour on each commit. | ||
## Build tests | ||
Go inside the build directory and, if you use ninja, build the tests using the following command: | ||
|
||
```ninja test-ed25519 test-ed25519-crypto test-bigint test-vm test-fift test-cells test-smartcont test-net test-tdactor test-tdutils test-tonlib-offline test-adnl test-dht test-rldp test-rldp2 test-catchain test-fec test-tddb test-db test-validator-session-state``` | ||
|
||
For more details on how to build TON artifacts, please refer to any of Github actions. | ||
|
||
For cmake use: | ||
|
||
```cmake --build . --target test-ed25519 test-ed25519-crypto test-bigint test-vm test-fift test-cells test-smartcont test-net test-tdactor test-tdutils test-tonlib-offline test-adnl test-dht test-rldp test-rldp2 test-catchain test-fec test-tddb test-db test-validator-session-state``` | ||
|
||
## Run tests | ||
Go inside the build directory and with ninja execute: | ||
|
||
```ninja test``` | ||
|
||
with ctest: | ||
|
||
```ctest``` | ||
|
||
## Integration of tests into CI | ||
Most relevant GitHub actions include the step ```Run tests``` that executes the tests. If any of tests fails, the action will be interrupted and no artifacts will be provided. |