Builds should make and run test_bitcoin by default #1753

issue gmaxwell opened this issue on August 29, 2012
  1. gmaxwell commented at 3:56 PM on August 29, 2012: contributor

    At least for non-cross compiles it really makes no sense to skip test_bitcoin as is. It's a fast and useful test and every build should have the benefit of it. Developers doing rapid compile cycles could turn it off.

  2. jgarzik commented at 4:06 PM on August 29, 2012: contributor

    This is non-standard build behavior for a package. Most packages require an additional "make test" or "make check" step.

    On a slower laptop or VM, this adds significantly to build time.

    Not so sure about this one.

  3. gmaxwell commented at 4:16 PM on August 29, 2012: contributor

    @jgarzik Perhaps, but most packages aren't currencies where a mis-compilation can make tens of thousands of dollars worth of data go irrecoverably poof. Giving it the standard 'check' name and having the build process yell at you to run it would be not horrible half-step perhaps.

  4. jgarzik commented at 4:25 PM on August 29, 2012: contributor

    Not even OpenSSL runs tests by default :)

    ACK the half-step...

  5. laanwj commented at 6:09 PM on August 29, 2012: member

    I'm ok with building tests by default. But running any code by default sounds a bit fishy to me. Currently the tests are really fast, but it is a certainty that it will become slower when tests are added.

    Also when building in an IDE such as qt creator, I'm not sure what the behavior will be.

    Adding a make "check" or "test" to start it is a good idea though. And if you want, add a special build rule that builds the executable AND test and subsequently tests. But please don't make it the default with make.

  6. gavinandresen commented at 11:26 PM on September 18, 2012: contributor

    Implemented make test/check; closing (no consensus on building/running unit tests by default).

  7. gavinandresen closed this on Sep 18, 2012

  8. DrahtBot 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-04-18 21:16 UTC

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