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
cf644b57
Commit
cf644b57
authored
2 years ago
by
Allan Blanchard
Browse files
Options
Downloads
Patches
Plain Diff
[ptests] changes Makefile.testing variables
- more intuitive name for tests directories - single way to build PTEST_ALIASES
parent
00452ff7
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
Makefile
+3
-0
3 additions, 0 deletions
Makefile
share/Makefile.testing
+7
-8
7 additions, 8 deletions
share/Makefile.testing
with
10 additions
and
8 deletions
Makefile
+
3
−
0
View file @
cf644b57
...
@@ -209,6 +209,9 @@ FRAMAC_PTESTS:=ptests/ptests.exe
...
@@ -209,6 +209,9 @@ FRAMAC_PTESTS:=ptests/ptests.exe
# WTESTS is internal
# WTESTS is internal
FRAMAC_WTESTS
:=
ptests/wtests.exe
FRAMAC_WTESTS
:=
ptests/wtests.exe
# Frama-C also have ptest directories in plugins, so we do not use default
PTEST_ALL_DIRS
:=
tests
$(
wildcard src/plugins/
*
/tests
)
# Part that can be shared for external plugins
# Part that can be shared for external plugins
include
share/Makefile.testing
include
share/Makefile.testing
...
...
This diff is collapsed.
Click to expand it.
share/Makefile.testing
+
7
−
8
View file @
cf644b57
...
@@ -28,9 +28,10 @@
...
@@ -28,9 +28,10 @@
## Default variables
## Default variables
# Defines where to find the ptest_config files
# Defines where to find the ptest_config files
PURGED_PTEST_DIRS
?=
tests
$(
wildcard src/plugins/
*
/tests
)
# Default: only consider tests directory, it can be customized via the variable
PTEST_ALL_DIRS
?=
tests
PTEST_OPTS
?=
PTEST_OPTS
?=
PTEST_DIRS
?=
$(
P
URGED_P
TEST_DIRS
)
PTEST_DIRS
?=
$(
PTEST
_ALL
_DIRS
)
############
############
# Default values necessary for make -f <this-makefile>
# Default values necessary for make -f <this-makefile>
...
@@ -49,9 +50,7 @@ endif
...
@@ -49,9 +50,7 @@ endif
##########################################################################
##########################################################################
# Defines the related dune targets
# Defines the related dune targets
PTEST_ALIASES
=
$(
addsuffix /ptests,
$(
addprefix @, tests src/plugins
))
PTEST_ALIASES
=
$(
addsuffix /ptests,
$(
addprefix @,
$(
PTEST_DIRS
)))
# TODO: uncomments when a dune file is at least generated for all PTEST_DIRS
#PTEST_ALIASES=$(addsuffix /ptests,$(addprefix @,$(PTEST_DIRS)))
.PHONY
:
tests.info
.PHONY
:
tests.info
tests.info
:
tests.info
:
...
@@ -59,7 +58,7 @@ tests.info:
...
@@ -59,7 +58,7 @@ tests.info:
echo
"WTESTS='
$(
WTESTS
)
'"
echo
"WTESTS='
$(
WTESTS
)
'"
echo
"FRAMAC_PTESTS='
$(
FRAMAC_PTESTS
)
'"
echo
"FRAMAC_PTESTS='
$(
FRAMAC_PTESTS
)
'"
echo
"PTESTS='
$(
PTESTS
)
'"
echo
"PTESTS='
$(
PTESTS
)
'"
echo
"P
URGED_PTEST_DIRS='
$(
PURGED_PTEST
_DIRS
)
'"
echo
"P
TEST_ALL_DIRS='
$(
PTEST_ALL
_DIRS
)
'"
echo
"PTEST_DIRS='
$(
PTEST_DIRS
)
'"
echo
"PTEST_DIRS='
$(
PTEST_DIRS
)
'"
echo
"PTEST_OPTS='
$(
PTEST_OPTS
)
'"
echo
"PTEST_OPTS='
$(
PTEST_OPTS
)
'"
echo
"PTEST_ALIASES='
$(
PTEST_ALIASES
)
'"
echo
"PTEST_ALIASES='
$(
PTEST_ALIASES
)
'"
...
@@ -119,14 +118,14 @@ wtests-help:
...
@@ -119,14 +118,14 @@ wtests-help:
.PHONY
:
purge-tests
.PHONY
:
purge-tests
purge-tests
:
purge-tests
:
find
$(
P
URGED_P
TEST_DIRS
)
-name
dune
\
find
$(
PTEST
_ALL
_DIRS
)
-name
dune
\
|
$(
GREP
)
-e
"/oracle.*/dune
\|
/result.*/dune"
\
|
$(
GREP
)
-e
"/oracle.*/dune
\|
/result.*/dune"
\
|
$(
XARGS
)
-n
10
$(
RM
)
|
$(
XARGS
)
-n
10
$(
RM
)
# Force the full cleaning of the testing environment
# Force the full cleaning of the testing environment
.PHONY
:
clean-tests
.PHONY
:
clean-tests
clean-tests
:
purge-tests
clean-tests
:
purge-tests
$(
RMDIR
)
$(
addprefix _build/default/,
$(
P
URGED_P
TEST_DIRS
))
$(
RMDIR
)
$(
addprefix _build/default/,
$(
PTEST
_ALL
_DIRS
))
##########################################################################
##########################################################################
## Generates all dune files used for testing
## Generates all dune files used for testing
...
...
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