Page MenuHomePhabricator

[cmake] Add an override option for tmpdirprefix when running functional tests
ClosedPublic

Authored by Fabien on Tue, Apr 22, 10:16.

Details

Summary

This make it possible to use a ramdisk as storage for running the functional tests, which can bring a nice speedup on some tests.

Test Plan
mkdir /dev/shm/abc
cmake -GNinja .. -DFUNCTIONAL_TESTS_TMPDIRPREFIX=/dev/shm/abc
ninja check-functional

On my fast ssd machine (so worst case), duration is lowered from 62s to 49s.
On some dev VM with network drive, duration is lowered from 218s to 178s.

Diff Detail

Repository
rABC Bitcoin ABC
Branch
cmake_override_tmpdirprefix
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 33039
Build 65562: Build Diffbuild-debug · build-clang-tidy · build-clang · build-without-wallet · build-diff
Build 65561: arc lint + arc unit