|
@@ -18,27 +18,18 @@
|
|
# mmnode-ticker OK
|
|
# mmnode-ticker OK
|
|
# mmnode-txfind -
|
|
# mmnode-txfind -
|
|
|
|
|
|
-list_avail_tests() {
|
|
|
|
- echo "AVAILABLE TESTS:"
|
|
|
|
- echo " unit - unit tests"
|
|
|
|
- echo " btc_rt - Bitcoin regtest"
|
|
|
|
- echo " bch_rt - Bitcoin Cash Node (BCH) regtest"
|
|
|
|
- echo " ltc_rt - Litecoin regtest"
|
|
|
|
- echo " scripts - tests of scripts not requiring a coin daemon"
|
|
|
|
- echo " misc - miscellaneous tests that don't fit in the above categories"
|
|
|
|
- echo
|
|
|
|
- echo "AVAILABLE TEST GROUPS:"
|
|
|
|
- echo " default - All tests minus the extra tests"
|
|
|
|
- echo " extra - All tests minus the default tests"
|
|
|
|
- echo " noalt - BTC-only tests"
|
|
|
|
- echo " quick - Default tests minus btc_tn, bch, bch_rt, ltc and ltc_rt"
|
|
|
|
- echo " qskip - The tests skipped in the 'quick' test group"
|
|
|
|
- echo
|
|
|
|
- echo "By default, all tests are run"
|
|
|
|
-}
|
|
|
|
|
|
+all_tests='unit misc scripts btc btc_rt bch_rt ltc_rt'
|
|
|
|
+
|
|
|
|
+groups_desc="
|
|
|
|
+ default - All tests minus the extra tests
|
|
|
|
+ extra - All tests minus the default tests
|
|
|
|
+ noalt - BTC-only tests
|
|
|
|
+ quick - Default tests minus btc_tn, bch, bch_rt, ltc and ltc_rt
|
|
|
|
+ qskip - The tests skipped in the 'quick' test group
|
|
|
|
+"
|
|
|
|
|
|
init_groups() {
|
|
init_groups() {
|
|
- dfl_tests='unit misc scripts btc btc_rt bch_rt ltc_rt'
|
|
|
|
|
|
+ dfl_tests=$all_tests
|
|
extra_tests=''
|
|
extra_tests=''
|
|
noalt_tests='unit misc scripts btc btc_rt'
|
|
noalt_tests='unit misc scripts btc btc_rt'
|
|
quick_tests='unit misc scripts btc btc_rt'
|
|
quick_tests='unit misc scripts btc btc_rt'
|
|
@@ -46,38 +37,24 @@ init_groups() {
|
|
}
|
|
}
|
|
|
|
|
|
init_tests() {
|
|
init_tests() {
|
|
- i_unit='Unit'
|
|
|
|
- s_unit="The following tests will test various low-level subsystems"
|
|
|
|
|
|
+ d_unit="low-level subsystems"
|
|
t_unit="- $unit_tests_py"
|
|
t_unit="- $unit_tests_py"
|
|
- f_unit='Unit tests completed'
|
|
|
|
|
|
|
|
- i_misc='Misc'
|
|
|
|
- s_misc="The following tests will test miscellaneous script features"
|
|
|
|
|
|
+ d_misc="miscellaneous features"
|
|
t_misc="- $test_py helpscreens"
|
|
t_misc="- $test_py helpscreens"
|
|
- f_misc='Misc tests completed'
|
|
|
|
|
|
|
|
- i_scripts='No-daemon scripts'
|
|
|
|
- s_scripts="The following tests will test scripts not requiring a coin daemon"
|
|
|
|
|
|
+ d_scripts="scripts not requiring a coin daemon"
|
|
t_scripts="- $test_py scripts"
|
|
t_scripts="- $test_py scripts"
|
|
- f_scripts='No-daemon script tests completed'
|
|
|
|
|
|
|
|
- i_btc='Bitcoin fake RPC data'
|
|
|
|
- s_btc="The following tests will test various scripts with fake RPC data"
|
|
|
|
|
|
+ d_btc="Bitcoin with emulated RPC data"
|
|
t_btc="- $test_py main"
|
|
t_btc="- $test_py main"
|
|
- f_btc='Bitcoin fake RPC data tests completed'
|
|
|
|
|
|
|
|
- i_btc_rt='Bitcoin regtest'
|
|
|
|
- s_btc_rt="The following tests will test various scripts using regtest mode"
|
|
|
|
|
|
+ d_btc_rt="Bitcoin regtest"
|
|
t_btc_rt="- $test_py regtest"
|
|
t_btc_rt="- $test_py regtest"
|
|
- f_btc_rt='Regtest mode tests for BTC completed'
|
|
|
|
|
|
|
|
- i_bch_rt='BitcoinCashNode (BCH) regtest'
|
|
|
|
- s_bch_rt="The following tests will test various scripts using regtest mode"
|
|
|
|
|
|
+ d_bch_rt="Bitcoin Cash Node (BCH) regtest"
|
|
t_bch_rt="- $test_py --coin=bch regtest"
|
|
t_bch_rt="- $test_py --coin=bch regtest"
|
|
- f_bch_rt='Regtest mode tests for BCH completed'
|
|
|
|
|
|
|
|
- i_ltc_rt='Litecoin regtest'
|
|
|
|
- s_ltc_rt="The following tests will test various scripts using regtest mode"
|
|
|
|
|
|
+ d_ltc_rt="Litecoin regtest"
|
|
t_ltc_rt="- $test_py --coin=ltc regtest"
|
|
t_ltc_rt="- $test_py --coin=ltc regtest"
|
|
- f_ltc_rt='Regtest mode tests for LTC completed'
|
|
|
|
}
|
|
}
|