forked from LibreDWG/libredwg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
logs-all-parallel.sh.in
33 lines (28 loc) · 1.17 KB
/
logs-all-parallel.sh.in
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
#!/bin/sh
# create logs for all DWGs with GNU parallel (fast)
# shellcheck disable=SC1001,SC1083
srcdir="@srcdir@"
abs_builddir="@abs_builddir@"
make -s -j4
echo test/test-data
@PARALLEL@ @TIMEOUT_10@ ./libtool --mode=execute programs/dwgread -v4 {} \2\>{/.}.log ::: "$srcdir"/test/test-data/*.dwg
echo test/test-data/
cd "$srcdir/test/test-data" || exit
@PARALLEL@ @TIMEOUT_30@ "$abs_builddir/libtool" --mode=execute "$abs_builddir/programs/dwgread" -v4 {} \2\>$abs_builddir/{/.}_{//}.log ::: */*.dwg
cd "$abs_builddir" || exit
if test -d "$srcdir/test/test-big"; then
echo test/test-big
cd "$srcdir/test/test-big" || exit
@PARALLEL@ @TIMEOUT_30@ "$abs_builddir/libtool" --mode=execute "$abs_builddir/programs/dwgread" -v3 {} \2\>$abs_builddir/{/.}_{//}.log ::: */*.dwg
cd "$abs_builddir" || exit
fi
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
@PARALLEL@ @TIMEOUT_30@ "$abs_builddir/libtool" --mode=execute "$abs_builddir/programs/dwgread" -v4 {} \2\>$abs_builddir/{/.}_{//}_"$d".log ::: */*.dwg
cd .. || exit
done
cd "$abs_builddir" || exit
fi