This repository has been archived on 2022-08-10. You can view files and clone it, but cannot push or open issues or pull requests.
chez-openbsd/ta6ob/nanopass/test-all.ss
2022-08-09 23:28:25 +02:00

30 lines
1.1 KiB
Scheme
Executable file

;;; Copyright (c) 2000-2018 Dipanwita Sarkar, Andrew W. Keep, R. Kent Dybvig, Oscar Waddell
;;; See the accompanying file Copyright for details
(import (rnrs) (tests compiler-test) (tests helpers) (tests unit-tests) (nanopass helpers))
(printf "Running unit tests\n")
(let* ([succeeded? (run-unit-tests)]
[succeeded? (and (run-ensure-correct-identifiers) succeeded?)]
[succeeded? (and (run-maybe-tests) succeeded?)]
[succeeded? (and (run-maybe-dots-tests) succeeded?)]
[succeeded? (and (run-maybe-unparse-tests) succeeded?)]
[succeeded? (and (run-language-dot-support) succeeded?)]
[succeeded? (and (run-argument-name-matching) succeeded?)]
[succeeded? (and (run-error-messages) succeeded?)]
[succeeded? (and (run-pass-parser-unparser) succeeded?)])
(printf "Compiler loaded, running all tests (quietly)\n")
(time
(begin
(run-all-tests)
(run-all-tests)
(run-all-tests)
(run-all-tests)
(run-all-tests)
(run-all-tests)
(run-all-tests)
(run-all-tests)
(run-all-tests)
(run-all-tests)))
(exit (if succeeded? 0 1)))