代码拉取完成,页面将自动刷新
同步操作将从 openKylin/sysstat 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#!/bin/sh
# Script for sysstat simulation test environment
# (C) 2020-2023 Sebastien GODARD (sysstat <at> orange.fr)
if [ "$1" = "conf" ]
then
# Configure sysstat in test mode
make distclean
./configure sa_lib_dir=. sar_dir=. conf_dir=. conf_file=sysstat.sysconfig sa_dir=tests --enable-debuginfo --disable-stripping
elif [ "$1" = "conflto" ]
then
# Configure sysstat in test mode with LTO support
make distclean
./configure sa_lib_dir=. sar_dir=. conf_dir=. conf_file=sysstat.sysconfig sa_dir=tests --enable-debuginfo --enable-lto --disable-stripping
elif [ "$1" = "comp" ]
then
# Compile sysstat in test mode
make simtest TFLAGS="-DTEST"
else
if [ "$1" != "sim" ]
then
# Configure then compile sysstat in test mode
make distclean
# ./configure sa_lib_dir=. sar_dir=. conf_dir=. conf_file=sysstat.sysconfig sa_dir=tests --enable-debuginfo && make TFLAGS="-DTEST" && make simtest
./configure sa_lib_dir=. sar_dir=. conf_dir=. conf_file=sysstat.sysconfig sa_dir=tests --enable-debuginfo --disable-stripping && make simtest TFLAGS="-DTEST"
fi
rm -f tests/results.tmp
COUNT=0
TOTAL=`ls -1 tests/0* | wc -l`
LIST=`ls tests | grep -E '^[0-9]+$' | sort -n`
for f in ${LIST}; do
if [ "$2" = cont -a -f tests/LAST ]
then
L=`cat tests/LAST`
if [ $f -lt $L ]
then
continue
else
rm -f tests/LAST
fi
fi
let "COUNT+=1"
echo $f
echo -n "$f: " >> tests/results.tmp
cat tests/$f | /bin/sh
if [ $? -eq 0 ]
then
if [ -f tests/SKIPPED ]
then
echo Skipped. >> tests/results.tmp
rm tests/SKIPPED;
else
echo Success! >> tests/results.tmp;
fi
else
echo Failed... >> tests/results.tmp;
echo $f > tests/LAST;
if [ "$1" != "ignore" -a "$2" != "ignore" ]
then
exit
fi
fi
done
rm -f tests/root
ln -s root1 tests/root
echo Run ${COUNT}/${TOTAL} test\(s\)
echo Simulation tests: Success!
fi
if [ "$?" = "0" -a "$1" = "all" ]
then
make extratest && make distclean && ./configure --disable-nls --disable-sensors --disable-pcp sa_lib_dir=. sar_dir=. conf_dir=. conf_file=sysstat.sysconfig sa_dir=tests --enable-debuginfo --disable-stripping && make TFLAGS="-DTEST" && echo "EXTRA TESTS: Success!"
fi
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。