Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
frama-c
Commits
277d01d8
Commit
277d01d8
authored
2 years ago
by
Patrick Baudin
Browse files
Options
Downloads
Patches
Plain Diff
FRAMAC_WP_(QUALIF|CACHEDIR) must be set to an absolute pathname
parent
1731e5c0
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bin/test.sh
+7
-2
7 additions, 2 deletions
bin/test.sh
src/plugins/wp/tests/README.md
+2
-0
2 additions, 0 deletions
src/plugins/wp/tests/README.md
with
9 additions
and
2 deletions
bin/test.sh
+
7
−
2
View file @
277d01d8
...
@@ -31,7 +31,7 @@ SAVE=
...
@@ -31,7 +31,7 @@ SAVE=
DUNE_OPT
=
DUNE_OPT
=
DUNE_LOG
=
./.test-errors.log
DUNE_LOG
=
./.test-errors.log
CACHEDIR
=
.
/.wp-cache
CACHEDIR
=
$(
pwd
-P
)
/.wp-cache
FRAMAC_WP_CACHE_GIT
=
git@git.frama-c.com:frama-c/wp-cache.git
FRAMAC_WP_CACHE_GIT
=
git@git.frama-c.com:frama-c/wp-cache.git
# --------------------------------------------------------------------------
# --------------------------------------------------------------------------
...
@@ -73,7 +73,7 @@ function Usage
...
@@ -73,7 +73,7 @@ function Usage
echo
""
echo
""
echo
" FRAMAC_WP_QUALIF"
echo
" FRAMAC_WP_QUALIF"
echo
" FRAMAC_WP_CACHEDIR"
echo
" FRAMAC_WP_CACHEDIR"
echo
"
Location of wp-cache
(
$FRAMAC_WP_CACHEDIR
)"
echo
"
Absolute path to wp-cache directory
(
$FRAMAC_WP_CACHEDIR
)"
if
[
!
-d
$FRAMAC_WP_CACHEDIR
]
;
then
if
[
!
-d
$FRAMAC_WP_CACHEDIR
]
;
then
echo
" About to clone from
$FRAMAC_WP_CACHE_GIT
"
echo
" About to clone from
$FRAMAC_WP_CACHE_GIT
"
fi
fi
...
@@ -142,6 +142,11 @@ function SetEnv
...
@@ -142,6 +142,11 @@ function SetEnv
[
!
-f
"
$FRAMAC_WP_CACHEDIR
"
]
||
[
-d
"
$FRAMAC_WP_CACHEDIR
"
]
\
[
!
-f
"
$FRAMAC_WP_CACHEDIR
"
]
||
[
-d
"
$FRAMAC_WP_CACHEDIR
"
]
\
||
Error
"
$FRAMAC_WP_CACHEDIR
is not a directory"
||
Error
"
$FRAMAC_WP_CACHEDIR
is not a directory"
case
"
$FRAMAC_WP_CACHEDIR
"
in
/
*
);;
*
)
Error
"Requires an absolute path to
$FRAMAC_WP_CACHEDIR
"
;;
esac
}
}
function
CloneCache
function
CloneCache
...
...
This diff is collapsed.
Click to expand it.
src/plugins/wp/tests/README.md
+
2
−
0
View file @
277d01d8
...
@@ -48,6 +48,8 @@ The `./bin/test.sh` uses, in order of proprity:
...
@@ -48,6 +48,8 @@ The `./bin/test.sh` uses, in order of proprity:
-
`FRAMAC_WP_CACHEDIR`
environement variable,
-
`FRAMAC_WP_CACHEDIR`
environement variable,
-
local
`./.wp-cache`
directory.
-
local
`./.wp-cache`
directory.
Of course, these environment variables must be set to an absolute path to prevent from different execution locations of Frama-C.
It is _not_ recommended to use the
`FRAMAC_WP_CACHEDIR`
variable in your default
It is _not_ recommended to use the
`FRAMAC_WP_CACHEDIR`
variable in your default
shell setup, unless is it a temporary directory (eg.
`/tmp/wp-sandbox`
) since
shell setup, unless is it a temporary directory (eg.
`/tmp/wp-sandbox`
) since
_every_
run of
`frama-c -wp`
might then use it by default. Be carefull if you do so.
_every_
run of
`frama-c -wp`
might then use it by default. Be carefull if you do so.
...
...
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