bitcoin/ci/test
Andrew Chow a245429d68
Merge bitcoin/bitcoin#26940: test: create random and coins utils, add amount helper, dedupe add_coin
4275195606 De-duplicate add_coin methods to a test util helper (Jon Atack)
9d92c3d7f4 Create InsecureRandMoneyAmount() test util helper (Jon Atack)
81f5ade2a3 Move random test util code from setup_common to random (Jon Atack)

Pull request description:

  - Move random test utilities from `setup_common` to a new `random` file, as many tests don't use this code.

  - Create a helper to generate semi-random CAmounts up to `MONEY_RANGE` rather than only uint32, and use the helper in the unit tests.

  - De-duplicate a shared `add_coin` method by extracting it to a `coins` test utility.

ACKs for top commit:
  pinheadmz:
    ACK 4275195606
  achow101:
    ACK 4275195606
  john-moffett:
    ACK 4275195606

Tree-SHA512: 3ed974251149c7417f935ef2f8865aa0dcc33b281b47522b0f96f1979dff94bb8527957f098fe4d210f40d715c00f29512f2ffe189097102229023b7284a3a27
2023-02-17 17:28:14 -05:00
..
00_setup_env.sh ci: Cache stuff in volumes, not host folders 2023-02-08 11:21:23 +01:00
00_setup_env_android.sh ci: Use the latest Ubuntu LTS for "ARM64 Android APK" task 2023-02-08 14:15:13 +00:00
00_setup_env_arm.sh scripted-diff: ci: Rework docker naming 2023-01-11 10:49:18 +01:00
00_setup_env_i686_centos.sh ci: avoid using -Werror for older compilers 2023-02-01 15:22:24 +00:00
00_setup_env_i686_multiprocess.sh scripted-diff: ci: Rework docker naming 2023-01-11 10:49:18 +01:00
00_setup_env_mac.sh scripted-diff: ci: Rework docker naming 2023-01-11 10:49:18 +01:00
00_setup_env_mac_native_arm64.sh scripted-diff: Bump copyright headers 2022-12-24 23:49:50 +00:00
00_setup_env_native_asan.sh scripted-diff: ci: Rework docker naming 2023-01-11 10:49:18 +01:00
00_setup_env_native_fuzz.sh scripted-diff: ci: Rework docker naming 2023-01-11 10:49:18 +01:00
00_setup_env_native_fuzz_with_msan.sh Merge bitcoin/bitcoin#23619: build: Propagate user-defined flags to host packages 2023-01-30 14:32:32 +00:00
00_setup_env_native_fuzz_with_valgrind.sh scripted-diff: ci: Rework docker naming 2023-01-11 10:49:18 +01:00
00_setup_env_native_msan.sh Merge bitcoin/bitcoin#23619: build: Propagate user-defined flags to host packages 2023-01-30 14:32:32 +00:00
00_setup_env_native_nowallet_libbitcoinkernel.sh ci: avoid using -Werror for older compilers 2023-02-01 15:22:24 +00:00
00_setup_env_native_qt5.sh ci: avoid using -Werror for older compilers 2023-02-01 15:22:24 +00:00
00_setup_env_native_tidy.sh scripted-diff: ci: Rework docker naming 2023-01-11 10:49:18 +01:00
00_setup_env_native_tsan.sh scripted-diff: ci: Rework docker naming 2023-01-11 10:49:18 +01:00
00_setup_env_native_valgrind.sh scripted-diff: ci: Rework docker naming 2023-01-11 10:49:18 +01:00
00_setup_env_s390x.sh scripted-diff: ci: Rework docker naming 2023-01-11 10:49:18 +01:00
00_setup_env_win64.sh scripted-diff: ci: Rework docker naming 2023-01-11 10:49:18 +01:00
01_base_install.sh ci: Cache package manager install step 2023-01-28 17:59:07 +01:00
04_install.sh ci: Cache stuff in volumes, not host folders 2023-02-08 11:21:23 +01:00
05_before_script.sh scripted-diff: ci: Rework docker naming 2023-01-11 10:49:18 +01:00
06_script_a.sh scripted-diff: Bump copyright headers 2022-12-24 23:49:50 +00:00
06_script_b.sh De-duplicate add_coin methods to a test util helper 2023-02-09 15:03:36 -08:00
wrap-qemu.sh scripted-diff: Bump copyright headers 2022-12-24 23:49:50 +00:00
wrap-valgrind.sh scripted-diff: Bump copyright headers 2021-12-30 19:36:57 +02:00
wrap-wine.sh scripted-diff: Bump copyright headers 2022-12-24 23:49:50 +00:00
wrapped-cl.bat ci: Integrate ccache into MSVC build 2022-03-12 03:20:33 +01:00