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
a158167d
Commit
a158167d
authored
4 years ago
by
Patrick Baudin
Browse files
Options
Downloads
Patches
Plain Diff
[Ptests] defined with a plublic_name for external plugins
parent
a3f26626
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
Makefile
+8
-7
8 additions, 7 deletions
Makefile
ptests/dune
+1
-0
1 addition, 0 deletions
ptests/dune
with
9 additions
and
7 deletions
Makefile
+
8
−
7
View file @
a158167d
...
@@ -215,21 +215,22 @@ purge-tests:
...
@@ -215,21 +215,22 @@ purge-tests:
clean-tests
:
purge-tests
clean-tests
:
purge-tests
rm
-rf
_build/default/tests
rm
-rf
_build/default/tests
PTESTS
=
./ptests.exe
# Command for executing ptest (in order to generate dune test files)
#PTESTS=./ptests.exe -v
PTESTS
=
dune
exec
--root
ptests
--
./ptests.exe
#PTESTS=.dune exec --root ptests -- /ptests.exe -v
tests.info
:
tests.info
:
echo
$(
TEST_CONFIGS
)
echo
$(
TEST_CONFIGS
)
run-tests
:
FRAMAC_WP_CACHE=replay
run-tests
:
FRAMAC_WP_CACHE=replay
run-tests
:
config.sed purge-tests
run-tests
:
config.sed purge-tests
ptests/ptests.exe
dune
exec
--root
ptests
--
$(
PTESTS
)
tests
$(
PTESTS
)
tests
for
config
in
$(
TEST_CONFIGS
);
do
\
for
config
in
$(
TEST_CONFIGS
);
do
\
test
-f
tests/ptests_
$$
config
||
echo
"Warning: use default ptests_config (no file: tests/ptests_config_
$$
config)"
;
\
test
-f
tests/ptests_
$$
config
||
echo
"Warning: use default ptests_config (no file: tests/ptests_config_
$$
config)"
;
\
dune
exec
--root
ptests
--
$(
PTESTS
)
tests
-config
$$
config
;
\
$(
PTESTS
)
tests
-config
$$
config
;
\
done
done
for
plugin
in
$(
PLUGIN_TEST_DIRS
);
do
\
for
plugin
in
$(
PLUGIN_TEST_DIRS
);
do
\
dune
exec
--root
ptests
--
$(
PTESTS
)
$$
plugin
;
\
$(
PTESTS
)
$$
plugin
;
\
done
done
rm
tests/spec/result/dune
# HACK while WP problem is not solved
rm
tests/spec/result/dune
# HACK while WP problem is not solved
for
plugin
in
$(
PLUGIN_CONFIGS
);
do
\
for
plugin
in
$(
PLUGIN_CONFIGS
);
do
\
...
@@ -237,7 +238,7 @@ run-tests: config.sed purge-tests
...
@@ -237,7 +238,7 @@ run-tests: config.sed purge-tests
config_name
=
$$(
echo
$$
plugin |
sed
-e
"s/^[^:]*://"
);
\
config_name
=
$$(
echo
$$
plugin |
sed
-e
"s/^[^:]*://"
);
\
config_file
=
$$
plugin_dir/ptests_config_
$$
config_name
;
\
config_file
=
$$
plugin_dir/ptests_config_
$$
config_name
;
\
test
-f
$$
config_file
||
echo
"Warning: use default ptests_config (no file:
$$(
config_file
)
)"
;
\
test
-f
$$
config_file
||
echo
"Warning: use default ptests_config (no file:
$$(
config_file
)
)"
;
\
dune
exec
--root
ptests
--
$(
PTESTS
)
$$
plugin_dir
-config
$$
config_name
;
\
$(
PTESTS
)
$$
plugin_dir
-config
$$
config_name
;
\
done
done
dune build
$(
TEST_ALIAS
)
dune build
$(
TEST_ALIAS
)
...
...
This diff is collapsed.
Click to expand it.
ptests/dune
+
1
−
0
View file @
a158167d
(executable
(executable
(public_name ptests)
(name ptests)
(name ptests)
(modules ptests)
(modules ptests)
(libraries unix str)
(libraries unix str)
...
...
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