diff options
author | Christophe Lyon <christophe.lyon@linaro.org> | 2016-10-25 15:30:25 +0200 |
---|---|---|
committer | Christophe Lyon <christophe.lyon@linaro.org> | 2016-11-09 21:16:48 +0000 |
commit | 41bcb9b0d58fc75dd5ed790fe70248724f13f228 (patch) | |
tree | 5f0850bc08fa7a65a370ec2db1ab8bbc21373a58 /TestRelease.job | |
parent | 45c8c1cfd310834c118384873bacd181723aea9e (diff) |
scripts/TestRelease.job: add a drive short name when using wine.
Using too long paths can cause compilation to fail.
This patch creates a new drive letter pointing to the test
directory, such that wine uses this shortcut when
running the sample compilation test.
Change-Id: I75f863a5ba728c548237d5944d1c8dd2c91e90b3
Diffstat (limited to 'TestRelease.job')
-rwxr-xr-x | TestRelease.job | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/TestRelease.job b/TestRelease.job index 6460c546..25f00d25 100755 --- a/TestRelease.job +++ b/TestRelease.job @@ -103,6 +103,14 @@ params="-o ${testdir}/hi ${testdir}/hello.cpp ${specs:-} -static" if test ${win32} -eq 0; then ${testdir}/${dir}/bin/${target}-c++ ${params} else + # Compilation may fail if the paths are too long. + # Create a G: drive, as a shortcut makes wine automagically use + # it. + # Make sure WINEPREFIX exists by running a dummy command + export WINEPREFIX="$(pwd)/dotwine" + echo "ECHO Hello" | wine cmd + rm -f ${WINEPREFIX}/dosdevices/g: + ln -s ${testdir}/${dir} ${WINEPREFIX}/dosdevices/g: wine ${testdir}/${dir}/bin/${target}-c++ ${params} fi |