2006-12-05 David Lodge <dave@cirt.net>
[dia.git] / tests / exports / Makefile.am
blob4df7eca781aa77b8677e420f52326251e797598a
1 EXPORT_PLUGINS=cgm dxf eps eps-builtin eps-pango fig mp plt hpgl png png-libart pixbuf-png jpg shape svg tex wpg
3 tests:
4         for FILTER in $(EXPORT_PLUGINS); do \
5                 for FILE in *.dia; do \
6                         echo -n .; \
7                         OUTPUT=/tmp/`basename $$FILE .dia`.$$FILTER; \
8                         ORIGINAL=$$FILTER/`basename $$FILE .dia`.$$FILTER; \
9                         if ! ../../app/run_dia.sh -t $$FILTER -e $$OUTPUT $$FILE ; then \
10                                 echo; \
11                                 echo $$FILTER failed for $$FILE; \
12                         elif ! diff $$OUTPUT $$ORIGINAL >/dev/null ; then \
13                                 echo; \
14                                 echo "$$FILTER output has changed for $$FILE (see $$OUTPUT)"; \
15                         else \
16                                 rm $$OUTPUT; \
17                         fi; \
18                 done; \
19         done