HomePhabricator

tests: Make it possible to run functional tests on Windows

Description

tests: Make it possible to run functional tests on Windows

Summary:
Backport of core PR14007.

Depends on D5958.

Test Plan:

ninja check-functional

The output should be all green. Not blue.

Build for windows, then:

  • Install python if needed and add it to your path
  • If you copy the project to some place, you need at least the src,

test, share and your build directories.

  • Copy the test_runner.py to the build directory to replace the symlink
  • Update the config.ini file to match you paths

Then in a powershell:

$env:PYTHONIOENCODING="utf-8"
python .\test\functional\test_runner.py --force

Most of the tests should pass, but still far from all. More backports
coming.

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D5964

Details

Provenance
Chun Kuan Lee <ken2812221@gmail.com>Authored on Aug 19 2018, 18:54
FabienCommitted on May 6 2020, 09:20
majcostaPushed on May 6 2020, 10:02
Reviewer
Restricted Project
Differential Revision
D5964: tests: Make it possible to run functional tests on Windows
Parents
rSTAGING4528a9a1bf3a: Make sure we read the command line inputs using utf-8 decoding in python
Branches
Unknown
Tags
Unknown