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
Lint
Lint Not Applicable
Unit
Tests Not Applicable