Use separate WINE to test 32- and 64-bit windows toolchain

The new run-tests.sh uses wine12 and wine15 to test 32- and 64-bit
windows toolchains, respectively.  We'd like to have one WINE to run
it all, but WINE is tricky, and here is the compatibility report

 mingw compilers:
  i586-mingw32msvc-gcc 4.4.2 can only generate 32-bit host binaries (amd64-mingw32msvc is broken)
  x86_64-w64-mingw32 4.7.3 20121231 (prerelase) can generate both 32-bit and 64-bit (default)
 WINE:
  wine12 = wine-1.2.3  doesn't support 64-bit
  wine13 = wine-1.3.37
  wine14 = wine-1.4.1
  wine15 = wine-1.5.21

  NDK release/test 32-bit windows toolchain with i586-mingw32msvc-gcc/wine12
  Need better compiler/WINE for 64-bit windows toolchain

 Result:
  32-bit make.exe -B by i586-mingw32msvc-gcc fails in wine > 1.2.3
  32-bit make.exe -j2 by i586-mingw32msvc-gcc fails in wine > 1.2.3
  32-bit ld.bfd by i586-mingw32msvc-gcc fails in wine13 and wine15
  32-bit ld.gold by i586-mingw32msvc-gcc fails in wine13 and wine15

  32-bit awk.exe by x86_64-w64-mingw32 fails in wine12
  32-bit make.exe -B by x86_64-w64-mingw32 fails in wine > 1.2.3
  32-bit make.exe -j2 by x86_64-w64-mingw32 fails in wine > 1.2.3
  32-bit ld.gold by x86_64-w64-mingw32 fails in wine > 1.2.3

  >> Recommend to continue build 32-bit host binaries in i586-mingw32msvc-gcc and test in wine12

  64-bit make.exe -B fails in all wine
  64-bit make.exe -j2 fails in all wine
  64-bit ld.gold fails in all wine
  results of 64-bit binraries generated by earlier x86_64-w64-mingw32 4.5.4 are no different

  >> Recommend to build 64-bit host binaries in x86_64-w64-mingw32 4.7.3 and test in wine15
     w/o -B, use -j1, and with "APP_LDFLAGS=-fuse-ld=bfd".  Test the rest in real windows machine

It's possible to have multiple WINE, via PlayOnLinux for example.
Jst set WINEPREFIX to different directories and LD_LIBRARY_PATH to their own
shared library dependencies.

Change-Id: I8354c2b82a6f67e2c68b71947814909c4c036d75
2 files changed