chiark
/
gitweb
/
~mdw
/
runlisp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
4ca4912
)
tests.at: Use the `@%:@' quadrigraph rather than quoting hacks for `#'.
author
Mark Wooding
<mdw@distorted.org.uk>
Mon, 17 Jun 2024 10:54:21 +0000
(11:54 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Mon, 17 Jun 2024 12:09:17 +0000
(13:09 +0100)
tests.at
patch
|
blob
|
blame
|
history
diff --git
a/tests.at
b/tests.at
index c765753aed69e33d651118f9e5437564abcfc206..b022076cdda142605988c59f51fb02cd94126840 100644
(file)
--- a/
tests.at
+++ b/
tests.at
@@
-54,14
+54,14
@@
lisp=$1
LISP=$m4_translit(m4_bpatsubst([$1], [/.*$], []), [a-z], [A-Z])
AT_SKIP_IF([test "x$LISP" = x])
case $lisp in
LISP=$m4_translit(m4_bpatsubst([$1], [/.*$], []), [a-z], [A-Z])
AT_SKIP_IF([test "x$LISP" = x])
case $lisp in
- */*) opt=${lisp
#
*/} lisp=${lisp%%/*} ;;
+ */*) opt=${lisp
@%:@
*/} lisp=${lisp%%/*} ;;
*) opt="" ;;
esac
case /$opt/ in */noimage/*) RUNLISP_IMAGEDIR=./notexist ;; esac])
m4_define([WHICH_LISP],
*) opt="" ;;
esac
case /$opt/ in */noimage/*) RUNLISP_IMAGEDIR=./notexist ;; esac])
m4_define([WHICH_LISP],
-[(or
#+sbcl "sbcl" #+ccl "ccl" #
+clisp "clisp"
-
#+ecl "ecl" #+cmu "cmucl" #
+abcl "abcl"
+[(or
@%:@+sbcl "sbcl" @%:@+ccl "ccl" @%:@
+clisp "clisp"
+
@%:@+ecl "ecl" @%:@+cmu "cmucl" @%:@
+abcl "abcl"
"unknown")])
m4_define([NL], [
"unknown")])
m4_define([NL], [
@@
-96,13
+96,13
@@
HOME=$(pwd)/HOME; export HOME
## Prepare the script.
cat >test-script <<EOF
## Prepare the script.
cat >test-script <<EOF
-
[#!]
RUNLISP_PATH -L$lisp
+
@%:@!
RUNLISP_PATH -L$lisp
;; Print a greeting to \`*standard-output*', identifying the Lisp system, so
;; that we can tell whether we called the right one.
(format t "Hello from ~A (~A)!~%" (lisp-implementation-type) WHICH_LISP)
;; Print a greeting to \`*standard-output*', identifying the Lisp system, so
;; that we can tell whether we called the right one.
(format t "Hello from ~A (~A)!~%" (lisp-implementation-type) WHICH_LISP)
-
#
! this should be a comment everywhere
+
@%:@
! this should be a comment everywhere
;; Make sure that \`*error-output*' is hooked up properly.
(format *error-output* "to stderr~%")
;; Make sure that \`*error-output*' is hooked up properly.
(format *error-output* "to stderr~%")
@@
-120,12
+120,12
@@
cat >test-script <<EOF
;; ourselves. Alas, ABCL and ECL pollute \`cl-user' out of the box. (ECL
;; does this deliberately; ABCL's ``adjoin.lisp' lacks an \`in-package'
;; form.)
;; ourselves. Alas, ABCL and ECL pollute \`cl-user' out of the box. (ECL
;; does this deliberately; ABCL's ``adjoin.lisp' lacks an \`in-package'
;; form.)
-(let ((
#1=#:syms (sort (loop :for #2=#:s :being :the :present-symbols
- :of *package*
- :collect
#2#
)
-
#
'string<)))
+(let ((
@%:@1=@%:@:syms (sort (loop :for @%:@2=@%:@:s :being
+ :
the :present-symbols :
of *package*
+ :collect
@%:@2@%:@
)
+
@%:@
'string<)))
(format t "package \`~A' [~:[ok~;has unexpected symbols ~:*~S~]]~%"
(format t "package \`~A' [~:[ok~;has unexpected symbols ~:*~S~]]~%"
- (package-name *package*)
#1#
))
+ (package-name *package*)
@%:@1@%:@
))
;; Print the program name and command-line arguments.
(format t "program name = ~S~%~
;; Print the program name and command-line arguments.
(format t "program name = ~S~%~
@@
-177,7
+177,7
@@
PREPARE_LISP_TEST([$1])
## A simple script which signals an error without catching it.
cat >test <<EOF
## A simple script which signals an error without catching it.
cat >test <<EOF
-
[#!]
RUNLISP_PATH -L$lisp
+
@%:@!
RUNLISP_PATH -L$lisp
(error "just kill me now")
EOF
chmod +x test
(error "just kill me now")
EOF
chmod +x test
@@
-218,19
+218,20
@@
AT_CHECK([RUNLISP_PATH -d '(find :runlisp-script *features*)'],, [NIL
## evaluated one at a time, so that each one can affect the way the reader
## interprets the next.
cat >script.lisp <<EOF
## evaluated one at a time, so that each one can affect the way the reader
## interprets the next.
cat >script.lisp <<EOF
-
#
! just want to check that Lisp doesn't choke on a shebang line here
+
@%:@
! just want to check that Lisp doesn't choke on a shebang line here
(format t "And we're running the script...~%~
Command-line arguments: ~:S~%~
Symbols in package \`~A': ~:S~%"
uiop:*command-line-arguments*
(package-name *package*)
(format t "And we're running the script...~%~
Command-line arguments: ~:S~%~
Symbols in package \`~A': ~:S~%"
uiop:*command-line-arguments*
(package-name *package*)
- (sort (loop :for #2=#:s :being :the :present-symbols :of *package*
- :collect #2#)
- #'string<))
+ (sort (loop :for @%:@2=@%:@:s :being
+ :the :present-symbols :of *package*
+ :collect @%:@2@%:@)
+ @%:@'string<))
EOF
AT_CHECK([RUNLISP_PATH \
EOF
AT_CHECK([RUNLISP_PATH \
- -e '(defpackage
[#:]runlisp-test (:export [#:]foo [#:]
bar))
- (defvar runlisp-test:foo 1)
+ -e '(defpackage
@%:@:runlisp-test (:export @%:@:foo @%:@:
bar))
+ (defvar runlisp-test:foo 1)
(defvar runlisp-test:bar "stoat!")' \
-d runlisp-test:foo \
-d runlisp-test:bar \
(defvar runlisp-test:bar "stoat!")' \
-d runlisp-test:foo \
-d runlisp-test:bar \
@@
-263,7
+264,7
@@
SETUP_RUNLISP_ENV
unset lisp0 lisp1 badlisp; win=nil
set -- cmucl sbcl ccl clisp ecl abcl
while :; do
unset lisp0 lisp1 badlisp; win=nil
set -- cmucl sbcl ccl clisp ecl abcl
while :; do
- case $
#
in 0) break ;; esac
+ case $
@%:@
in 0) break ;; esac
lisp=$1; shift
if RUNLISP_PATH -L$lisp -enil 2>/dev/null; then good=t; else good=nil; fi
case ${lisp0+t},${badlisp+t},$good in
lisp=$1; shift
if RUNLISP_PATH -L$lisp -enil 2>/dev/null; then good=t; else good=nil; fi
case ${lisp0+t},${badlisp+t},$good in
@@
-302,7
+303,7
@@
AT_CHECK_UNQUOTED([RUNLISP_PATH -L$badlisp,$lisp0,$lisp1 -d 'WHICH_LISP'],,
for i in 0 1; do
j=$(( 1 - $i )); eval lisp=\$lisp$i olisp=\$lisp$j
cat >script$i <<EOF
for i in 0 1; do
j=$(( 1 - $i )); eval lisp=\$lisp$i olisp=\$lisp$j
cat >script$i <<EOF
-
[#!]
RUNLISP_PATH
+
@%:@!
RUNLISP_PATH
;;; -z @RUNLISP: -L$lisp -*- -z -*- -L$olisp -- -z
(prin1 WHICH_LISP) (terpri)
EOF
;;; -z @RUNLISP: -L$lisp -*- -z -*- -L$olisp -- -z
(prin1 WHICH_LISP) (terpri)
EOF