Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Robert Goldman
iterate
Commits
737b5f1d
Commit
737b5f1d
authored
May 21, 2021
by
Robert Goldman
Browse files
Improve test runner.
parent
c4f15ac6
Changes
1
Hide whitespace changes
Inline
Side-by-side
iterate-test.lisp
View file @
737b5f1d
...
...
@@ -33,7 +33,11 @@
(
cl:defpackage
#:iterate.test
(
:import-from
#+
sbcl
#:sb-rt
#-
sbcl
#:regression-test
#:*expected-failures*
)
#:*expected-failures*
#-
sbcl
#:*expanded-eval*
#:*compile-tests*
)
(
:import-from
#:iterate
#:deprecation-warning
)
(
:use
#:cl
#:iterate
#+
sbcl
#:sb-rt
#-
sbcl
#:regression-test
))
...
...
@@ -2035,13 +2039,17 @@
(
defun
do-iterate-tests
(
&key
(
on-failure
:error
))
(
multiple-value-bind
(
unexpected-failures
unexpected-successes
)
(
let
((
*expected-failures*
*tests-expected-to-fail*
))
(
let
((
*expected-failures*
*tests-expected-to-fail*
)
#-
sbcl
(
*expanded-eval*
t
)
(
*compile-tests*
nil
))
(
do-tests
)
(
values
(
set-difference
(
pending-tests
)
*tests-expected-to-fail*
)
(
set-difference
*tests-expected-to-fail*
(
pending-tests
))))
(
format
t
"~&DO-TESTS returned ~S unexpected failures and ~S unexpected successes~%"
unexpected-failures
unexpected-successes
)
(
if
(
or
unexpected-failures
unexpected-successes
)
(
format
t
"~&DO-ITERATE-TESTS returned~@[ ~S unexpected failure(s)~]~:[~; and~]~@[ ~S unexpected success(es)~].~%"
unexpected-failures
(
and
unexpected-failures
unexpected-successes
)
unexpected-successes
)
(
format
t
"~&DO-ITERATE-TESTS ran successfully.~%"
))
(
cond
((
and
unexpected-failures
(
eq
on-failure
:error
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment