test/details.sh
author J. Ali Harlow <ali@juiblex.co.uk>
Wed Apr 22 13:09:42 2015 +0100 (2015-04-22)
changeset 465 271bb9e6e10f
parent 394 afe520f454bd
child 475 008c75a5e08d
permissions -rwxr-xr-x
Add -lole32 to link libraries.

This fixes a problem when compiling with mingw-headers version 3.3
where the use of SHGetFolderPath() expands to a call to CoTaskMemFree()
which is defined in libole32.dll:

/usr/x86_64-w64-mingw32/sys-root/mingw/include/shobjidl.h:29954: undefined reference to `__imp_CoTaskMemFree'
ali@394
     1
#!/bin/sh
ali@456
     2
if [ $# -gt 0 ]; then
ali@456
     3
    razor="$1"
ali@456
     4
else
ali@456
     5
    razor=../src/razor
ali@456
     6
fi
ali@394
     7
export RAZOR_ROOT=`mktemp -dt` || exit 1
ali@456
     8
$razor init || exit 1
ali@394
     9
export YUM_URL="file://localhost/`pwd`"
ali@456
    10
$razor import-yum || exit 1
ali@456
    11
$razor install zsh2 || exit 1
ali@456
    12
$razor info zsh2 > details.out || exit 1
ali@394
    13
diff -u $srcdir/details.ref details.out || exit 1
ali@394
    14
rm -rf "$RAZOR_ROOT"