--- /dev/null
+++ b/test/Makefile.am
@@ -0,0 +1,19 @@
+TESTS_ENVIRONMENT = G_SLICE=debug-blocks \
+		    LD_LIBRARY_PATH=$(top_builddir)/.libs:$(LD_LIBRARY_PATH)
+
+TESTS=$(check_PROGRAMS)
+
+check_PROGRAMS = gexiv2-dump
+
+gexiv2_dump_SOURCES = gexiv2-dump.vala
+
+AM_VALAFLAGS = --pkg gexiv2
+
+LDADD = \
+	$(top_builddir)/libgexiv2.la \
+	$(EXIV2_LIBS)
+AM_CFLAGS = \
+	    $(EXIV2_CFLAGS) \
+	    -I $(top_srcdir)
+
+EXTRA_DIST=test/sample-author-badencoding.jpg
