Skip to content

Commit

Permalink
Migrate test checks to buildenv
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorTodorovskiIBM committed Sep 6, 2022
1 parent 45a1ee0 commit f6f8cdc
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
17 changes: 17 additions & 0 deletions buildenv
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,20 @@ fi

export ZOPEN_MAKE="./build.sh"
export ZOPEN_CHECK="${ZOPEN_ROOT}/makecheck.sh"

zopen_check_results()
{
#!/bin/sh
# make should have 10 failures or less
#
chk="$2_check.log"

set -x
failures=$(grep ".* Tests in .* Categories Failed" ${chk} | cut -f1 -d' ')
if [ ${failures} -gt 10 ]; then
exit 2
else
exit 1
fi
}

12 changes: 0 additions & 12 deletions portchk.sh

This file was deleted.

0 comments on commit f6f8cdc

Please sign in to comment.