2007-11-04 23:01:41 -05:00
|
|
|
#!../src/ikarus -b ikarus.boot --r6rs-script
|
2007-05-15 12:29:47 -04:00
|
|
|
|
2007-10-25 16:27:34 -04:00
|
|
|
;;; Ikarus Scheme -- A compiler for R6RS Scheme.
|
2008-01-29 00:34:34 -05:00
|
|
|
;;; Copyright (C) 2006,2007,2008 Abdulaziz Ghuloum
|
2007-10-25 16:27:34 -04:00
|
|
|
;;;
|
|
|
|
;;; This program is free software: you can redistribute it and/or modify
|
|
|
|
;;; it under the terms of the GNU General Public License version 3 as
|
|
|
|
;;; published by the Free Software Foundation.
|
|
|
|
;;;
|
|
|
|
;;; This program is distributed in the hope that it will be useful, but
|
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
;;; General Public License for more details.
|
|
|
|
;;;
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
|
|
|
;;; along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
|
2008-10-18 13:03:17 -04:00
|
|
|
(import (ikarus))
|
|
|
|
|
|
|
|
(define test-libraries '(
|
|
|
|
lists strings bytevectors hashtables fixnums bignums numerics
|
|
|
|
bitwise enums pointers sorting io fasl reader case-folding
|
|
|
|
parse-flonums string-to-number bignum-to-flonum div-and-mod
|
2008-10-31 16:22:25 -04:00
|
|
|
fldiv-and-mod unicode normalization repl))
|
2007-05-15 12:29:47 -04:00
|
|
|
|
2008-10-18 13:03:17 -04:00
|
|
|
(define (run-test-from-library x)
|
|
|
|
(printf "[testing ~a] ..." x)
|
|
|
|
(eval '(run-tests) (environment `(tests ,x)))
|
|
|
|
(printf " OK\n"))
|
|
|
|
|
|
|
|
(apply
|
|
|
|
(case-lambda
|
|
|
|
[(script) (for-each run-test-from-library test-libraries)]
|
|
|
|
[(script . test-name*)
|
|
|
|
(let ([test-name* (map string->symbol test-name*)])
|
|
|
|
(for-each
|
|
|
|
(lambda (x)
|
|
|
|
(unless (memq x test-libraries)
|
|
|
|
(error script "invalid test name" x)))
|
|
|
|
test-name*)
|
|
|
|
(for-each run-test-from-library test-name*))])
|
|
|
|
(command-line))
|
|
|
|
|
2007-05-21 23:09:45 -04:00
|
|
|
|
2007-05-15 12:29:47 -04:00
|
|
|
(printf "Happy Happy Joy Joy\n")
|