faubackup testsuite.at,NONE,1.1 Makefile.am,1.5,1.6 configure.ac,1.11,1.12

Martin Waitz <[email protected]> Sat, 24 Apr 2004 18:24:58 +0000
Newsgroups gmane.comp.sysutils.backup.faubackup.cvs
Message-ID <[email protected]>
Update of /cvsroot/faubackup/faubackup
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22980

Modified Files:
	Makefile.am configure.ac 
Added Files:
	testsuite.at 
Log Message:
start of testsuite

--- NEW FILE: testsuite.at ---
#
# Start of FauBackup test suite
#

AT_INIT([integration tests])
AT_TESTED([
	src/faubackup
	src/faubackup-find
	src/faubackup-gather
	src/faubackup-scatter
])

m4_define([SRCDIR], [../../src])

m4_define([FAUBACKUP], [SRCDIR/faubackup])
m4_define([FAUBACKUP_FIND], [SRCDIR/faubackup-find])
m4_define([FAUBACKUP_GATHER], [SRCDIR/faubackup-gather])
m4_define([FAUBACKUP_SCATTER], [SRCDIR/faubackup-scatter])

m4_include(tests/t_help.at)

Index: configure.ac
===================================================================
RCS file: /cvsroot/faubackup/faubackup/configure.ac,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** configure.ac	15 Apr 2004 17:43:29 -0000	1.11
--- configure.ac	24 Apr 2004 18:24:55 -0000	1.12
***************
*** 5,8 ****
--- 5,9 ----
  AC_INIT(FauBackup, 0.5.8, [email protected])
  AC_CONFIG_SRCDIR([src/faubackup-scatter.c])
+ AC_CONFIG_TESTDIR([tests])
  AM_INIT_AUTOMAKE(AC_PACKAGE_TARNAME, AC_PACKAGE_VERSION)
  AM_CONFIG_HEADER(config.h)
***************
*** 53,56 ****
--- 54,58 ----
  		 doc/faubackup-gather.8
  		 doc/faubackup.conf.5])
+ AC_CONFIG_FILES([tests/atlocal])
  
  AC_OUTPUT

Index: Makefile.am
===================================================================
RCS file: /cvsroot/faubackup/faubackup/Makefile.am,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** Makefile.am	5 Apr 2004 21:22:46 -0000	1.5
--- Makefile.am	24 Apr 2004 18:24:55 -0000	1.6
***************
*** 4,7 ****
--- 4,60 ----
  dist_sysconf_DATA = faubackup.conf
  
+ 
  changelog:
  	cvs2cl --utc --no-times --accum -U .authors
+ 
+ 
+ #
+ # for the testsuite:
+ #
+ 
+ EXTRA_DIST = \
+ 	testsuite \
+ 	testsuite.at \
+ 	tests/atconfig.in \
+ 	tests/atlocal.in \
+ 	package.m4
+ 
+ MOSTLYCLEANFILES = \
+ 	testsuite.dir/at-check-line \
+ 	testsuite.dir/at-status \
+ 	testsuite.dir/at-stdout \
+ 	testsuite.dir/at-stder1 \
+ 	testsuite.dir/at-stderr \
+ 	testsuite.dir/at-times \
+ 	testsuite.log
+ 
+ DISTCLEANFILES = \
+ 	tests/atconfig
+ 
+ 
+ TESTSUITE = $(srcdir)/testsuite
+ AUTOTEST = autom4te --language=Autotest
+ 
+ check-local: tests/atconfig tests/atlocal $(TESTSUITE)
+ 	$(SHELL) $(TESTSUITE)
+ 
+ # note: these targets are all in srcdir; they are *not* built during
+ # the VPATH build part of distcheck (with non-writable source
+ # directory) but only during the initial dist stage.
+ 
+ $(TESTSUITE): $(srcdir)/testsuite.at \
+ 		$(srcdir)/package.m4 \
+ 		$(srcdir)/tests/t_help.at 
+ 	$(AUTOTEST) -I $(srcdir) $< -o [email protected]
+ 	mv [email protected] $@
+ 
+ $(srcdir)/package.m4: $(top_srcdir)/configure.ac
+ 	{                                      \
+ 	  echo '# Signature of the current package.'; \
+ 	  echo 'm4_define([AT_PACKAGE_NAME],      [@PACKAGE_NAME@])'; \
+ 	  echo 'm4_define([AT_PACKAGE_TARNAME],   [@PACKAGE_TARNAME@])'; \
+ 	  echo 'm4_define([AT_PACKAGE_VERSION],   [@PACKAGE_VERSION@])'; \
+ 	  echo 'm4_define([AT_PACKAGE_STRING],    [@PACKAGE_STRING@])'; \
+ 	  echo 'm4_define([AT_PACKAGE_BUGREPORT], [@PACKAGE_BUGREPORT@])'; \
+ 	} >$(srcdir)/package.m4
+ 



-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297