aboutsummaryrefslogtreecommitdiff
path: root/tests/libwallet_api_tests
diff options
context:
space:
mode:
authorIlya Kitaev <mbg033@gmail.com>2016-09-23 23:35:57 +0300
committerIlya Kitaev <mbg033@gmail.com>2016-09-23 23:35:57 +0300
commit2e18e10beb98310e1e1dc8c01e5f7bcd0cf748dc (patch)
treed09afadd1b3844350d3ece9a8bcb675ec51193e0 /tests/libwallet_api_tests
parentlibwallet_api: tests: env variables for WALLETS_ROOT_DIR and (diff)
downloadmonero-2e18e10beb98310e1e1dc8c01e5f7bcd0cf748dc.tar.xz
libwallet_api: simple documentation on testing environment
Diffstat (limited to 'tests/libwallet_api_tests')
-rw-r--r--tests/libwallet_api_tests/scripts/README.md24
-rwxr-xr-xtests/libwallet_api_tests/scripts/create_wallets.sh4
2 files changed, 25 insertions, 3 deletions
diff --git a/tests/libwallet_api_tests/scripts/README.md b/tests/libwallet_api_tests/scripts/README.md
new file mode 100644
index 000000000..2705cc04b
--- /dev/null
+++ b/tests/libwallet_api_tests/scripts/README.md
@@ -0,0 +1,24 @@
+# Running libwallet_api tests
+
+## Environment for the tests
+* Running monero node, linked to private/public testnet.
+ By default, tests expect daemon running at ```localhost:38081```,
+ can we overriden with enviroment variable ```TESTNET_DAEMON_ADDRESS=<your_daemon_address>```
+ [Manual](https://github.com/moneroexamples/private-testnet) explaining how to run private testnet.
+
+* Directory with pre-generated wallets
+ (wallet_01.bin, wallet_02.bin,...,wallet_06.bin, some of these wallets might not be used in the tests currently).
+ By default, tests expect these wallets to be in ```/var/monero/testnet_pvt```.
+ Directory can be overriden with environment variable ```WALLETS_ROOT_DIR=<your_directory_with_wallets>```.
+ Directory and files should be writable for the user running tests.
+
+
+## Generating test wallets
+* ```create_wallets.sh``` - this script will create wallets (wallet_01.bin, wallet_02.bin,...,wallet_06.bin) in current directory.
+ when running first time, please uncomment line ```#create_wallet wallet_m``` to create miner wallet as well.
+ This wallet should be used for mining and all test wallets supposed to be seed from this miner wallet
+
+* ```mining_start.sh``` and ```mining_stop.sh``` - helper scripts to start and stop mining on miner waller
+
+* ```send_funds.sh``` - script for seeding test wallets. Please run this script when you have ehough money on miner wallet
+
diff --git a/tests/libwallet_api_tests/scripts/create_wallets.sh b/tests/libwallet_api_tests/scripts/create_wallets.sh
index e25d2c317..f33564e7f 100755
--- a/tests/libwallet_api_tests/scripts/create_wallets.sh
+++ b/tests/libwallet_api_tests/scripts/create_wallets.sh
@@ -6,7 +6,6 @@ function create_wallet {
}
-
create_wallet wallet_01.bin
create_wallet wallet_02.bin
create_wallet wallet_03.bin
@@ -14,7 +13,6 @@ create_wallet wallet_04.bin
create_wallet wallet_05.bin
create_wallet wallet_06.bin
-
-#create_wallet wallet_m
+# create_wallet wallet_m