1 Star 0 Fork 0

xuehu96/libredwg

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
logs-all-serial.sh.in 1.65 KB
一键复制 编辑 原始数据 按行查看 历史
Reini Urban 提交于 2020-11-12 20:01 . logs-all.sh: revise
#!/bin/sh
# create logs for all DWGs - serial (slow)
srcdir="@srcdir@"
abs_builddir="@abs_builddir@"
make -s -j4
echo test/test-data/
for d in "$srcdir"/test/test-data/2*/*.dwg "$srcdir"/test/test-data/r*/*.dwg; do
xd="$(dirname "$d")"
dir="$(basename "$xd")"
log="$(basename "$d" .dwg)_${dir}.log"
echo "$d" || exit
@TIMEOUT_30@ ./libtool --mode=execute programs/dwgread -v4 "$d" 2>"$log"
#(sleep 10s; kill %1 2>/dev/null) &
done
echo test/test-data
for d in "$srcdir"/test/test-data/*.dwg; do
log="$(basename "$d" .dwg).log"
echo "$d" || exit
@TIMEOUT_10@ ./libtool --mode=execute programs/dwgread -v4 "$d" 2>"$log"
#(sleep 10s; kill %1 2>/dev/null) &
done
if test -d "$srcdir/test/test-big"; then
echo test/test-big/
fi
for d in "$srcdir"/test/test-big/2*/*.dwg; do
xd="$(dirname "$d")"
dir="$(basename "$xd")"
log="$(basename "$d" .dwg)_$dir.log"
echo "$d" || exit
@TIMEOUT_30@ ./libtool --mode=execute programs/dwgread -v3 "$d" 2>"$log"
#(sleep 10s; kill %1 2>/dev/null) &
done
if test -d "$srcdir/test/test-old"
then
echo test/test-old
cd "$srcdir/test/test-old" || exit
for d in r* 20*
do
cd "$d" || exit
for f in */*.dwg
do
xd="$(dirname "$f")"
dir="$(basename "$xd")"
log="$(basename "$f" .dwg)_${dir}_${d}.log"
@TIMEOUT_30@ "$abs_builddir/libtool" --mode=execute "$abs_builddir/programs/dwgread" -v4 "$f" 2>"$abs_builddir/$log"
done
cd .. || exit
done
cd "$abs_builddir" || exit
fi
#with background killing we would need to wait for all processes to end
# while pgrep dwgread; do sleep 1; done
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xuehu96/libredwg.git
[email protected]:xuehu96/libredwg.git
xuehu96
libredwg
libredwg
master

搜索帮助