blob: 6994b6fc15b3bffaa3f515722f2bf97d73e7466d (
plain)
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
53
54
|
#!/bin/bash
set -e
echo "Running tests..."
pass=true
sed -i.bak 's/\\toggletrue{reference}/% \\toggletrue{reference}/' NBR10520-2002.tex
pdflatex -draftmode -interaction=batchmode NBR10520-2002.tex
biber NBR10520-2002
pdflatex -draftmode -interaction=batchmode NBR10520-2002.tex
pdflatex -interaction=batchmode NBR10520-2002.tex
pdflatex -interaction=batchmode NBR10520-2002_test.tex
sed -i.bak 's/% \\toggletrue{reference}/\\toggletrue{reference}/' NBR10520-2002.tex
while read -r line ; do
C=$(echo $line | awk '{print $1}')
Y=$(echo $line | awk '{print $2}')
M=$(echo $line | awk '{print $3}')
if [ "$C" != 0.00000 ] || [ "$Y" != 0.00000 ] || [ "$M" != 0.00000 ] ; then
pass=false
fi
done < <(gs -q -o - -sDEVICE=inkcov NBR10520-2002_test.pdf | sed -e '1d')
sed -i.bak 's/\\toggletrue{reference}/% \\toggletrue{reference}/' NBR6023-2002.tex
pdflatex -draftmode -interaction=batchmode NBR6023-2002.tex
biber NBR6023-2002
pdflatex -draftmode -interaction=batchmode NBR6023-2002.tex
pdflatex -draftmode -interaction=batchmode NBR6023-2002.tex
pdflatex -interaction=batchmode NBR6023-2002.tex
pdflatex -interaction=batchmode NBR6023-2002_test.tex
sed -i.bak 's/% \\toggletrue{reference}/\\toggletrue{reference}/' NBR6023-2002.tex
while read -r line ; do
C=$(echo $line | awk '{print $1}')
Y=$(echo $line | awk '{print $2}')
M=$(echo $line | awk '{print $3}')
if [ "$C" != 0.00000 ] || [ "$Y" != 0.00000 ] || [ "$M" != 0.00000 ] ; then
pass=false
fi
done < <(gs -q -o - -sDEVICE=inkcov NBR6023-2002_test.pdf | sed -e '1d')
if [ "$pass" = true ] ; then
echo "ALL GOOD!"
exit 0
else
echo "OOPS, THERE'S SOMETHING WRONG!"
exit 1
fi
|