summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorArun Isaac2022-07-07 02:08:59 +0530
committerArun Isaac2022-07-07 02:26:08 +0530
commitdc6e932000730ede3c23a270390db9482953b41a (patch)
treefabf2402c1fcbfa5f6b54c7e394093662cb51429 /Makefile
parent4da22c00f8081ba8c072dd4e476de736cb7be79f (diff)
downloadtissue-dc6e932000730ede3c23a270390db9482953b41a.tar.gz
tissue-dc6e932000730ede3c23a270390db9482953b41a.tar.lz
tissue-dc6e932000730ede3c23a270390db9482953b41a.zip
tests: Add tests.
* Makefile (GUILE, tests): New variables. (check): Run tests. * tests/issue.scm: New file.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 68afcd4..37c912d 100644
--- a/Makefile
+++ b/Makefile
@@ -21,6 +21,7 @@ project = tissue
guile_effective_version = 3.0
GUILD ?= guild
+GUILE ?= guile
prefix ?= /usr/local
exec_prefix ?= $(prefix)
@@ -32,6 +33,7 @@ top_level_module_dir = $(project)
sources = $(wildcard $(top_level_module_dir)/*.scm) $(wildcard $(top_level_module_dir)/web/*.scm)
objects = $(sources:.scm=.go)
scripts = $(wildcard bin/*)
+tests = $(wildcard tests/*)
scmdir = $(datarootdir)/guile/site/$(guile_effective_version)
godir = $(libdir)/guile/$(guile_effective_version)/site-ccache
@@ -43,7 +45,8 @@ all: $(objects)
%.go: %.scm
GUILE_AUTO_COMPILE=0 $(GUILD) compile -L . -o $@ $<
-check: ;
+check:
+ ./pre-inst-env $(GUILE) $(tests)
install:
install -D $(scripts) --target-directory $(bindir)