diff options
author | David Thompson <dthompson2@worcester.edu> | 2015-10-14 10:44:00 -0400 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2015-10-14 10:50:03 -0400 |
commit | 397bc485d4985b284c3302027c2d9e82353162b7 (patch) | |
tree | ed97cc48309d6ecaf93230e22791da49c250c2fd /test-env.in | |
parent | 32883938eb2faa135f268cfba851c6c6e3e6e478 (diff) |
utils: Clean up and add tests.
* haunt/utils.scm (flat-map, string-split-at): Add docstring.
(file-name-components): Adjust slightly to handle "/".
(join-file-name-components): Use prefix string join grammar.
(absolute-file-name): Add docstring.
* test-env.in: New file.
* tests/utils.scm: New file.
* Makefile.am (TESTS, TEST_EXTENSIONS, SCM_LOG_COMPILER,
AM_SCM_LOG_FLAGS): New variables.
* configure.ac: Add test-env pre-processed file.
* build-aux/test-driver: New file.
Diffstat (limited to 'test-env.in')
-rw-r--r-- | test-env.in | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test-env.in b/test-env.in new file mode 100644 index 0000000..2eba8af --- /dev/null +++ b/test-env.in @@ -0,0 +1,23 @@ +#!/bin/sh + +# Haunt --- Static site generator for GNU Guile +# Copyright © 2015 David Thompson <davet@gnu.org> +# +# This file is part of Haunt. +# +# Haunt 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. +# +# Haunt 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 Haunt. If not, see <http://www.gnu.org/licenses/>. + +"@abs_top_builddir@/pre-inst-env" "$@" + +exit $? |