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
Jan Moringen
asdf
Commits
2cde41a4
Commit
2cde41a4
authored
15 years ago
by
Francois-Rene Rideau
Browse files
Options
Downloads
Patches
Plain Diff
Add trivial tests for version-satisfies, and fix some non-portability in run-tests.sh
Thanks to tcr for suggestions.
parent
bcb976e6
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
test/run-tests.sh
+4
-7
4 additions, 7 deletions
test/run-tests.sh
test/test-utilities.script
+6
-0
6 additions, 0 deletions
test/test-utilities.script
with
10 additions
and
7 deletions
test/run-tests.sh
+
4
−
7
View file @
2cde41a4
...
...
@@ -171,21 +171,18 @@ if [ -z "${DEBUG_ASDF_TEST}" ] ; then
command
=
"
$command
$nodebug
"
fi
create_asds
()
{
mkdir
-p
{
conf.d,dir1,dir2/
{
dir3,dir4
}}
for
i
in
dir1 dir2
;
do
touch
"
$i
"
/test.asd
;
done
for
i
in
dir3 dir4
;
do
(
cd
dir2/
$i
;
touch
test.asd
)
;
done
create_config
()
{
mkdir
-p
../tmp/test-source-registry-conf.d ../tmp/test-asdf-output-translations-conf.d
}
clean_up
()
{
rm
-rf
{
conf.d,dir?
}
rm
-rf
../tmp/test-source-registry-conf.d ../tmp/test-asdf-output-translations-conf.d
}
if
[
-z
"
$command
"
]
;
then
echo
"Error: cannot find or do not know how to run Lisp named
$lisp
"
else
create_
asds
create_
config
mkdir
-p
results
echo
$command
thedate
=
`
date
"+%Y-%m-%d"
`
...
...
This diff is collapsed.
Click to expand it.
test/test-utilities.script
+
6
−
0
View file @
2cde41a4
...
...
@@ -23,4 +23,10 @@
(make-pathname :name nil :type "bar" :directory '(:absolute "tmp"))
(make-pathname :name "." :type nil :directory '(:absolute "tmp"))
(make-pathname :name "." :type "" :directory '(:absolute "tmp")))))
(assert
(asdf::version-satisfies (asdf:asdf-version) (asdf:asdf-version)))
(assert
(asdf::version-satisfies (asdf:asdf-version) "1.608"))
(assert
(not (asdf::version-satisfies (asdf:asdf-version) "666")))
)
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