-
Notifications
You must be signed in to change notification settings - Fork 4
/
buildenv
52 lines (46 loc) · 2.14 KB
/
buildenv
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# bump: vim-version /VIM_VERSION="(.*)"/ https://github.com/vim/vim.git|semver:*|re:/([\d]+).([\d]+).([\d][\d]*00+)/$1.$2.$3/
VIM_VERSION="9.1.0736"
export ZOPEN_BUILD_LINE="STABLE"
export ZOPEN_CATEGORIES="editor development"
export ZOPEN_STABLE_URL="https://github.com/vim/vim.git"
export ZOPEN_STABLE_DEPS="git make zoslib ncurses diffutils coreutils findutils sed gawk python lua bash libdio cjson"
export ZOPEN_STABLE_TAG="v${VIM_VERSION}"
export ZOPEN_DEV_URL="https://github.com/vim/vim.git"
export ZOPEN_DEV_DEPS="git make zoslib ncurses diffutils coreutils findutils sed gawk python lua bash libdio cjson"
export ZOPEN_EXTRA_CONFIGURE_OPTS="--with-features=big --with-x=no --enable-gui=no --enable-cscope --enable-terminal --enable-channel --enable-luainterp=dynamic --enable-python3interp=dynamic --with-compiledby=\${ZOPEN_VENDOR}"
export ZOPEN_CHECK="skip" # TODO: terminal support causes tests to hang
#export ZOPEN_CHECK="make"
#export ZOPEN_CHECK_OPTS="test -i"
export vim_cv_terminfo=yes
export ZOPEN_RUNTIME_DEPS="ncurses"
export ZOPEN_EXTRA_CPPFLAGS="-DMOTIF390_MNEMONIC_FIXED=1 -DMODIFIED_BY='\\\""'${ZOPEN_VENDOR}'"\\\"'"
export ZOPEN_COMP=CLANG
#
# See patch files for tests currently disabled (hangs, and unsupported screen dump tests)
#
zopen_check_results()
{
dir="$1"
pfx="$2"
chk="$1/$2_check.log"
expectedFailures=42 # bump up by 2 for jenkins - defect to be opened
totalTests=$( grep '^Executed:' "${chk}" | head -1 | awk ' { print $2; }' )
failures=$( grep '^ FAILED:' "${chk}" | head -1 | awk ' { print $2; }' )
errorSummary=$( grep '^Found errors in' "${chk}" )
echo "${errorSummary}" >"$1/$2_check_summary.log"
echo "actualFailures:${failures}"
echo "totalTests:${totalTests}"
echo "expectedFailures:${expectedFailures}"
}
zopen_append_to_zoslib_env() {
vim_version=$(echo $VIM_VERSION | awk -F. '{ printf $1$2 }')
cat <<EOF
VIMRUNTIME|overrideset|PROJECT_ROOT/share/vim/vim${vim_version}
ASCII_TERMINFO|set|PROJECT_ROOT/../../ncurses/ncurses/share/terminfo/
EOF
}
zopen_get_version() {
vr=$(./src/vim --version | head -1 | cut -d ' ' -f5)
m=$(./src/vim --version | head -2 | tail -1 | cut -d '-' -f2)
echo "${vr}.${m}"
}