HomePhabricator

included-tests: generate binary data from test files for inclusion into test…
152e51c7af26Unpublished

Unpublished Commit · Learn More

Repository Importing: This repository is still importing.

Description

included-tests: generate binary data from test files for inclusion into test binaries

This change moves test data into the binaries rather than reading them from
the disk at runtime.

Advantages:

  • Tests become distributable
  • Cross-compile friendly. Build on one machine and execute in an arbitrary location on another.
  • Easier testing for backports. Users can verify that tests pass without having to track down corresponding test data.
  • More trustworthy test results and easier quality assurance as tests make fewer assumptions about their environment.
  • Tests could theoretically run at client/daemon startup and exit on failure.

Disadvantages:

  • Required 'hexdump' build-dependency. This is a standard bsd tool that should be usable everywhere. It is likely already installed on all build-machines.
  • Tests can no longer be fudged after build by altering test-data.

Details

Provenance
Cory Fields <cory-nospam-@coryfields.com>Authored on Sep 10 2013, 19:18
schancelPushed on Jan 5 2018, 21:58
schancelPushed on Jan 5 2018, 21:39
schancelPushed on Jan 5 2018, 21:17
Parents
rSTAGING08081e393b6d: included-tests: update gitian descriptors for hexdump dependency
Branches
Unknown
Tags
Unknown

Event Timeline

Cory Fields <cory-nospam-@coryfields.com> committed rSTAGING152e51c7af26: included-tests: generate binary data from test files for inclusion into test… (authored by Cory Fields <cory-nospam-@coryfields.com>).Sep 16 2013, 16:53