3
# Copyright (C) 2006 Free Software Foundation, Inc.
5
# This library is free software; you can redistribute it and/or modify it
6
# under the terms of the GNU Lesser General Public License as published by
7
# the Free Software Foundation; either version 2.1 of the License, or (at
8
# your option) any later version.
10
# This library is distributed in the hope that it will be useful, but
11
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
13
# License for more details.
15
# You should have received a copy of the GNU Lesser General Public License
16
# along with this library; if not, write to the Free Software Foundation,
17
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20
# Test that two srfi numbers on the command line work.
22
guile -q -l @top_builddir_absolute@/libguile/stack-limit-calibration.scm --use-srfi=1,10 >/dev/null <<EOF
23
(if (and (defined? 'partition)
24
(defined? 'define-reader-ctor))
28
if test $? = 0; then :; else
29
echo "guile --use-srfi=1,10 fails to run"
34
# Test that running "guile --use-srfi=1" leaves the interactive REPL with
35
# the srfi-1 version of iota.
37
# In guile 1.8.1 and earlier, and 1.6.8 and earlier, these failed because in
38
# `top-repl' the core bindings got ahead of anything --use-srfi gave.
41
guile -q -l @top_builddir_absolute@/libguile/stack-limit-calibration.scm --use-srfi=1 >/dev/null <<EOF
49
if test $? = 0; then :; else
50
echo "guile --use-srfi=1 doesn't give SRFI-1 iota"
55
# Similar test on srfi-17 car, which differs in being a #:replacement. This
56
# exercises duplicates handling in `top-repl' versus `use-srfis' (in
59
guile -q -l @top_builddir_absolute@/libguile/stack-limit-calibration.scm --use-srfi=17 >/dev/null <<EOF
60
(if (procedure-with-setter? car)
64
if test $? = 0; then :; else
65
echo "guile --use-srfi=17 doesn't give SRFI-17 car"