-
Notifications
You must be signed in to change notification settings - Fork 55
/
test-all.ss
executable file
·29 lines (27 loc) · 1.11 KB
/
test-all.ss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
;;; 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)))