3 # tests related to loading init files
5 # This software is part of the SBCL system. See the README file for
8 # While most of SBCL is derived from the CMU CL system, the test
9 # files (like this one) were written from scratch after the fork
12 # This software is in the public domain and is provided with
13 # absolutely no warranty. See the COPYING and CREDITS files for
16 tmpcore
="init-test-sh-$$.core"
20 (defun custom-userinit-pathname ()
21 "$SBCL_PWD/custom-userinit.lisp")
22 (defun custom-sysinit-pathname ()
23 "$SBCL_PWD/custom-sysinit.lisp")
24 (setf sb-impl::*userinit-pathname-function* 'custom-userinit-pathname
25 sb-impl::*sysinit-pathname-function* 'custom-sysinit-pathname)
26 (save-lisp-and-die "$tmpcore")
29 echo "failure saving core"
32 $SBCL_ALLOWING_CORE --core "$tmpcore" --disable-debugger <<EOF
33 (userinit-quit (sysinit-21))
36 echo "/Default userinit and sysinit loading worked, good"
38 echo "failure loading user/sysinit files: $?"
43 echo "/returning success from init.test.sh"