Add AUTOTEST
authorRalf Corsépius <corsepiu@fedoraproject.org>
Mon, 20 Aug 2007 12:26:13 +0000 (14:26 +0200)
committerRalf Corsépius <corsepiu@fedoraproject.org>
Mon, 20 Aug 2007 12:26:13 +0000 (14:26 +0200)
tests/Makefile.am

index 3719f61..44d81f6 100644 (file)
@@ -1,10 +1,16 @@
 ## Process this file with automake to produce Makefile.in.
 
 EXTRA_DIST =
+CLEANFILES =
 
 TESTSUITE = $(srcdir)/rpmtests
 EXTRA_DIST += rpmtests.at $(TESTSUITE)
 
+AUTOTEST = $(AUTOM4TE) --language=autotest
+$(TESTSUITE): $(srcdir)/rpmtests.at $(TESTSUITE_AT)
+       $(AUTOTEST) -I '$(srcdir)' -o $@.tmp $@.at
+       mv $@.tmp $@
+
 ## testsuite components
 TESTSUITE_AT = rpmgeneral.at
 EXTRA_DIST += $(TESTSUITE_AT)