;;;;
;;;; do-test.stk        -- The pilot of all tests
;;;;
;;;; Copyright © 2005-2022 Erick Gallesio <eg@stklos.net>
;;;;
;;;;
;;;; This program is free software; you can redistribute it and/or modify
;;;; it under the terms of the GNU General Public License as published by
;;;; the Free Software Foundation; either version 2 of the License, or
;;;; (at your option) any later version.
;;;;
;;;; 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, write to the Free Software
;;;; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
;;;; USA.
;;;;
;;;;           Author: Erick Gallesio [eg@essi.fr]
;;;;    Creation date:  3-May-2005 12:28 (eg)
;;;;

(load-path `("../lib"
             ,@(load-path)))

(load "./test.stk")

(define (load-tests)
  (load "test-number.stk")
  (load "test-keyword.stk")
  (load "test-callcc.stk")
  (load "test-sport.stk")
  (load "test-fport.stk")
  (load "test-threads.stk")
  (load "test-hash.stk")
  (load "test-srfi.stk")
  (load "test-libs.stk")
  (load "test-json.stk")
  (load "test-md5.stk")
  (load "test-base64.stk")
  (load "test-box.stk")
  (load "test-regexp.stk")
  (when (%stklos-has-ffi?) (load "test-ffi.stk"))
  (load "test-r5.stk")
  (load "test-r7rs.stk")
  (load "test-r7rs-lib.stk")
  (load "test-circular.stk")
  (load "test-utf8.stk")
  (load "test-unmutable-bindings.stk")
  (load "test-macros.stk")
  (load "test-misc.stk")
  (load "test-r5rs-pitfall.stk")
)


(define (main _)
  (test-init "TEST.LOG")
  (load-tests)
  (test-terminate))
