0 Star 0 Fork 18

wangjie/IvorySQL

forked from IvorySQL/IvorySQL 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
pgtest 1.33 KB
一键复制 编辑 原始数据 按行查看 历史
拂晓神剑 提交于 2024-05-17 08:48 +08:00 . Merge pg master to 2023.12.31 (#664)
#!/bin/sh
# src/tools/pgtest [-n] [...]
# This runs a build/initdb/regression test suite
#
# This will start a temporary postmaster, so you have to
# have enough kernel resources to run two postmasters or
# stop your main postmaster before running this script.
#
# Use -n to prevent 'make clean'
MAKE="make"
[ ! -d src ] && echo "This must be run from the top of the PostgreSQL source tree" 1>&2 && exit 1
trap "ret=$?; rm -rf /tmp/$$; exit $ret" 0 1 2 3 15
mkdir /tmp/$$
TMP="/tmp/$$"
if [ "$1" != "-n" ]
then CLEAN="Y"
else CLEAN="N"
shift
fi
rm -f tmp_install/log/install.log
# Run "make check" and store return code in $TMP/ret.
# Display output but also capture it in $TMP/0.
(
if [ "$CLEAN" = 'Y' ]
then $MAKE "$@" clean 2>&1
echo "$?" > "$TMP"/ret
fi
if [ "$(cat "$TMP"/ret)" -eq 0 ]
then $MAKE "$@" 2>&1 && $MAKE "$@" check 2>&1
echo "$?" > "$TMP"/ret
fi
) | tee "$TMP"/0
# Grab possible warnings from install.log
[ -e tmp_install/log/install.log ] && cat tmp_install/log/install.log >> "$TMP"/0
# If success, display warnings
if [ "$(cat "$TMP"/ret)" -eq 0 ]
then cat "$TMP"/0 |
# The following grep's have to be adjusted for your setup because
# certain warnings are acceptable.
grep -i warning |
grep -v setproctitle |
grep -v find_rule |
grep -v yy_flex_realloc
fi
# return original make error code
exit "$(cat "$TMP"/ret)"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/Jugier/IvorySQL.git
git@gitee.com:Jugier/IvorySQL.git
Jugier
IvorySQL
IvorySQL
master

搜索帮助