cfg.sh 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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 OK
  14. # mmnode-halving-calculator OK
  15. # mmnode-netrate -
  16. # mmnode-peerblocks OK
  17. # mmnode-ticker OK
  18. # mmnode-txfind -
  19. all_tests='unit misc scripts btc btc_rt bch_rt ltc_rt'
  20. groups_desc="
  21. default - All tests minus the extra tests
  22. extra - All tests minus the default tests
  23. noalt - BTC-only tests
  24. quick - Default tests minus bch_rt and ltc_rt
  25. qskip - The tests skipped in the 'quick' test group
  26. "
  27. init_groups() {
  28. dfl_tests=$all_tests
  29. extra_tests=''
  30. noalt_tests='unit misc scripts btc btc_rt'
  31. quick_tests='unit misc scripts btc btc_rt'
  32. qskip_tests='bch_rt ltc_rt'
  33. }
  34. init_tests() {
  35. d_unit="low-level subsystems"
  36. t_unit="- $unit_tests_py"
  37. d_misc="miscellaneous features"
  38. t_misc="- $test_py helpscreens"
  39. d_scripts="scripts not requiring a coin daemon"
  40. t_scripts="- $test_py scripts"
  41. d_btc="Bitcoin with emulated RPC data"
  42. t_btc="- $test_py main"
  43. d_btc_rt="Bitcoin regtest"
  44. t_btc_rt="- $test_py regtest"
  45. d_bch_rt="Bitcoin Cash Node (BCH) regtest"
  46. t_bch_rt="- $test_py --coin=bch regtest"
  47. d_ltc_rt="Litecoin regtest"
  48. t_ltc_rt="- $test_py --coin=ltc regtest"
  49. }