Skip to content

Conversation

@laanwj
Copy link
Member

@laanwj laanwj commented Mar 31, 2016

This removes the following executables from the binary gitian release:

  • test_bitcoin-qt[.exe]
  • bench_bitcoin[.exe]

@jonasschnelli and me discussed this on IRC a few days ago - unlike the normal bitcoin_tests which is useful to see if it is safe to run bitcoin on a certain OS/environment combination, there is no good reason
to include these. Better to leave them out to reduce the download size.

Sizes from the 0.12 release:

2.4M bitcoin-0.12.0/bin/bench_bitcoin.exe
 22M bitcoin-0.12.0/bin/test_bitcoin-qt.exe

This adds an option --disable-gui-tests to the build system.

@maflcko
Copy link
Member

maflcko commented Mar 31, 2016

utACK 8e25246

3 similar comments
@btcdrak
Copy link
Contributor

btcdrak commented Mar 31, 2016

utACK 8e25246

@jonasschnelli
Copy link
Contributor

utACK 8e25246

@cdecker
Copy link
Contributor

cdecker commented Mar 31, 2016

utACK 8e25246

@theuni
Copy link
Member

theuni commented Mar 31, 2016

No objections to the changes here, but I think we also want theuni@72946e1 ?
That prevents them from being installed by 'make install' under any config.

@fanquake
Copy link
Member

fanquake commented Apr 1, 2016

utACK 8e25246

@laanwj
Copy link
Member Author

laanwj commented Apr 1, 2016

No objections to the changes here, but I think we also want theuni/bitcoin@72946e1 ?

I think it's a bit inconsistent - what if people want them installed?
In any case I think it's a separate change with a separate goal to this, probably should do it as a separate PR.

@laanwj
Copy link
Member Author

laanwj commented Apr 2, 2016

I think it's a bit inconsistent - what if people want them installed?

A consistent policy there would be "do not install the tests at all". But then we'd have to take special care to put test_bitcoin into the distribution :( I mean it's harder to make a case for the build system (which is also used by other distributions which may have other choices) that that one is special, than on the gitian descriptor level.
Let's leave it for another PR anyhow.

Testing this in gitian now.

@theuni
Copy link
Member

theuni commented Apr 2, 2016

Yep, i suppose I agree. ut ACK.

@laanwj
Copy link
Member Author

laanwj commented Apr 2, 2016

Linux works UHM I mean doesn't work, builds but the stupid files are still there 🐴
[snip]
May have been using the wrong descriptors, retrying...

@laanwj
Copy link
Member Author

laanwj commented Apr 2, 2016

It's not properly disabling test_bitcoin-qt. And this is probably the reason:

$ git grep BUILD_TEST_QT
configure.ac:    BUILD_TEST_QT="test"
configure.ac:AC_SUBST(BUILD_TEST_QT)

E.g. we don't actually use BUILD_TEST_QT anywhere.

This removes the following executables from the binary gitian release:

- test_bitcoin-qt[.exe]
- bench_bitcoin[.exe]

@jonasschnelli and me discussed this on IRC a few days ago - unlike the
normal `bitcoin_tests` which is useful to see if it is safe to run
bitcoin on a certain OS/environment combination, there is no good reason
to include these. Better to leave them out to reduce the download
size.

Sizes from the 0.12 release:
```
2.4M bitcoin-0.12.0/bin/bench_bitcoin.exe
 22M bitcoin-0.12.0/bin/test_bitcoin-qt.exe
```
@laanwj laanwj force-pushed the 2016_03_gitian_release_cleanup branch from 8e25246 to f063863 Compare April 3, 2016 13:11
@laanwj
Copy link
Member Author

laanwj commented Apr 3, 2016

