ci: [refactor] Move run_unit_tests to ci-windows-cross.py
This commit is contained in:
2 files changed
+20
-9
No files matched your search
@@ -116,12 +116,29 @@ def run_functional_tests():
|
|||||||
run(cmd_feature_unsupported_db)
|
run(cmd_feature_unsupported_db)
|
||||||
|
|
||||||
|
|
||||||
|
def run_unit_tests():
|
||||||
|
# Can't use ctest here like other jobs as we don't have a CMake build tree.
|
||||||
|
commands = [
|
||||||
|
["./bin/test_bitcoin-qt.exe"],
|
||||||
|
# Intentionally run sequentially here, to catch test case failures caused by dirty global state from prior test cases:
|
||||||
|
["./bin/test_bitcoin.exe", "-l", "test_suite"],
|
||||||
|
["./src/secp256k1/bin/exhaustive_tests.exe"],
|
||||||
|
["./src/secp256k1/bin/noverify_tests.exe"],
|
||||||
|
["./src/secp256k1/bin/tests.exe"],
|
||||||
|
["./src/univalue/object.exe"],
|
||||||
|
["./src/univalue/unitester.exe"],
|
||||||
|
]
|
||||||
|
for cmd in commands:
|
||||||
|
run(cmd)
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
parser = argparse.ArgumentParser(description="Utility to run Windows CI steps.")
|
parser = argparse.ArgumentParser(description="Utility to run Windows CI steps.")
|
||||||
steps = [
|
steps = [
|
||||||
"print_version",
|
"print_version",
|
||||||
"check_manifests",
|
"check_manifests",
|
||||||
"prepare_tests",
|
"prepare_tests",
|
||||||
|
"run_unit_tests",
|
||||||
"run_functional_tests",
|
"run_functional_tests",
|
||||||
]
|
]
|
||||||
parser.add_argument("step", choices=steps, help="CI step to perform.")
|
parser.add_argument("step", choices=steps, help="CI step to perform.")
|
||||||
@@ -138,6 +155,8 @@ def main():
|
|||||||
check_manifests()
|
check_manifests()
|
||||||
elif args.step == "prepare_tests":
|
elif args.step == "prepare_tests":
|
||||||
prepare_tests()
|
prepare_tests()
|
||||||
|
elif args.step == "run_unit_tests":
|
||||||
|
run_unit_tests()
|
||||||
elif args.step == "run_functional_tests":
|
elif args.step == "run_functional_tests":
|
||||||
run_functional_tests()
|
run_functional_tests()
|
||||||
|
|
||||||
|
|||||||
@@ -415,15 +415,7 @@ jobs:
|
|||||||
run: py -3 .github/ci-windows-cross.py check_manifests
|
run: py -3 .github/ci-windows-cross.py check_manifests
|
||||||
|
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
# Can't use ctest here like other jobs as we don't have a CMake build tree.
|
run: py -3 .github/ci-windows-cross.py run_unit_tests
|
||||||
run: |
|
|
||||||
./bin/test_bitcoin-qt.exe
|
|
||||||
./bin/test_bitcoin.exe -l test_suite # Intentionally run sequentially here, to catch test case failures caused by dirty global state from prior test cases.
|
|
||||||
./src/secp256k1/bin/exhaustive_tests.exe
|
|
||||||
./src/secp256k1/bin/noverify_tests.exe
|
|
||||||
./src/secp256k1/bin/tests.exe
|
|
||||||
./src/univalue/object.exe
|
|
||||||
./src/univalue/unitester.exe
|
|
||||||
|
|
||||||
- name: Prepare Windows test environment
|
- name: Prepare Windows test environment
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in new issue
Block a user