1.0.9.53: trivial typo fixes
[sbcl/lichteblau.git] / tests / toplevel.sh
blob3ec14708c2e309e550eccf743810c2c58dd10118
1 #!/bin/sh
3 # tests related to the toplevel interface: command line parsing
4 # and outer REPL
6 # This software is part of the SBCL system. See the README file for
7 # more information.
9 # While most of SBCL is derived from the CMU CL system, the test
10 # files (like this one) were written from scratch after the fork
11 # from CMU CL.
13 # This software is in the public domain and is provided with
14 # absolutely no warranty. See the COPYING and CREDITS files for
15 # more information.
17 testfile=${TMPDIR:-/tmp}/sbcl-toplevel-test-$$.tmp
19 # Until sbcl-0.pre8, all --eval arguments were parsed before any of
20 # them were executed, making it impossible for --eval forms to refer
21 # to packages created by --eval forms.
22 ${SBCL:-sbcl} --eval "(defpackage :foo)" --eval "(print 'foo::bar)" \
23 < /dev/null > $testfile
24 if [ "`grep -c FOO::BAR $testfile`" != 1 ] ; then
25 echo failed DEFPACKAGE-then-PRINT from --eval form
26 exit 1