Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
asdf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Hugo Ishimaru
asdf
Commits
9d4f1b24
Commit
9d4f1b24
authored
23 years ago
by
Daniel Barlow
Browse files
Options
Downloads
Patches
Plain Diff
test with both available implementations without having to edit this
file. patches for other CL implementations gratefully accepted
parent
7265988e
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
test/run-tests.sh
+26
-17
26 additions, 17 deletions
test/run-tests.sh
with
26 additions
and
17 deletions
test/run-tests.sh
+
26
−
17
View file @
9d4f1b24
#!/bin/sh
# This needs to
# - read lisp forms one at a time from standard input
# - quit with exit status 0 on getting eof
# - quit with exit status >0 if an unhandled error occurs
#LISP="/usr/local/bin/lisp -batch "
LISP
=
"sbcl --noprogrammer"
# file extension that $LISP uses for compiled files
FASL
=
fasl
#FASL=axpf
rm
*
.
$FASL
||
true
function
do_tests
{
rm
*
.
$2
||
true
(
cd
..
&&
echo
'(compile-file "asdf")'
|
$1
)
for
i
in
*
.script
;
do
rm
*
.
$
FASL
||
true
if
$
LISP
<
$i
;
then
echo
"
$i
passed"
rm
*
.
$
2
||
true
if
$
1
<
$i
;
then
echo
"
Using
$1
,
$i
passed"
>
&2
else
echo
"
$i
failed"
echo
"
Using
$1
,
$i
failed"
>
&2
exit
1
fi
done
echo
"All tests apparently successful"
echo
"Using
$1
, all tests apparently successful"
>
&2
}
# do_tests {lisp invocation} {fasl extension}
# - read lisp forms one at a time from standard input
# - quit with exit status 0 on getting eof
# - quit with exit status >0 if an unhandled error occurs
set
-e
if
type
sbcl
then
do_tests
"sbcl --noprogrammer"
fasl
fi
if
[
-x
/usr/local/bin/lisp
]
then
do_tests
"/usr/local/bin/lisp -batch"
axpf
fi
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