summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorArtyom Poptsov <poptsov.artyom@gmail.com>2014-01-26 13:09:22 +0400
committerArtyom Poptsov <poptsov.artyom@gmail.com>2014-01-26 13:17:24 +0400
commitb29609b1d4bc8ca3a76e6a216bc0034815031e83 (patch)
treee4bacb73b4ea87369642f15503783969d15d5592 /Makefile.am
parentsrc/auth.h (guile_ssh_userauth_autopubkey_x): Export. (diff)
downloadguile-ssh-b29609b1d4bc8ca3a76e6a216bc0034815031e83.tar.gz
Add some unit tests.
* tests/session.scm, tests/auth.scm: New files. * srfi/srfi-64.upstream.scm, srfi/srfi-64.scm: New files. * Makefile.am (SCM_TESTS): New variable. (TESTS): Likewise. (TEST_EXTENSIONS): Likewise. (AM_TESTS_ENVIRONMENT): Likewise. (SCM_LOG_COMPILER): Likewise. (AM_SCM_LOG_FLAGS): Likewise. (tests): New target. (CLEANFILES): Add .log-files produced by tests.
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am22
1 files changed, 21 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 49e71c1..2adca2f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,6 +1,6 @@
## Config file for GNU Automake.
##
-## Copyright (C) 2013 Artyom V. Poptsov <poptsov.artyom@gmail.com>
+## Copyright (C) 2013, 2014 Artyom V. Poptsov <poptsov.artyom@gmail.com>
##
## This file is part of libguile-ssh.
##
@@ -21,3 +21,23 @@ ACLOCAL_AMFLAGS = -I m4 --install
SUBDIRS = src examples build-aux m4
+# Tests.
+
+SCM_TESTS = \
+ tests/session.scm \
+ tests/auth.scm
+
+TESTS = SCM_TESTS
+
+TEST_EXTENSIONS = .scm
+
+AM_TESTS_ENVIRONMENT = abs_top_srcdir="$(abs_top_srcdir)"
+
+SCM_LOG_COMPILER = $(GUILE)
+AM_SCM_LOG_FLAGS = -L "$(abs_top_srcdir)" --no-auto-compile
+
+.PHONY: tests
+
+tests: $(SCM_TESTS:%.scm=%.log)
+
+CLEANFILES = tests/*.log