mirror of
https://github.com/monero-project/monero.git
synced 2025-08-01 17:06:12 -04:00
scripts for faster test wallets generation
This commit is contained in:
parent
2060bfe5ad
commit
44cc0ef147
11 changed files with 121 additions and 20 deletions
20
tests/libwallet_api_tests/scripts/create_wallets.sh
Executable file
20
tests/libwallet_api_tests/scripts/create_wallets.sh
Executable file
|
@ -0,0 +1,20 @@
|
|||
#!/bin/bash
|
||||
|
||||
function create_wallet {
|
||||
wallet_name=$1
|
||||
echo 0 | simplewallet --testnet --trusted-daemon --daemon-address localhost:38081 --generate-new-wallet $wallet_name --password "" --restore-height=1
|
||||
}
|
||||
|
||||
|
||||
|
||||
create_wallet wallet_01.bin
|
||||
create_wallet wallet_02.bin
|
||||
create_wallet wallet_03.bin
|
||||
#create_wallet wallet_04.bin
|
||||
create_wallet wallet_05.bin
|
||||
create_wallet wallet_06.bin
|
||||
|
||||
|
||||
#create_wallet wallet_m
|
||||
|
||||
|
4
tests/libwallet_api_tests/scripts/mining_start.sh
Executable file
4
tests/libwallet_api_tests/scripts/mining_start.sh
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
rlwrap simplewallet --wallet-file wallet_m --password "" --testnet --trusted-daemon --daemon-address localhost:38081 --log-file wallet_m.log start_mining
|
||||
|
4
tests/libwallet_api_tests/scripts/mining_stop.sh
Executable file
4
tests/libwallet_api_tests/scripts/mining_stop.sh
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
rlwrap simplewallet --wallet-file wallet_m --password "" --testnet --trusted-daemon --daemon-address localhost:38081 --log-file wallet_miner.log stop_mining
|
||||
|
5
tests/libwallet_api_tests/scripts/open_wallet_1.sh
Executable file
5
tests/libwallet_api_tests/scripts/open_wallet_1.sh
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
|
||||
rlwrap simplewallet --wallet-file wallet_01.bin --password "" --testnet --trusted-daemon --daemon-address localhost:38081 --log-file wallet_01.log
|
||||
|
5
tests/libwallet_api_tests/scripts/open_wallet_2.sh
Executable file
5
tests/libwallet_api_tests/scripts/open_wallet_2.sh
Executable file
|
@ -0,0 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
|
||||
rlwrap simplewallet --wallet-file wallet_02.bin --password "" --testnet --trusted-daemon --daemon-address localhost:38081 --log-file wallet_01.log
|
||||
|
4
tests/libwallet_api_tests/scripts/open_wallet_3.sh
Executable file
4
tests/libwallet_api_tests/scripts/open_wallet_3.sh
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
rlwrap simplewallet --wallet-file wallet_03.bin --password "" --testnet --trusted-daemon --daemon-address localhost:38081 --log-file wallet_03.log
|
||||
|
4
tests/libwallet_api_tests/scripts/open_wallet_4.sh
Executable file
4
tests/libwallet_api_tests/scripts/open_wallet_4.sh
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
rlwrap simplewallet --wallet-file wallet_04.bin --password "" --testnet --trusted-daemon --daemon-address localhost:38081 --log-file wallet_04.log
|
||||
|
4
tests/libwallet_api_tests/scripts/open_wallet_5.sh
Executable file
4
tests/libwallet_api_tests/scripts/open_wallet_5.sh
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
rlwrap simplewallet --wallet-file wallet_04.bin --password "" --testnet --trusted-daemon --daemon-address localhost:38081 --log-file wallet_04.log
|
||||
|
4
tests/libwallet_api_tests/scripts/open_wallet_miner.sh
Executable file
4
tests/libwallet_api_tests/scripts/open_wallet_miner.sh
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
rlwrap simplewallet --wallet-file wallet_m --password "" --testnet --trusted-daemon --daemon-address 127.0.0.1:38081 --log-file wallet_m.log
|
||||
|
21
tests/libwallet_api_tests/scripts/send_funds.sh
Executable file
21
tests/libwallet_api_tests/scripts/send_funds.sh
Executable file
|
@ -0,0 +1,21 @@
|
|||
#!/bin/bash
|
||||
|
||||
|
||||
|
||||
function send_funds {
|
||||
local amount=$1
|
||||
local dest=$(cat "$2.address.txt")
|
||||
|
||||
simplewallet --wallet-file wallet_m --password "" \
|
||||
--testnet --trusted-daemon --daemon-address localhost:38081 --log-file wallet_m.log \
|
||||
--command transfer $dest $amount
|
||||
}
|
||||
|
||||
|
||||
send_funds 100 wallet_01.bin
|
||||
send_funds 100 wallet_02.bin
|
||||
send_funds 100 wallet_03.bin
|
||||
send_funds 100 wallet_04.bin
|
||||
send_funds 100 wallet_05.bin
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue