sbcl.sbcl/tests/load.test.sh
Douglas Katzman 99dc09695e Simplify probe-load-defaults
Though restart-case for a simple yes/no check is not needed,
we do want pathname defaults and logical-pathname translation
and rejection of wild names.
2024-07-31 23:24:59 +00:00

17 lines
361 B
Bash

#!/bin/sh
. ./subr.sh
use_test_subdirectory
set -e
mkdir subdir1
echo '(defvar *hi* "hi")' > subdir1/file1.lisp
run_sbcl <<EOF
(setq *default-pathname-defaults*
(merge-pathnames (make-pathname :directory '(:relative "subdir1"))))
(load "file1") ; should merge the dir and default the .lisp type
(assert (string= *hi* "hi"))
EOF
exit $EXIT_TEST_WIN