diff options
author | Patrick Steinhardt <ps@pks.im> | 2017-08-30 14:35:57 +0200 |
---|---|---|
committer | Patrick Steinhardt <ps@pks.im> | 2017-08-30 21:56:12 +0200 |
commit | 583e4141022481e21a22aa71a1c4c988a57423e9 (patch) | |
tree | cad8043c3166e532399fe5610d994a22eb800b65 /PROJECTS.md | |
parent | 3c21645360a0b06d6ed5f028e9517d65f8e11bc1 (diff) | |
download | libgit2-583e4141022481e21a22aa71a1c4c988a57423e9.tar.gz |
tests: deterministically generate test suite definitions
The script "generate.py" is used to parse all test source files for unit
tests. These are then written into a "clar.suite" file, which can be
included by the main test executable to make available all test suites
and unit tests.
Our current algorithm simply collects all test suites inside of a dict,
iterates through its items and dumps them in a special format into the
file. As the order is not guaranteed to be deterministic for Python
dictionaries, this may result in arbitrarily ordered C structs. This
obviously defeats the purpose of reproducible builds, where the same
input should always result in the exact same output.
Fix this issue by sorting the test suites by name previous to dumping
them as structs. This enables reproducible builds for the libgit2_clar
file.
Diffstat (limited to 'PROJECTS.md')
0 files changed, 0 insertions, 0 deletions