summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtyom V. Poptsov <poptsov.artyom@gmail.com>2016-07-03 15:16:47 +0400
committerArtyom V. Poptsov <poptsov.artyom@gmail.com>2016-07-03 15:16:47 +0400
commit39aac43c6f687977e87876e731521e07a266d699 (patch)
tree63ca6cce0354ac1e488aca1d2419e2b44929d796
parenttests/common.scm (test-error-with-log/=): New macro (diff)
downloadguile-ssh-39aac43c6f687977e87876e731521e07a266d699.tar.gz
tests/Makefile.am: Compile 'common.scm'
-rw-r--r--tests/Makefile.am34
1 files changed, 32 insertions, 2 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index e7177b8..d79be60 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -1,6 +1,6 @@
## Config file for GNU Automake.
##
-## Copyright (C) 2014, 2015 Artyom V. Poptsov <poptsov.artyom@gmail.com>
+## Copyright (C) 2014, 2015, 2016 Artyom V. Poptsov <poptsov.artyom@gmail.com>
##
## This file is part of Guile-SSH.
##
@@ -17,6 +17,8 @@
## You should have received a copy of the GNU General Public License
## along with Guile-SSH. If not, see <http://www.gnu.org/licenses/>.
+include $(top_srcdir)/am/guilec
+
SCM_TESTS = \
log.scm \
server.scm \
@@ -63,6 +65,33 @@ EXTRA_DIST = \
keys/rsakey.pub \
config
+### Compile modules
+
+GOBJECTS = common.go
+
+ccachedir=$(libdir)/guile/$(GUILE_EFFECTIVE_VERSION)/site-ccache/ssh
+nobase_dist_ccache_DATA = $(GOBJECTS)
+
+guilec_warnings = \
+ -Wunbound-variable -Warity-mismatch \
+ -Wunused-variable -Wunused-toplevel
+
+guilec_opts = \
+ $(guilec_warnings)
+
+# TODO: Move environment setup to a separate file.
+guilec_env = \
+ GUILE_AUTO_COMPILE=0 \
+ LD_LIBRARY_PATH="$(abs_top_builddir)/libguile-ssh/.libs/:${LD_LIBRARY_PATH}" \
+ GUILE_LOAD_PATH="$(abs_top_srcdir)/modules" \
+ GUILE_LOAD_COMPILED_PATH="$(builddir)/ssh:$$GUILE_LOAD_COMPILED_PATH"
+
+.scm.go:
+ $(AM_V_GUILEC)$(guilec_env) $(GUILEC) $(guilec_opts) \
+ --output=$@ $<
+
+###
+
CLEANFILES = \
client-server-errors.log \
client-server-libssh.log \
@@ -77,4 +106,5 @@ CLEANFILES = \
session-errors.log \
session-libssh.log \
tunnel-errors.log \
- tunnel-libssh.log
+ tunnel-libssh.log \
+ $(GOBJECTS)