Skip to content

Commit

Permalink
Enable testing for m4
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorTodorovskiIBM committed Sep 19, 2022
1 parent 4d7f738 commit 13d8cf5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
11 changes: 6 additions & 5 deletions buildenv
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,17 @@ dir="$1"
pfx="$2"
chk="$1/$2_check.log"

set -x
start_line=$(cat "${chk}" | egrep -n '^Failed checks were:' | awk -F':' '{ print $1 }')
if [ $? -eq 0 ]; then
failures=$(cat "${chk}" | tail +${start_line} | head -2 | tail -1 | wc -w)
if [ ${failures} -gt 4 ]; then
exit 1
if [ ${failures} -eq 0 ]; then
return $ZOPEN_TEST_STATUS_ALL_PASSED
elif [ ${failures} -gt 4 ]; then
return $ZOPEN_TEST_STATUS_SOME_PASSED
else
exit 0
return $ZOPEN_TEST_STATUS_MOST_PASSED
fi
fi
exit 1
return $ZOPEN_TEST_STATUS_ERROR
}

4 changes: 3 additions & 1 deletion cicd.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ node('linux')
}

stage('Build') {
build job: 'Port-Pipeline', parameters: [string(name: 'PORT_GITHUB_REPO', value: 'https://github.com/ZOSOpenTools/m4port.git'), string(name: 'PORT_DESCRIPTION', value: 'M4 is an implementation of the traditional Unix macro processor.' )]
build job: 'Port-Pipeline', parameters: [string(name: 'PORT_GITHUB_REPO', value: 'https://github.com/ZOSOpenTools/m4port.git'),
string(name: 'PORT_DESCRIPTION', value: 'M4 is an implementation of the traditional Unix macro processor.' ),
booleanParam(name: 'RUN_TESTS', value: true) ]
}
}

0 comments on commit 13d8cf5

Please sign in to comment.