diff options
-rwxr-xr-x | TestRelease.job | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/TestRelease.job b/TestRelease.job index 25f00d25..83148ec0 100755 --- a/TestRelease.job +++ b/TestRelease.job @@ -80,6 +80,22 @@ fi target="`echo ${dir} | egrep -o '(arm|aarch64)[_0-9a-z-]*' | sed -e 's:-\$::'`" win32="`echo {$file} | grep -c mingw`" +# For Windows releases, check for symlinks in the release tarball. Some +# extractors for Windows do not handle symlinks well, so Abe should +# generate tarballs without symlinks. +if test ${win32} -ne 0; then + find "${testdir}" -type l > ${testdir}/symlinks.txt 2>&1 + SYMLINKS="$(grep -c ^ ${testdir}/symlinks.txt)" + if [ "$SYMLINKS" -eq 0 ]; then + echo "No symlinks found in release" + else + cat ${testdir}/symlinks.txt + echo "Found symlinks in release: FAILURE" + exit 1 + fi +fi + + # Bare metal builds need special care baremetal="`echo ${target} | egrep -c "\-eabi|\-elf"`" if test ${baremetal} -gt 0; then |