mirror of
https://github.com/wahyd4/gvm.git
synced 2026-08-09 04:46:19 +10:00
Fixing minor log issue and add tests
This commit is contained in:
+9
-2
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user