Skip to content

Commit

Permalink
fix diffimg test code
Browse files Browse the repository at this point in the history
  • Loading branch information
ellson committed Jul 10, 2016
1 parent 751811a commit 0aaaa3e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions contrib/diffimg/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ diffimg.1.pdf: $(srcdir)/diffimg.1
GRAPH = "digraph G { hello -> world }"

test: diffimg
echo $(GRAPH) | dot -Tpng:cg >hello1.png
echo $(GRAPH) | dot -Tpng:cg >hello2.png
echo $(GRAPH) | dot -Tpng >hello1.png
echo $(GRAPH) | dot -Tpng >hello2.png
if `./diffimg hello1.png hello2.png >test1.png`;then echo same;else echo different;fi
echo $(GRAPH) | dot -Grankdir=LR -Tpng:cg >hello2.png
echo $(GRAPH) | dot -Grankdir=LR -Tpng >hello2.png
if `./diffimg hello1.png hello2.png >test2.png`;then echo same;else echo different;fi

CLEANFILES = *.png
Expand Down

0 comments on commit 0aaaa3e

Please sign in to comment.