cfg.sh 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. #!/bin/bash
  2. #
  3. # mmgen = Multi-Mode GENerator, a command-line cryptocurrency wallet
  4. # Copyright (C)2013-2022 The MMGen Project <mmgen@tuta.io>
  5. # Licensed under the GNU General Public License, Version 3:
  6. # https://www.gnu.org/licenses
  7. # Public project repositories:
  8. # https://github.com/mmgen/mmgen-node-tools
  9. # https://gitlab.com/mmgen/mmgen-node-tools
  10. # Testing status
  11. # mmnode-addrbal OK
  12. # mmnode-blocks-info OK
  13. # mmnode-feeview -
  14. # mmnode-halving-calculator OK
  15. # mmnode-netrate -
  16. # mmnode-peerblocks OK
  17. # mmnode-ticker OK
  18. # mmnode-txfind -
  19. list_avail_tests() {
  20. echo "AVAILABLE TESTS:"
  21. echo " unit - unit tests"
  22. echo " btc_rt - Bitcoin regtest"
  23. echo " bch_rt - Bitcoin Cash Node (BCH) regtest"
  24. echo " ltc_rt - Litecoin regtest"
  25. echo " scripts - tests of scripts not requiring a coin daemon"
  26. echo " misc - miscellaneous tests that don't fit in the above categories"
  27. echo
  28. echo "AVAILABLE TEST GROUPS:"
  29. echo " default - All tests minus the extra tests"
  30. echo " extra - All tests minus the default tests"
  31. echo " noalt - BTC-only tests"
  32. echo " quick - Default tests minus btc_tn, bch, bch_rt, ltc and ltc_rt"
  33. echo " qskip - The tests skipped in the 'quick' test group"
  34. echo
  35. echo "By default, all tests are run"
  36. }
  37. init_groups() {
  38. dfl_tests='unit misc scripts btc btc_rt bch_rt ltc_rt'
  39. extra_tests=''
  40. noalt_tests='unit misc scripts btc btc_rt'
  41. quick_tests='unit misc scripts btc btc_rt'
  42. qskip_tests='bch_rt ltc_rt'
  43. }
  44. init_tests() {
  45. i_unit='Unit'
  46. s_unit="The following tests will test various low-level subsystems"
  47. t_unit="- $unit_tests_py"
  48. f_unit='Unit tests completed'
  49. i_misc='Misc'
  50. s_misc="The following tests will test miscellaneous script features"
  51. t_misc="- $test_py helpscreens"
  52. f_misc='Misc tests completed'
  53. i_scripts='No-daemon scripts'
  54. s_scripts="The following tests will test scripts not requiring a coin daemon"
  55. t_scripts="- $test_py scripts"
  56. f_scripts='No-daemon script tests completed'
  57. i_btc='Bitcoin fake RPC data'
  58. s_btc="The following tests will test various scripts with fake RPC data"
  59. t_btc="- $test_py main"
  60. f_btc='Bitcoin fake RPC data tests completed'
  61. i_btc_rt='Bitcoin regtest'
  62. s_btc_rt="The following tests will test various scripts using regtest mode"
  63. t_btc_rt="- $test_py regtest"
  64. f_btc_rt='Regtest mode tests for BTC completed'
  65. i_bch_rt='BitcoinCashNode (BCH) regtest'
  66. s_bch_rt="The following tests will test various scripts using regtest mode"
  67. t_bch_rt="- $test_py --coin=bch regtest"
  68. f_bch_rt='Regtest mode tests for BCH completed'
  69. i_ltc_rt='Litecoin regtest'
  70. s_ltc_rt="The following tests will test various scripts using regtest mode"
  71. t_ltc_rt="- $test_py --coin=ltc regtest"
  72. f_ltc_rt='Regtest mode tests for LTC completed'
  73. }