srfi-0.test 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #! /bin/sh
  2. # -*-scheme-*-
  3. if [ "$MES" != guile ]; then
  4. export MES_BOOT=boot-02.scm
  5. MES=${MES-$(dirname $0)/../src/mes}
  6. $MES < $0
  7. exit $?
  8. fi
  9. exec ${MES-mes} --no-auto-compile -L ${0%/*} -L module -C module -e '(tests boot)' -s "$0" "$@"
  10. !#
  11. ;;; -*-scheme-*-
  12. ;;; GNU Mes --- Maxwell Equations of Software
  13. ;;; Copyright © 2018 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
  14. ;;;
  15. ;;; This file is part of GNU Mes.
  16. ;;;
  17. ;;; GNU Mes is free software; you can redistribute it and/or modify it
  18. ;;; under the terms of the GNU General Public License as published by
  19. ;;; the Free Software Foundation; either version 3 of the License, or (at
  20. ;;; your option) any later version.
  21. ;;;
  22. ;;; GNU Mes is distributed in the hope that it will be useful, but
  23. ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
  24. ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  25. ;;; GNU General Public License for more details.
  26. ;;;
  27. ;;; You should have received a copy of the GNU General Public License
  28. ;;; along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
  29. (define-module (tests srfi-0)
  30. #:use-module (mes mes-0)
  31. #:use-module (mes test))
  32. (display "srfi-0...\n")
  33. (cond-expand
  34. (mes
  35. (display "mes\n")
  36. (exit 0))
  37. (guile
  38. (display "guile\n")
  39. (exit guile?))
  40. (else
  41. (exit 1)))
  42. (exit 1)