Fixing minor log issue and add tests

This commit is contained in:
jenkins
2012-03-03 00:05:28 +00:00
parent b64d5b3fd9
commit 3fe1e1804a
+9 -2
View File
@@ -20,8 +20,8 @@ function download_package() {
function select_version() {
if [ "$version" != "" ]; then
cd $source_dir && git pull &&
git checkout $version > /dev/null 2>&1
cd $source_dir && git pull &> /dev/null &&
git checkout $version &> /dev/null
if [[ $? -ne 0 ]]; then
echo "Invalid version $version"
exit 1
@@ -81,6 +81,13 @@ function build_package() {
cat "$build_dir/build.log"
exit 1
fi
echo "Running tests..."
cd $source_dir && gvmake test >> $build_dir/build.log 2>&1
if [ $? -ne 0 ]; then
echo "ERROR: Failed tests"
cat "$build_dir/build.log"
exit 1
fi
}
function install_package() {