@theuni Pushed a new version which does work. Can you take a look? I removed a few AC_SUBST( which weren't used at all. But used these variables, which are set at the place where the log message is printed,

  BUILD_TEST_QT=""
  ...
  AC_MSG_CHECKING([whether to build test_bitcoin-qt])
  if test x$use_gui_tests$bitcoin_enable_qt_test = xyesyes; then
    AC_MSG_RESULT([yes])
    BUILD_TEST_QT="yes"
  else

and then use them at the end:

AM_CONDITIONAL([ENABLE_TESTS],[test x$BUILD_TEST = xyes])
AM_CONDITIONAL([ENABLE_QT_TESTS],[test x$BUILD_TEST_QT = xyes])

I think this is clearer - no need to repeat the logic. But maybe I'm doing something completely against autoconf gospels I don't know....

@theuni
Copy link
Member

theuni commented Apr 4, 2016

@laanwj Looks ok to me, and works as described in a quick test.

The one case that's unclear is "--disable-tests --enable-gui-tests". As-is it built test_bitcoin-qt but not bitcoin_test. That's fine by me (I don't really care either way which one overrides), but it might help to make the help string more clear that the gui tests don't imply non-gui tests.

@laanwj
Copy link
Member Author

laanwj commented Apr 5, 2016

The one case that's unclear is "--disable-tests --enable-gui-tests". As-is it built test_bitcoin-qt but not bitcoin_test. That's fine by me

That was the intended behavior, yes. This allows the maximum flexibility: if you want the GUI tests but not normal tests, or normal tests but not GUI tests, both is possible. Could try to improve the help string.

Edit: On second thought

do not compile GUI tests

I'm not sure how I would go around making this clearer.

@laanwj laanwj merged commit f063863 into bitcoin:master Apr 5, 2016
laanwj added a commit that referenced this pull request Apr 5, 2016
f063863 build: Remove unnecessary executables from gitian release (Wladimir J. van der Laan)
laanwj added a commit that referenced this pull request Apr 5, 2016
This removes the following executables from the binary gitian release:

- test_bitcoin-qt[.exe]
- bench_bitcoin[.exe]

@jonasschnelli and me discussed this on IRC a few days ago - unlike the
normal `bitcoin_tests` which is useful to see if it is safe to run
bitcoin on a certain OS/environment combination, there is no good reason
to include these. Better to leave them out to reduce the download
size.

Sizes from the 0.12 release:
```
2.4M bitcoin-0.12.0/bin/bench_bitcoin.exe
 22M bitcoin-0.12.0/bin/test_bitcoin-qt.exe
```

Github-Pull: #7776
Rebased-From: f063863
zander pushed a commit to bitcoinclassic/bitcoinclassic that referenced this pull request Apr 22, 2016
This removes the following executables from the binary gitian release:

- test_bitcoin-qt[.exe]
- bench_bitcoin[.exe]

@jonasschnelli and me discussed this on IRC a few days ago - unlike the
normal `bitcoin_tests` which is useful to see if it is safe to run
bitcoin on a certain OS/environment combination, there is no good reason
to include these. Better to leave them out to reduce the download
size.

Sizes from the 0.12 release:
```
2.4M bitcoin-0.12.0/bin/bench_bitcoin.exe
 22M bitcoin-0.12.0/bin/test_bitcoin-qt.exe
```

Github-Pull: bitcoin#7776
Rebased-From: f063863
laanwj added a commit to laanwj/bitcoin that referenced this pull request Jun 9, 2016
schinzelh pushed a commit to dashpay/dash that referenced this pull request Jun 20, 2016
@laanwj laanwj added this to the 0.12.2 milestone Sep 26, 2016
zkbot pushed a commit to zcash/zcash that referenced this pull request Oct 17, 2016
Upstream gitian updates

This PR pulls in all gitian-related PRs that have been merged upstream since 0.11.2. The only ones I left out were documentation-only PRs, because we removed `doc/gitian-building.md` at some point. Here are the commits applied here, in the order shown in `git log` (ie. last to first):

- bitcoin/bitcoin#7283
  - fa42a67
  - fa58c76
- bitcoin/bitcoin#8175
  - 74c1347
- bitcoin/bitcoin#8167
  - 7e7eb27
  - ad38204
  - b676f38
- bitcoin/bitcoin#7776
  - f063863
- bitcoin/bitcoin#7424
  - a81c87f ~ we already partly applied
  - a8ce872
  - f3d3eaf ~ we already partly applied
  - 475813b
  - ~~cd27bf5~~ X we already applied
- bitcoin/bitcoin#7060
  - 3b468a0 ~ we removed doc/gitian-building.md
  - ~~99fda26~~ X we removed doc/gitian-building.md
- bitcoin/bitcoin#7251
  - fa09562
- bitcoin/bitcoin#6900
  - ~~2cecb24~~ X we removed doc/gitian-building.md
  - 957c0fd
  - 2e31d74
  - ~~0b416c6~~ X we removed QT
  - 9f251b7
- bitcoin/bitcoin#6854
  - 579b863 ~ we already partly applied

Part of #540
EvgenijM86 referenced this pull request in emercoin/emercoin Apr 25, 2017
This removes the following executables from the binary gitian release:

- test_bitcoin-qt[.exe]
- bench_bitcoin[.exe]

@jonasschnelli and me discussed this on IRC a few days ago - unlike the
normal `bitcoin_tests` which is useful to see if it is safe to run
bitcoin on a certain OS/environment combination, there is no good reason
to include these. Better to leave them out to reduce the download
size.

Sizes from the 0.12 release:
```
2.4M bitcoin-0.12.0/bin/bench_bitcoin.exe
 22M bitcoin-0.12.0/bin/test_bitcoin-qt.exe
```

Github-Pull: #7776
Rebased-From: f063863
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants