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
e09bd822
Commit
e09bd822
authored
3 years ago
by
Patrick Baudin
Browse files
Options
Downloads
Patches
Plain Diff
[ptests] allows and removes dune features from the test commands
parent
0a31930f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ptests/ptests.ml
+6
-1
6 additions, 1 deletion
ptests/ptests.ml
with
6 additions
and
1 deletion
ptests/ptests.ml
+
6
−
1
View file @
e09bd822
...
...
@@ -1357,7 +1357,9 @@ end = struct
let
get_ptest_file
cmd
=
SubDir
.
make_file
cmd
.
directory
cmd
.
file
let
expand_macros
~
defaults
cmd
=
let
expand_macros
=
let
dune_cmd_features
=
Str
.
regexp
"%{[a-z][a-z-]*:
\\
([^}]*
\\
)}"
in
fun
~
defaults
cmd
->
let
ptest_config
=
if
!
special_config
=
""
then
""
else
"_"
^
!
special_config
in
...
...
@@ -1409,6 +1411,9 @@ end = struct
end
else
toplevel
in
let
toplevel
=
(* removes dune feature such as %{deps:...} *)
str_global_replace
dune_cmd_features
"
\\
1"
toplevel
in
{
cmd
with
macros
;
toplevel
;
...
...
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