Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
ansi-test
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Karsten Poeck
ansi-test
Commits
37f3cfab
Commit
37f3cfab
authored
2 years ago
by
Karsten Poeck
Browse files
Options
Downloads
Patches
Plain Diff
Mention the environment variables
parent
701bb02c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
run-random-type-tests.lisp
+22
-4
22 additions, 4 deletions
run-random-type-tests.lisp
with
22 additions
and
4 deletions
run-random-type-tests.lisp
+
22
−
4
View file @
37f3cfab
...
@@ -62,6 +62,17 @@ test-types shows the error for every pair
...
@@ -62,6 +62,17 @@ test-types shows the error for every pair
#+
clozure
(
ccl:getenv
parameter
)
#+
clozure
(
ccl:getenv
parameter
)
)
)
#+
asdf
(
defun
quit-random-test
(
code
)
(
uiop:quit
code
))
#-
asdf
(
defun
quit-random-test
(
code
)
#+
allegro
(
cl-user::exit
)
#+
(
or
cmu
sbcl
gcl
armedbear
clisp
clozure
ecl
)
(
cl-user::quit
)
#+
clasp
(
ext:quit
0
)
)
(
defun
get-env-parameter-as-number
(
parameter
)
(
defun
get-env-parameter-as-number
(
parameter
)
(
let
((
value
(
get-env-parameter
parameter
)))
(
let
((
value
(
get-env-parameter
parameter
)))
(
if
value
(
if
value
...
@@ -71,16 +82,23 @@ test-types shows the error for every pair
...
@@ -71,16 +82,23 @@ test-types shows the error for every pair
(
let*
((
default-size
20
)
(
let*
((
default-size
20
)
(
default-variables
4
)
(
default-variables
4
)
(
default-iterations
10000
)
(
default-iterations
10000
)
(
actual-size
(
or
(
get-env-parameter-as-number
"random_int_size"
)
default-size
))
(
env-size
"random_int_size"
)
(
actual-variables
(
or
(
get-env-parameter-as-number
"random_int_variables"
)
default-variables
))
(
env-variables
"random_int_variables"
)
(
actual-iterations
(
or
(
get-env-parameter-as-number
"random_int_iterations"
)
default-iterations
))
(
env-iterations
"random_int_iterations"
)
(
actual-size
(
or
(
get-env-parameter-as-number
env-size
)
default-size
))
(
actual-variables
(
or
(
get-env-parameter-as-number
env-variables
)
default-variables
))
(
actual-iterations
(
or
(
get-env-parameter-as-number
env-iterations
)
default-iterations
))
(
*random-state*
(
make-random-state
t
)))
(
*random-state*
(
make-random-state
t
)))
(
handler-bind
((
style-warning
#'
muffle-warning
))
(
handler-bind
((
style-warning
#'
muffle-warning
))
(
format
t
"Running test-random-integer-forms with size: ~a variables: ~a iterations: ~a on implementation ~a ~%"
(
format
t
"Running test-random-integer-forms with size: ~a variables: ~a iterations: ~a on implementation ~a ~%"
actual-size
actual-variables
actual-iterations
(
lisp-implementation-type
))
actual-size
actual-variables
actual-iterations
(
lisp-implementation-type
))
(
format
t
"Set the following environment variables to modify: ~a ~a ~a.~%"
env-size
env-variables
env-iterations
)
(
test-random-integer-forms
actual-size
actual-variables
actual-iterations
)))
(
test-random-integer-forms
actual-size
actual-variables
actual-iterations
)))
#+
clasp
(
ext:quit
0
)
#-
dont-quit
(
progn
(
quit-random-test
0
))
#|
#|
4) Additional testing can be done with test-types and test-type-triples. The latter has its own pruner, prune-type-triple.
4) Additional testing can be done with test-types and test-type-triples. The latter has its own pruner, prune-type-triple.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment