mirror of https://notabug.org/mthl/cuirass.git
Add 'basic.sh' test.
parent
987f83b000
commit
fe30eb7e82
|
@ -10,6 +10,7 @@
|
|||
/build-aux/config.sub
|
||||
/build-aux/install-sh
|
||||
/build-aux/missing
|
||||
/build-aux/test-driver
|
||||
/cache/
|
||||
/config.cache
|
||||
/configure
|
||||
|
|
13
Makefile.am
13
Makefile.am
|
@ -15,15 +15,22 @@ nodist_pkgmodule_DATA = \
|
|||
src/cuirass/config.scm \
|
||||
src/cuirass/config.go
|
||||
|
||||
TEST_EXTENSIONS = .scm
|
||||
AM_TESTS_ENVIRONMENT = env GUILE_AUTO_COMPILE='0'
|
||||
TEST_EXTENSIONS = .scm .sh
|
||||
AM_TESTS_ENVIRONMENT = \
|
||||
env GUILE_AUTO_COMPILE='0' \
|
||||
testsrcdir='$(abs_top_srcdir)/tests' \
|
||||
testbuilddir='$(abs_top_builddir)/tests'
|
||||
|
||||
SCM_LOG_DRIVER = \
|
||||
$(builddir)/pre-inst-env $(GUILE) \
|
||||
$(srcdir)/build-aux/test-driver.scm
|
||||
|
||||
SH_LOG_COMPILER = $(top_builddir)/pre-inst-env $(SHELL)
|
||||
AM_SH_LOG_FLAGS = -x -e
|
||||
|
||||
TESTS = \
|
||||
tests/base.scm \
|
||||
tests/basic.sh \
|
||||
tests/database.scm \
|
||||
tests/utils.scm
|
||||
|
||||
|
@ -64,6 +71,8 @@ gen-ChangeLog:
|
|||
|
||||
EXTRA_DIST = \
|
||||
.dir-locals.el \
|
||||
tests/gnu-system.scm \
|
||||
tests/hello-subset.scm \
|
||||
$(TESTS)
|
||||
|
||||
DISTCLEANFILES = src/cuirass/config.scm
|
||||
|
|
|
@ -0,0 +1,24 @@
|
|||
# basic.sh -- check cuirass basic behavior
|
||||
# Copyright © 2016 Mathieu Lirzin <mthl@gnu.org>
|
||||
|
||||
# This file is part of Cuirass.
|
||||
|
||||
# Cuirass 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.
|
||||
|
||||
# Cuirass 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 Cuirass. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
db_file=${testbuilddir}/test.db
|
||||
spec_file=${testsrcdir}/hello-subset.scm
|
||||
|
||||
trap 'rm -f "$db_file"' EXIT
|
||||
|
||||
cuirass --database $db_file --one-shot $spec_file
|
Loading…
Reference in New Issue