<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -6,3 +6,4 @@ runtests_SOURCES = geometry.cpp runtests.cpp unittest.cpp utils.cpp
 AM_CPPFLAGS = -I$(top_srcdir)/include
 AM_CXXFLAGS = -std=c++98 -pedantic -W -Wall -Werror
 LDADD = $(top_builddir)/src/libdgrecog.a
+TESTS = runtests</diff>
      <filename>test/Makefile.am</filename>
    </modified>
    <modified>
      <diff>@@ -31,6 +31,7 @@ NORMAL_UNINSTALL = :
 PRE_UNINSTALL = :
 POST_UNINSTALL = :
 bin_PROGRAMS = runtests$(EXEEXT)
+TESTS = runtests$(EXEEXT)
 subdir = test
 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
@@ -286,6 +287,79 @@ GTAGS:
 distclean-tags:
 	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
 
+check-TESTS: $(TESTS)
+	@failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[	 ]'; \
+	srcdir=$(srcdir); export srcdir; \
+	list=' $(TESTS) '; \
+	if test -n &quot;$$list&quot;; then \
+	  for tst in $$list; do \
+	    if test -f ./$$tst; then dir=./; \
+	    elif test -f $$tst; then dir=; \
+	    else dir=&quot;$(srcdir)/&quot;; fi; \
+	    if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
+	      all=`expr $$all + 1`; \
+	      case &quot; $(XFAIL_TESTS) &quot; in \
+	      *$$ws$$tst$$ws*) \
+		xpass=`expr $$xpass + 1`; \
+		failed=`expr $$failed + 1`; \
+		echo &quot;XPASS: $$tst&quot;; \
+	      ;; \
+	      *) \
+		echo &quot;PASS: $$tst&quot;; \
+	      ;; \
+	      esac; \
+	    elif test $$? -ne 77; then \
+	      all=`expr $$all + 1`; \
+	      case &quot; $(XFAIL_TESTS) &quot; in \
+	      *$$ws$$tst$$ws*) \
+		xfail=`expr $$xfail + 1`; \
+		echo &quot;XFAIL: $$tst&quot;; \
+	      ;; \
+	      *) \
+		failed=`expr $$failed + 1`; \
+		echo &quot;FAIL: $$tst&quot;; \
+	      ;; \
+	      esac; \
+	    else \
+	      skip=`expr $$skip + 1`; \
+	      echo &quot;SKIP: $$tst&quot;; \
+	    fi; \
+	  done; \
+	  if test &quot;$$failed&quot; -eq 0; then \
+	    if test &quot;$$xfail&quot; -eq 0; then \
+	      banner=&quot;All $$all tests passed&quot;; \
+	    else \
+	      banner=&quot;All $$all tests behaved as expected ($$xfail expected failures)&quot;; \
+	    fi; \
+	  else \
+	    if test &quot;$$xpass&quot; -eq 0; then \
+	      banner=&quot;$$failed of $$all tests failed&quot;; \
+	    else \
+	      banner=&quot;$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)&quot;; \
+	    fi; \
+	  fi; \
+	  dashes=&quot;$$banner&quot;; \
+	  skipped=&quot;&quot;; \
+	  if test &quot;$$skip&quot; -ne 0; then \
+	    skipped=&quot;($$skip tests were not run)&quot;; \
+	    test `echo &quot;$$skipped&quot; | wc -c` -le `echo &quot;$$banner&quot; | wc -c` || \
+	      dashes=&quot;$$skipped&quot;; \
+	  fi; \
+	  report=&quot;&quot;; \
+	  if test &quot;$$failed&quot; -ne 0 &amp;&amp; test -n &quot;$(PACKAGE_BUGREPORT)&quot;; then \
+	    report=&quot;Please report to $(PACKAGE_BUGREPORT)&quot;; \
+	    test `echo &quot;$$report&quot; | wc -c` -le `echo &quot;$$banner&quot; | wc -c` || \
+	      dashes=&quot;$$report&quot;; \
+	  fi; \
+	  dashes=`echo &quot;$$dashes&quot; | sed s/./=/g`; \
+	  echo &quot;$$dashes&quot;; \
+	  echo &quot;$$banner&quot;; \
+	  test -z &quot;$$skipped&quot; || echo &quot;$$skipped&quot;; \
+	  test -z &quot;$$report&quot; || echo &quot;$$report&quot;; \
+	  echo &quot;$$dashes&quot;; \
+	  test &quot;$$failed&quot; -eq 0; \
+	else :; fi
+
 distdir: $(DISTFILES)
 	@srcdirstrip=`echo &quot;$(srcdir)&quot; | sed 's/[].[^$$\\*]/\\\\&amp;/g'`; \
 	topsrcdirstrip=`echo &quot;$(top_srcdir)&quot; | sed 's/[].[^$$\\*]/\\\\&amp;/g'`; \
