libthai/tests/make_check.sh

27 lines
362 B
Bash
Raw Permalink Normal View History

2021-06-22 05:53:29 +00:00
#!/bin/bash
set -x
check_return_value () {
if [ $1 != 0 ] ; then
exit $1
fi
}
cd $1
2024-05-31 03:51:36 +00:00
VERSION=`rpmspec -q --srpm --qf "%{version}" libthai.spec 2>/dev/null`
if test -d libthai-$VERSION-build;
then cd libthai-$VERSION-build;
fi
cd libthai-$VERSION
2021-06-22 05:53:29 +00:00
./configure --prefix=/usr
check_return_value $?
make
check_return_value $?
make check
exit $?