3 # Copyright (C) 2006 Free Software Foundation, Inc.
5 # This library is free software; you can redistribute it and/or
6 # modify it under the terms of the GNU Lesser General Public License
7 # as published by the Free Software Foundation; either version 3 of
8 # the License, or (at 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
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 # Lesser General Public License for more details.
15 # You should have received a copy of the GNU Lesser General Public
16 # License along with this library; if not, write to the Free Software
17 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21 # Test that two srfi numbers on the command line work.
23 guile
-q --use-srfi=1,10 >/dev
/null
<<EOF
24 (if (and (defined? 'partition)
25 (defined? 'define-reader-ctor))
29 if test $?
= 0; then :; else
30 echo "guile --use-srfi=1,10 fails to run"
35 # Test that running "guile --use-srfi=1" leaves the interactive REPL with
36 # the srfi-1 version of iota.
38 # In guile 1.8.1 and earlier, and 1.6.8 and earlier, these failed because in
39 # `top-repl' the core bindings got ahead of anything --use-srfi gave.
42 guile
-q --use-srfi=1 >/dev
/null
<<EOF
50 if test $?
= 0; then :; else
51 echo "guile --use-srfi=1 doesn't give SRFI-1 iota"
56 # Similar test on srfi-17 car, which differs in being a #:replacement. This
57 # exercises duplicates handling in `top-repl' versus `use-srfis' (in
60 guile
-q --use-srfi=17 >/dev
/null
<<EOF
61 (if (procedure-with-setter? car)
65 if test $?
= 0; then :; else
66 echo "guile --use-srfi=17 doesn't give SRFI-17 car"