Add self-tests at startup #4081

issue laanwj opened 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. laanwj cross-referenced this on May 12, 2014 from issue Locale should default to C / Posix Environment by itoffshore
  6. laanwj cross-referenced this on Jun 3, 2014 from issue key.cpp: fail with a friendlier message on missing ssl EC support by apoelstra
  7. apoelstra referenced this in commit 4a09e1df51 on Jun 3, 2014
  8. theuni cross-referenced this on Jun 14, 2014 from issue libc/libstdc++ sanity checks by theuni
  9. laanwj referenced this in commit f6f4c83382 on Aug 18, 2014
  10. MathyV referenced this in commit b5f6216278 on Nov 3, 2014
  11. laanwj commented at 4:37 PM on February 9, 2016: member

    Implemented by #4339

  12. laanwj closed this on Feb 9, 2016

  13. dcousens commented at 11:34 PM on February 9, 2016: contributor

    @laanwj what about libsecp256k and the hash functions?

  14. 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)

  15. bitcoin 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: 2026-05-20 06:55 UTC