test-require-extension 536 B

12345678910111213141516171819
  1. #!/bin/sh
  2. set -e
  3. # expect these to throw errors, if they succeed it's wrong
  4. #
  5. # (Note the syntax "! guile -c ..." isn't used here, because that doesn't
  6. # work on Solaris 10.)
  7. #
  8. guile -q -c '(require-extension 7)' 2>/dev/null && exit 1
  9. guile -q -c '(require-extension (blarg))' 2>/dev/null && exit 1
  10. guile -q -c '(require-extension (srfi "foo"))' 2>/dev/null && exit 1
  11. # expect these to succeed
  12. guile -q -c '(require-extension (srfi 1)) (exit (procedure? take-right))'
  13. guile -q -c '(require-extension (srfi))'
  14. exit 0