<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>bin/pg_tapgen</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -15,6 +15,8 @@ Revision history for pgTAP
   find &quot;bool&quot; instead of &quot;boolean&quot;.
 * Added `isa_ok()`.
 * Added support for building against 8.5 [Dan Colish].
+* Added `pg_tapgen`, which is a start and automating pgTAP schema validation
+  tests.
 
 0.22 2009-07-31T00:26:16
 -------------------------</diff>
      <filename>Changes</filename>
    </modified>
    <modified>
      <diff>@@ -2,7 +2,7 @@ TESTS = $(wildcard sql/*.sql)
 EXTRA_CLEAN = test_setup.sql *.html
 DATA_built = pgtap.sql uninstall_pgtap.sql
 DOCS = README.pgtap
-SCRIPTS = bbin/pg_prove
+SCRIPTS = bbin/pg_prove bbin/pg_tapgen
 REGRESS = $(patsubst sql/%.sql,%,$(TESTS))
 REGRESS_OPTS = --load-language=plpgsql
 
@@ -160,11 +160,20 @@ else
 endif
 	chmod +x bbin/pg_prove
 
+bbin/pg_tapgen:
+	cp bin/pg_tapgen bbin
+ifdef PERL
+	$(PERL) '-MExtUtils::MY' -e 'MY-&gt;fixin(shift)' bbin/pg_tapgen
+else
+	$(warning Could not find perl (required by pg_tapgen). Install it or set the PERL variable.)
+endif
+	chmod +x bbin/pg_tapgen
+
 # Make sure that we build the regression tests.
 installcheck: test_setup.sql
 
 # Make sure we build pg_prove.
-all: bbin/pg_prove
+all: bbin/pg_prove bbin/pg_tapgen
 
 # Make sure we remove bbin.
 clean: extraclean</diff>
      <filename>Makefile</filename>
    </modified>
    <modified>
      <diff>@@ -53,7 +53,7 @@ unless ($opts-&gt;{runtests} or @ARGV) {
         '-message'  =&gt; &quot;\nOops! You didn't say what test scripts to run or specify --runtests.\n&quot;,
         '-sections' =&gt; '(?i:(Usage|Options))',
         '-verbose'  =&gt; 99,
-        '-exitval' =&gt; 1,
+        '-exitval'  =&gt; 1,
     )
 }
 </diff>
      <filename>bin/pg_prove</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>f6da63e47ba44d3ffad3387d14d07bf31d212995</id>
    </parent>
  </parents>
  <author>
    <name>David E. Wheeler</name>
    <email>david@justatheory.com</email>
  </author>
  <url>http://github.com/theory/pgtap/commit/88195c5207cd0486606d71ac5a0547db92756ec0</url>
  <id>88195c5207cd0486606d71ac5a0547db92756ec0</id>
  <committed-date>2009-10-20T17:01:44-07:00</committed-date>
  <authored-date>2009-10-20T17:01:44-07:00</authored-date>
  <message>Add `pg_tapgen`

`pg_tapgen` is a start and automating pgTAP schema validation tests.</message>
  <tree>9d5070c712331b8cd9e464c5c864f274360bd923</tree>
  <committer>
    <name>David E. Wheeler</name>
    <email>david@justatheory.com</email>
  </committer>
</commit>
