From 620449c44dcd647adee7c1b3411d30e48b0571af Mon Sep 17 00:00:00 2001 From: David Thompson Date: Sun, 15 Feb 2015 14:01:51 -0500 Subject: Add test suite. * .gitignore: Ignore test log files. * Makefile.am (TESTS, TEXT_EXTENSIONS, SCM_LOG_COMPILER, AM_SCM_LOG_FLAGS): New variable. (nobase_mod_DATA): Remove NOCOMP_SOURCES. (CLEANFILES): Add test log files. (EXTRA_DIST): Add test suite files. * tests/utils.scm: New file. * tests/subrip.scm: New file. * tests/webvtt.scm: New file. --- Makefile.am | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 94108ef..193c44b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,6 @@ GOBJECTS = $(SOURCES:%.scm=%.go) -nobase_mod_DATA = $(SOURCES) $(NOCOMP_SOURCES) +nobase_mod_DATA = $(SOURCES) nobase_go_DATA = $(GOBJECTS) # Make sure source files are installed first, so that the mtime of @@ -11,8 +11,6 @@ nobase_go_DATA = $(GOBJECTS) guile_install_go_files = install-nobase_goDATA $(guile_install_go_files): install-nobase_modDATA -CLEANFILES = $(GOBJECTS) -EXTRA_DIST = $(SOURCES) $(NOCOMP_SOURCES) GUILE_WARNINGS = -Wunbound-variable -Warity-mismatch -Wformat SUFFIXES = .scm .go .scm.go: @@ -27,6 +25,23 @@ SOURCES = \ srt2vtt/webvtt.scm \ srt2vtt/ui.scm -EXTRA_DIST += pre-inst-env.in +TESTS = \ + tests/subrip.scm \ + tests/webvtt.scm + +TEST_EXTENSIONS = .scm + +SCM_LOG_COMPILER = $(GUILE) +AM_SCM_LOG_FLAGS = --no-auto-compile -L $(top_srcdir) + +CLEANFILES = \ + $(GOBJECTS) \ + $(TESTS:tests/%.scm=%.log) + +EXTRA_DIST = \ + $(SOURCES) \ + $(TESTS) \ + tests/utils.scm \ + pre-inst-env.in dist_bin_SCRIPTS = scripts/srt2vtt -- cgit v1.2.3