android-rebuild.sh: Don't run unit test suite if wine is not installed.
This is a back-port of [1] to the idea133 branch.
When cross-compiling Windows binaries with --mingw option, check that
'wine' is installed. If not, print a warning, otherwise run the unit
test suite as usual.
Also add a --no-tests command-line option to disable running the test
suite, for debugging purposes.
[1] https://android-review.googlesource.com/#/c/94208/
Change-Id: I9faae589c503424717491a55fb91488f6383380a
2 files changed