X-Git-Url: https://git.distorted.org.uk/~mdw/runlisp/blobdiff_plain/8b79df0a21daf5be382dcf67364a3c6eefce2dcd..a71016725a61073f437a9e725af564a6dc371a38:/tests.at diff --git a/tests.at b/tests.at index 867ae5e..c6c1987 100644 --- a/tests.at +++ b/tests.at @@ -210,7 +210,7 @@ AT_CHECK([RUNLISP_PATH -e '(format t "Just another Lisp hacker!~%")'],, ## The `:runlisp-script' keyword should /not/ be in `*features*'. traceon -AT_CHECK([RUNLISP_PATH -p '(find :runlisp-script *features*)'],, [NIL +AT_CHECK([RUNLISP_PATH -d '(find :runlisp-script *features*)'],, [NIL ]) ## Check a mixture of all the kinds of evaluation. We'll need a stunt script @@ -232,14 +232,16 @@ AT_CHECK([RUNLISP_PATH \ -e '(defpackage [#:]runlisp-test (:export [#:]foo [#:]bar)) (defvar runlisp-test:foo 1) (defvar runlisp-test:bar "stoat!")' \ - -p runlisp-test:foo \ + -d runlisp-test:foo \ + -d runlisp-test:bar \ -p runlisp-test:bar \ -e '(incf runlisp-test:foo)' \ -l script.lisp \ - -p runlisp-test:foo \ + -d runlisp-test:foo \ -- -e one two three],, [1 "stoat!" +stoat! And we're running the script... Command-line arguments: ("-e" "one" "two" "three") Symbols in package `COMMON-LISP-USER': () @@ -280,9 +282,9 @@ echo Secondary Lisp = $lisp1 echo Bad Lisp = $badlisp ## Check that our selection worked. -AT_CHECK_UNQUOTED([RUNLISP_PATH -L$lisp0 -p 'WHICH_LISP'],, ["$lisp0"NL]) -AT_CHECK_UNQUOTED([RUNLISP_PATH -L$lisp1 -p 'WHICH_LISP'],, ["$lisp1"NL]) -AT_CHECK([RUNLISP_PATH -L$badlisp -p 'WHICH_LISP'], [127],, +AT_CHECK_UNQUOTED([RUNLISP_PATH -L$lisp0 -d 'WHICH_LISP'],, ["$lisp0"NL]) +AT_CHECK_UNQUOTED([RUNLISP_PATH -L$lisp1 -d 'WHICH_LISP'],, ["$lisp1"NL]) +AT_CHECK([RUNLISP_PATH -L$badlisp -d 'WHICH_LISP'], [127],, [runlisp: no acceptable Lisp systems found[]NL]) ## Unset all of the user preference mechanisms. @@ -291,9 +293,9 @@ mkdir HOME config HOME=$here/HOME XDG_CONFIG_HOME=$here/config; export HOME XDG_CONFIG_HOME ## We generally take the first one listed that exists. -AT_CHECK_UNQUOTED([RUNLISP_PATH -L$lisp0,$lisp1 -p 'WHICH_LISP'],, ["$lisp0"NL]) -AT_CHECK_UNQUOTED([RUNLISP_PATH -L$lisp1,$lisp0 -p 'WHICH_LISP'],, ["$lisp1"NL]) -AT_CHECK_UNQUOTED([RUNLISP_PATH -L$badlisp,$lisp0,$lisp1 -p 'WHICH_LISP'],, +AT_CHECK_UNQUOTED([RUNLISP_PATH -L$lisp0,$lisp1 -d 'WHICH_LISP'],, ["$lisp0"NL]) +AT_CHECK_UNQUOTED([RUNLISP_PATH -L$lisp1,$lisp0 -d 'WHICH_LISP'],, ["$lisp1"NL]) +AT_CHECK_UNQUOTED([RUNLISP_PATH -L$badlisp,$lisp0,$lisp1 -d 'WHICH_LISP'],, ["$lisp0"NL]) ## Check parsing of embedded options.