From 2917dbf5e132c1196bfbda3508743884293a5775 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Thu, 18 Mar 2021 21:27:13 -0400 Subject: Add test-env script for wrapping test runs. --- Makefile.am | 8 ++++---- configure.ac | 1 + test-env.in | 21 +++++++++++++++++++++ 3 files changed, 26 insertions(+), 4 deletions(-) create mode 100644 test-env.in diff --git a/Makefile.am b/Makefile.am index 22e6d4d..4500ecd 100644 --- a/Makefile.am +++ b/Makefile.am @@ -30,9 +30,8 @@ TESTS = \ tests/webvtt.scm TEST_EXTENSIONS = .scm - -SCM_LOG_COMPILER = $(GUILE) -AM_SCM_LOG_FLAGS = --no-auto-compile -L $(top_srcdir) +SCM_LOG_COMPILER = $(top_builddir)/test-env $(GUILE) +AM_SCM_LOG_FLAGS = --no-auto-compile CLEANFILES = \ $(GOBJECTS) \ @@ -42,7 +41,8 @@ EXTRA_DIST = \ $(SOURCES) \ $(TESTS) \ tests/utils.scm \ - pre-inst-env.in + pre-inst-env.in \ + test-env.in dist_bin_SCRIPTS = scripts/srt2vtt diff --git a/configure.ac b/configure.ac index 5c230f7..41914b1 100644 --- a/configure.ac +++ b/configure.ac @@ -7,6 +7,7 @@ AM_SILENT_RULES([yes]) AC_CONFIG_FILES([Makefile]) AC_CONFIG_FILES([pre-inst-env], [chmod +x pre-inst-env]) +AC_CONFIG_FILES([test-env], [chmod +x test-env]) GUILE_PROGS([2.0.5]) diff --git a/test-env.in b/test-env.in new file mode 100644 index 0000000..38cb05d --- /dev/null +++ b/test-env.in @@ -0,0 +1,21 @@ +#!/bin/sh + +# srt2vtt --- SRT to WebVTT converter +# Copyright © 2021 David Thompson +# +# srt2vtt 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 of the License, or +# (at your option) any later version. +# +# srt2vtt 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 srt2vtt. If not, see . + +"@abs_top_builddir@/pre-inst-env" "$@" + +exit $? -- cgit v1.2.3