Add self-tests at startup #4081

issue laanwj openend this issue on April 22, 2014
  1. laanwj commented at 2:31 pm on April 22, 2014: member

    The idea would be to test basic sanity of the execution environment and dependencies. for example:

    • check std::list and the functions overridden in the compatibility wrappers for older glibc/glibc++
    • test basic secp256k operations
    • test hash functions

    This idea was brought up by @sipa in issue #4042. The tests should run very quickly (<0.1 second).

  2. laanwj added the label Improvement on Apr 22, 2014
  3. laanwj added the label Priority Medium on Apr 22, 2014
  4. laanwj added the label Tests on May 6, 2014
  5. apoelstra referenced this in commit 4a09e1df51 on Jun 3, 2014
  6. laanwj referenced this in commit f6f4c83382 on Aug 18, 2014
  7. MathyV referenced this in commit b5f6216278 on Nov 3, 2014
  8. laanwj commented at 4:37 pm on February 9, 2016: member
    Implemented by #4339
  9. laanwj closed this on Feb 9, 2016

  10. dcousens commented at 11:34 pm on February 9, 2016: contributor
    @laanwj what about libsecp256k and the hash functions?
  11. laanwj commented at 10:33 am on February 10, 2016: member
    Sure, you could do that… (but the prime motivation here was to do this because these operations were performed by external libraries - now that secp256k1 is internal, and the hash functions are also performed by our own code, I’m not sure what kind of errors it is supposed to catch)
  12. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-07-08 22:13 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me