Page MenuHomePhabricator

Allow for using an emulator for the functional test framework
ClosedPublic

Authored by Fabien on Apr 29 2020, 11:02.

Details

Summary

This adds the crosscompiling emulator to the test configuration file, and make use of it in the test framework.
This is useful for running the tests with qemu or wine.

Test Plan

Prerequisite

sudo apt install qemu-user-static

Then:

cmake -GNinja .. \
  -DCMAKE_TOOLCHAIN_FILE=../cmake/platforms/LinuxAArch64.cmake \
  -DCMAKE_CROSSCOMPILING_EMULATOR=$(command -v qemu-aarch64-static) \
  -DBUILD_BITCOIN_ZMQ=OFF
QEMU_LD_PREFIX=/usr/aarch64-linux-gnu ninja check-functional

Sanity check for regression:

cmake -GNinja ..
ninja check-functional

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Fabien planned changes to this revision.Apr 29 2020, 11:04
Fabien retitled this revision from Add an option to use an emulator for the functional test framework to Allow for using an emulator for the functional test framework.Apr 29 2020, 11:23
Fabien edited the summary of this revision. (Show Details)
Fabien edited the summary of this revision. (Show Details)

Use the config file instead of an option.

This revision is now accepted and ready to land.Apr 29 2020, 12:32