Browse Source

Fix --bbl test

master
Matthieu Moy 11 years ago
parent
commit
4675c915fc
  1. 9
      tests/bib/run-test.sh
  2. 2
      tests/bib/test.bib

9
tests/bib/run-test.sh

@ -7,15 +7,14 @@ die () {
} }
cleanup () { cleanup () {
perl -pi -e 's/Uncommited/New/g' test.tex test.bbl
perl -pi -e 's/Uncommited/New/g' test.tex test.bib
} }
trap cleanup 2 trap cleanup 2
perl -pi -e 's/New/Uncommited/g' test.tex test.bbl
oldnew="$(git rev-list HEAD -- test.tex test.bbl)"
old=$(echo "$oldnew" | sed -n '1p')
new=$(echo "$oldnew" | sed -n '2p')
perl -pi -e 's/New/Uncommited/g' test.tex test.bib
old=b9a200a6a0c45d6c594cb3c5473edd81a7edb52c
new=cbce899ba408849a471461bb9b5d648bf02039ef
rm -f *.aux *.bbl rm -f *.aux *.bbl
echo "git latexdiff without --bbl option (should not display bibliography)" echo "git latexdiff without --bbl option (should not display bibliography)"

2
tests/bib/test.bib

@ -1,5 +1,5 @@
@Article{test-entry, @Article{test-entry,
author = {Uncommited author},
author = {New author},
title = {Some title}, title = {Some title},
journal = {Some journal}, journal = {Some journal},
year = 42} year = 42}

Loading…
Cancel
Save