@@ -313,6 +387,7 @@ distdir: $(DISTFILES)
 	  fi; \
 	done
 check-am: all-am
+	$(MAKE) $(AM_MAKEFLAGS) check-TESTS
 check: check-am
 all-am: Makefile $(PROGRAMS)
 installdirs:
@@ -402,18 +477,18 @@ uninstall-am: uninstall-binPROGRAMS
 
 .MAKE: install-am install-strip
 
-.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
-	clean-generic ctags distclean distclean-compile \
-	distclean-generic distclean-tags distdir dvi dvi-am html \
-	html-am info info-am install install-am install-binPROGRAMS \
-	install-data install-data-am install-dvi install-dvi-am \
-	install-exec install-exec-am install-html install-html-am \
-	install-info install-info-am install-man install-pdf \
-	install-pdf-am install-ps install-ps-am install-strip \
-	installcheck installcheck-am installdirs maintainer-clean \
-	maintainer-clean-generic mostlyclean mostlyclean-compile \
-	mostlyclean-generic pdf pdf-am ps ps-am tags uninstall \
-	uninstall-am uninstall-binPROGRAMS
+.PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \
+	clean-binPROGRAMS clean-generic ctags distclean \
+	distclean-compile distclean-generic distclean-tags distdir dvi \
+	dvi-am html html-am info info-am install install-am \
+	install-binPROGRAMS install-data install-data-am install-dvi \
+	install-dvi-am install-exec install-exec-am install-html \
+	install-html-am install-info install-info-am install-man \
+	install-pdf install-pdf-am install-ps install-ps-am \
+	install-strip installcheck installcheck-am installdirs \
+	maintainer-clean maintainer-clean-generic mostlyclean \
+	mostlyclean-compile mostlyclean-generic pdf pdf-am ps ps-am \
+	tags uninstall uninstall-am uninstall-binPROGRAMS
 
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
 # Otherwise a system limit (for SysV at least) may be exceeded.</diff>
      <filename>test/Makefile.in</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>75bc076e643d721e2e4c96551358185556aa6411</id>
    </parent>
  </parents>
  <author>
    <name>Takanori Ishikawa</name>
    <email>takanori.ishikawa@gmail.com</email>
  </author>
  <url>http://github.com/ishikawa/dollar-gesture-recognizer/commit/06b3686567bd64ea130f9864cd72215dc4e82380</url>
  <id>06b3686567bd64ea130f9864cd72215dc4e82380</id>
  <committed-date>2008-12-26T00:23:18-08:00</committed-date>
  <authored-date>2008-12-26T00:23:18-08:00</authored-date>
  <message>Enabled 'make check'</message>
  <tree>a2c777c20d5303f8d68871fe15f38a6b23ba30f0</tree>
  <committer>
    <name>Takanori Ishikawa</name>
    <email>takanori.ishikawa@gmail.com</email>
  </committer>
</commit>
