cfg.sh 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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. list_avail_tests() {
  11. echo "AVAILABLE TESTS:"
  12. echo " unit - unit tests"
  13. echo " btc_rt - Bitcoin regtest"
  14. echo " bch_rt - Bitcoin Cash Node (BCH) regtest"
  15. echo " ltc_rt - Litecoin regtest"
  16. echo " scripts - tests of scripts not requiring a coin daemon"
  17. echo " misc - miscellaneous tests that don't fit in the above categories"
  18. echo
  19. echo "AVAILABLE TEST GROUPS:"
  20. echo " default - All tests minus the extra tests"
  21. echo " extra - All tests minus the default tests"
  22. echo " noalt - BTC-only tests"
  23. echo " quick - Default tests minus btc_tn, bch, bch_rt, ltc and ltc_rt"
  24. echo " qskip - The tests skipped in the 'quick' test group"
  25. echo
  26. echo "By default, all tests are run"
  27. }
  28. init_groups() {
  29. dfl_tests='unit misc scripts btc_rt bch_rt ltc_rt'
  30. extra_tests=''
  31. noalt_tests='unit misc scripts btc_rt'
  32. quick_tests='unit misc scripts btc_rt'
  33. qskip_tests='bch_rt ltc_rt'
  34. }
  35. init_tests() {
  36. i_unit='Unit'
  37. s_unit="The following tests will test various low-level subsystems"
  38. t_unit="- $unit_tests_py"
  39. f_unit='Unit tests completed'
  40. i_misc='Misc'
  41. s_misc="The following tests will test miscellaneous script features"
  42. t_misc="- $test_py helpscreens"
  43. f_misc='Misc tests completed'
  44. i_scripts='No-daemon scripts'
  45. s_scripts="The following tests will test scripts not requiring a coin daemon"
  46. t_scripts="- $test_py scripts"
  47. f_scripts='No-daemon script tests completed'
  48. i_btc_rt='Bitcoin regtest'
  49. s_btc_rt="The following tests will test various scripts using regtest mode"
  50. t_btc_rt="- $test_py regtest"
  51. f_btc_rt='Regtest mode tests for BTC completed'
  52. i_bch_rt='BitcoinCashNode (BCH) regtest'
  53. s_bch_rt="The following tests will test various scripts using regtest mode"
  54. t_bch_rt="- $test_py --coin=bch regtest"
  55. f_bch_rt='Regtest mode tests for BCH completed'
  56. i_ltc_rt='Litecoin regtest'
  57. s_ltc_rt="The following tests will test various scripts using regtest mode"
  58. t_ltc_rt="- $test_py --coin=ltc regtest"
  59. f_ltc_rt='Regtest mode tests for LTC completed'
  60. }