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
e69d03fd
Commit
e69d03fd
authored
2 years ago
by
Patrick Baudin
Browse files
Options
Downloads
Patches
Plain Diff
[ptests] allows dependencies to ~/.why3.conf
parent
e2f7843a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ptests/ptests.ml
+13
-1
13 additions, 1 deletion
ptests/ptests.ml
src/plugins/wp/tests/why3/test_config_qualif
+1
-0
1 addition, 0 deletions
src/plugins/wp/tests/why3/test_config_qualif
with
14 additions
and
1 deletion
ptests/ptests.ml
+
13
−
1
View file @
e69d03fd
...
...
@@ -1242,9 +1242,20 @@ module Fmt = struct
let
var_libavailable
pr
fmt
s
=
Format
.
fprintf
fmt
"%%{lib-available:%a.core}"
pr
s
let
package_as_deps
pr
fmt
s
=
Format
.
fprintf
fmt
"(package %a)"
pr
s
end
let
home_regexp
=
Str
.
regexp
"^
\\
(~
\\
|[$]HOME
\\
|[$]
\\
{HOME
\\
}
\\
)
\\
(/.*
\\
)"
let
get_home_env
()
=
try
Unix
.
getenv
"HOME"
with
Not_found
->
"~"
let
pp_list_deps
fmt
l
=
List
.
iter
(
fun
s
->
let
s
=
Filename
.
sanitize_with_space
s
in
let
s
=
match
str_string_match2
home_regexp
s
0
with
|
None
->
s
|
Some
(
_
,
subdir
)
->
(
get_home_env
()
)
^
subdir
in
if
String
.
contains
s
'
*
'
then
Format
.
fprintf
fmt
" (glob_files %S)"
s
else
...
...
@@ -1914,7 +1925,8 @@ let () =
List
.
iter
(
fun
dir
->
Format
.
printf
"Test directory: %s@."
dir
;
let
absolute_tests_dir
=
Filename
.
dirname
(
if
Filename
.
is_relative
dir
then
Filename
.
concat
absolute_cwd
dir
else
dir
)
(
if
Filename
.
is_relative
dir
then
Filename
.
concat
absolute_cwd
dir
else
dir
)
in
let
suites
=
Ptests_config
.
parse
~
dir
in
if
!
verbosity
>=
1
then
Format
.
printf
"%% Nb config= %d@."
(
StringMap
.
cardinal
suites
);
...
...
This diff is collapsed.
Click to expand it.
src/plugins/wp/tests/why3/test_config_qualif
+
1
−
0
View file @
e69d03fd
FILEREG: .*\.why
DEPS: ~/.why3.conf
CMD: why3 -L @PTEST_SHARE_DIR@/why3 prove -P alt-ergo
OPT:
COMMENT: the filter remove the information about time and steps
...
...
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