summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2022-08-05 19:32:09 -0300
committerEuAndreh <eu@euandre.org>2022-08-05 20:12:17 -0300
commit1856fe44a8f7fe3802e6c3e5e6369f2c7e8e5699 (patch)
tree24e81e263c74c69d6f2ef45603b29b8d9e276016 /Makefile
parentdoc/: Setup Texinfo documentation skeleton (diff)
downloadguile-heredoc-1856fe44a8f7fe3802e6c3e5e6369f2c7e8e5699.tar.gz
guile-heredoc-1856fe44a8f7fe3802e6c3e5e6369f2c7e8e5699.tar.xz
tests/heredoc.scm: Add test for (enable-syntax) macro
Test both compiled and non-compiled variants of the test in order to stress the scenarios of *when* the read-macro is set. Also change the (eval-when ...) case used: - "compile": for when the code is being compiled only, and before its execution; - "eval": for the the code is being evaluated only, during its execution. Also from the Guile manual (via 'info (guile)Loading'): Changing ‘current-reader’ is typically useful to introduce local syntactic changes, such that code following the ‘fluid-set!’ call is read using the newly installed reader. The ‘current-reader’ change should take place at evaluation time when the code is evaluated, or at compilation time when the code is compiled: (eval-when (compile eval) (fluid-set! current-reader my-own-reader)) The ‘eval-when’ form above ensures that the ‘current-reader’ change occurs at the right time.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index fa340bd..8c1c50e 100644
--- a/Makefile
+++ b/Makefile
@@ -71,8 +71,15 @@ uninstall:
rm -f "$(DESTDIR)$(INFODIR)"/`basename $$i`; \
done
-check-guile:
- $(GUILE) -L src/ tests/heredoc.scm
+
+check-guile-evaled:
+ GUILE_AUTO_COMPILE=0 $(GUILE) -L src/ tests/heredoc.scm
+
+check-guile-compiled:
+ GUILE_AUTO_COMPILE=1 $(GUILE) -L src/ tests/heredoc.scm
+
+check-guile: check-guile-evaled check-guile-compiled
+
check: check-guile