diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-07-29 00:49:53 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-07-29 00:49:53 +0300 |
commit | 07e8fc8a6afe790f7e225601392cf6d17b6a3591 (patch) | |
tree | 8d11d1574df20477a8f7359cb0403511948add3a /tests/Makefile.am | |
parent | c675f974b1787097237be644f77ba1d40385e425 (diff) | |
download | idest-07e8fc8a6afe790f7e225601392cf6d17b6a3591.tar.gz idest-07e8fc8a6afe790f7e225601392cf6d17b6a3591.tar.bz2 |
Add testsuite
* Makefile.am (SUBDIRS): Add tests
* configure.ac: Initialize testsuite.
* src/cmdline.opt (get_options): Bugfix.
* src/frametab.gperf: Use condesc instead of descr,
which is reserved.
* src/getopt.m4: Fix version output.
* src/guile.c: Bugfixes.
* src/main.c (guile_argv): Declare here, instead of in guile.c.
* tests/Makefile.am: New file.
* tests/testsuite.at: New file.
* tests/.gitignore: New file.
* tests/Makefile.am: New file.
* tests/atlocal.in: New file.
* tests/genfile.c: New file.
* tests/id3v1: New file.
* tests/id3v1-2: New file.
* tests/id3v2: New file.
* tests/idest-32.png: New file.
* tests/idest-68.png: New file.
* tests/info-v1-00.at: New file.
* tests/info-v12-00.at: New file.
* tests/info-v2-00.at: New file.
* tests/query-v1-00.at: New file.
* tests/query-v1-01.at: New file.
* tests/query-v2-00.at: New file.
* tests/query-v2-01.at: New file.
* tests/query-v2-02.at: New file.
* tests/query-v2-03.at: New file.
* tests/query-v2-04.at: New file.
* tests/set-v1-00.at: New file.
* tests/set-v2-00.at: New file.
* tests/version.at: New file.
Diffstat (limited to 'tests/Makefile.am')
-rw-r--r-- | tests/Makefile.am | 95 |
1 files changed, 95 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am new file mode 100644 index 0000000..4463d13 --- /dev/null +++ b/tests/Makefile.am @@ -0,0 +1,95 @@ +# This file is part of idest +# Copyright (C) 2011 Sergey Poznyakoff +# +# Idest is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3, or (at your option) +# any later version. +# +# Idest is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with idest. If not, see <http://www.gnu.org/licenses/>. + +EXTRA_DIST = \ + $(TESTSUITE_AT)\ + testsuite\ + package.m4\ + id3v1\ + id3v1-2\ + id3v2 + +DISTCLEANFILES = atconfig +MAINTAINERCLEANFILES = Makefile.in $(TESTSUITE) + + +## ------------ ## +## package.m4. ## +## ------------ ## + +$(srcdir)/package.m4: $(top_srcdir)/configure.ac $(srcdir)/Makefile + $(AM_V_GEN){ \ + 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@])'; \ + echo 'm4_define([AT_PACKAGE_GUILE], [@GUILE_VERSION@])'; \ + } >$(srcdir)/package.m4 + +# + +## ------------ ## +## Test suite. ## +## ------------ ## + +TESTSUITE_AT = \ + testsuite.at\ + version.at\ + info-v1-00.at\ + info-v2-00.at\ + info-v12-00.at\ + set-v1-00.at\ + set-v2-00.at\ + query-v1-00.at\ + query-v1-01.at\ + query-v2-00.at\ + query-v2-01.at\ + query-v2-02.at\ + query-v2-03.at\ + query-v2-04.at + +TESTSUITE = $(srcdir)/testsuite +M4=m4 + +AUTOTEST = $(AUTOM4TE) --language=autotest +$(TESTSUITE): package.m4 $(TESTSUITE_AT) + $(AUTOTEST) -I $(srcdir) testsuite.at -o $@.tmp + mv $@.tmp $@ + +atconfig: $(top_builddir)/config.status + cd $(top_builddir) && ./config.status tests/$@ + +clean-local: + test ! -f $(TESTSUITE) || $(SHELL) $(TESTSUITE) --clean + +check-local: atconfig atlocal $(TESTSUITE) + $(SHELL) $(TESTSUITE) + +# Run the test suite on the *installed* tree. +#installcheck-local: +# $(SHELL) $(TESTSUITE) AUTOTEST_PATH=$(exec_prefix)/bin + +## ------------ ## +## genfile ## +## ------------ ## + +check_PROGRAMS = genfile + +genfile_SOURCES = genfile.c + + |