Skip to content

Commit

Permalink
rename: monero -> graft
Browse files Browse the repository at this point in the history
  • Loading branch information
LenyKholodov committed May 13, 2019
1 parent c5a2fe2 commit aeb25ba
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
To run all tests, run:

```
cd /path/to/monero
cd /path/to/graft
make [-jn] debug-test # where n is number of compiler processes
```

To test a release build, replace `debug-test` with `release-test` in the previous command.

# Core tests

Core tests take longer than any other Monero tests, due to the high amount of computational work involved in validating core components.
Core tests take longer than any other Graft tests, due to the high amount of computational work involved in validating core components.

Tests are located in `tests/core_tests/`, and follow a straightforward naming convention. Most cases cover core functionality (`block_reward.cpp`, `chaingen.cpp`, `rct.cpp`, etc.), while some cover basic security tests (`double_spend.cpp` & `integer_overflow.cpp`).

To run only Monero's core tests (after building):
To run only Graft's core tests (after building):

```
cd build/debug/tests/core
Expand All @@ -34,7 +34,7 @@ Crypto tests are located under the `tests/crypto` directory.

Tests correspond to components under `src/crypto/`. A quick comparison reveals the pattern, and new tests should continue the naming convention.

To run only Monero's crypto tests (after building):
To run only Graft's crypto tests (after building):

```
cd build/debug/tests/crypto
Expand All @@ -54,7 +54,7 @@ Functional tests are located under the `tests/functional` directory.

First, run a regtest daemon in the offline mode and with a fixed difficulty:
```
monerod --regtest --offline --fixed-difficulty 1
graftnoded --regtest --offline --fixed-difficulty 1
```
Alternatively, you can run multiple daemons and let them connect with each other by using `--add-exclusive-node`. In this case, make sure that the same fixed difficulty is given to all the daemons.

Expand All @@ -63,7 +63,7 @@ Next, restore a mainnet wallet with the following seed and restore height 0 (the
velvet lymph giddy number token physics poetry unquoted nibs useful sabotage limits benches lifestyle eden nitrogen anvil fewest avoid batch vials washing fences goat unquoted
```

Open the wallet file with `monero-wallet-rpc` with RPC port 18083. Finally, start tests by invoking ./blockchain.py or ./speed.py
Open the wallet file with `graft-wallet-rpc` with RPC port 18083. Finally, start tests by invoking ./blockchain.py or ./speed.py

# Fuzz tests

Expand All @@ -75,7 +75,7 @@ An additional helper utility is provided `contrib/fuzz_testing/fuzz.sh`. AFL mus

Hash tests exist under `tests/hash`, and include a set of target hashes in text files.

To run only Monero's hash tests (after building):
To run only Graft's hash tests (after building):

```
cd build/debug/tests/hash
Expand All @@ -96,7 +96,7 @@ To run the same tests on a release build, replace `debug` with `release`.

Performance tests are located in `tests/performance_tests`, and test features for performance metrics on the host machine.

To run only Monero's performance tests (after building):
To run only Graft's performance tests (after building):

```
cd build/debug/tests/performance_tests
Expand All @@ -111,7 +111,7 @@ To run the same tests on a release build, replace `debug` with `release`.

Unit tests are defined under the `tests/unit_tests` directory. Independent components are tested individually to ensure they work properly on their own.

To run only Monero's unit tests (after building):
To run only Graft's unit tests (after building):

```
cd build/debug/tests/unit_tests
Expand Down

0 comments on commit aeb25ba

Please sign in to comment.