cfg.sh 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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 -
  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_rt bch_rt ltc_rt'
  39. extra_tests=''
  40. noalt_tests='unit misc scripts btc_rt'
  41. quick_tests='unit misc scripts 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_rt='Bitcoin regtest'
  58. s_btc_rt="The following tests will test various scripts using regtest mode"
  59. t_btc_rt="- $test_py regtest"
  60. f_btc_rt='Regtest mode tests for BTC completed'
  61. i_bch_rt='BitcoinCashNode (BCH) regtest'
  62. s_bch_rt="The following tests will test various scripts using regtest mode"
  63. t_bch_rt="- $test_py --coin=bch regtest"
  64. f_bch_rt='Regtest mode tests for BCH completed'
  65. i_ltc_rt='Litecoin regtest'
  66. s_ltc_rt="The following tests will test various scripts using regtest mode"
  67. t_ltc_rt="- $test_py --coin=ltc regtest"
  68. f_ltc_rt='Regtest mode tests for LTC completed'
  69. }