diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-12-06 22:19:06 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2012-12-07 10:46:05 +0100 |
commit | 63ab32635aac24e6a8fd78598f60b56f31987e4a (patch) | |
tree | e5a4374b0c13eb86ca3eb954eb2cd94c8b8c8c3c /Makefile.am | |
parent | 8a5547adb5e94f56be5c30d4eb5de3ce9568fb0e (diff) | |
download | msitools-63ab32635aac24e6a8fd78598f60b56f31987e4a.tar.gz msitools-63ab32635aac24e6a8fd78598f60b56f31987e4a.tar.xz msitools-63ab32635aac24e6a8fd78598f60b56f31987e4a.zip |
add skeleton for autotest testsuite
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index a3da959..3456b5a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -17,3 +17,27 @@ msibuild_DEPENDENCIES = libmsi/libmsi.la msiinfo_SOURCES = tools/msiinfo.c msiinfo_LDADD = -lmsi $(GLIB_LIBS) $(GSF_LIBS) msiinfo_DEPENDENCIES = libmsi/libmsi.la + +# Autotest support + +dist_noinst_DATA = tests/testsuite.at tests/package.m4 tests/testsuite +DISTCLEANFILES = atconfig +CLEANFILES = testsuite.log + +check-local: tests/testsuite atconfig + builddir=`pwd` && \ + cd $(srcdir)/tests && \ + $(SHELL) testsuite AUTOTEST_PATH=$$builddir $(TESTSUITEFLAGS) + +installcheck-local: tests/testsuite atconfig + cd $(srcdir)/tests && \ + $(SHELL) testsuite AUTOTEST_PATH=$(bindir) $(TESTSUITEFLAGS) + +clean-local: + -$(SHELL) tests/testsuite --clean + +tests/testsuite: tests/testsuite.at tests/package.m4 + cd $(srcdir)/tests && \ + $(AUTOM4TE) --language=autotest -o testsuite.tmp testsuite.at && \ + mv testsuite.tmp testsuite + |