4 # This is a script to be run as part of make.sh. The only time you'd
5 # probably want to run it by itself is if you're cross-compiling the
6 # system or doing some kind of troubleshooting.
8 # This software is part of the SBCL system. See the README file for
11 # This software is derived from the CMU CL system, which was
12 # written at Carnegie Mellon University and released into the
13 # public domain. The software is in the public domain and is
14 # provided with absolutely no warranty. See the COPYING and CREDITS
15 # files for more information.
27 SBCL_HOME
=$SBCL_PWD/contrib
30 SBCL
="$SBCL_PWD/src/runtime/sbcl --noinform --core $SBCL_PWD/output/sbcl.core --disable-debugger --no-sysinit --no-userinit"
31 SBCL_BUILDING_CONTRIB
=1
32 export SBCL SBCL_BUILDING_CONTRIB
34 # deleting things here lets us not worry about interaction with stale
35 # fasls. This is not good, but is better than :FORCE on each asdf
36 # operation, because that causes multiple builds of base systems such
37 # as SB-RT and SB-GROVEL, but FIXME: there's probably a better
38 # solution. -- CSR, 2003-05-30
40 find contrib
/ \
( -name '*.fasl' -o \
52 for i
in contrib
/*; do
53 test -d $i && test -f $i/Makefile ||
continue;
54 # export INSTALL_DIR=$SBCL_HOME/`basename $i `
55 test -f $i/test-passed
&& rm $i/test-passed
56 $GNUMAKE -C $i test && touch $i/test-passed
59 # Sometimes people used to see the "No tests failed." output from the last
60 # DEFTEST in contrib self-tests and think that's all that is. So...
61 HEADER_HAS_BEEN_PRINTED
=false
64 if [ -d "$dir" -a -f "$dir/Makefile" -a ! -f "$dir/test-passed" ]; then
65 if $HEADER_HAS_BEEN_PRINTED; then
68 echo "Failed contribs:"
69 HEADER_HAS_BEEN_PRINTED
=true
71 echo " `basename $dir`"