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
e17624a9
Commit
e17624a9
authored
1 year ago
by
Virgile Prevosto
Browse files
Options
Downloads
Patches
Plain Diff
[tests] Much simpler approach to ensure test_machdep.i is always in test dir
parent
9353b8e0
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
tests/fc_script/test_machdep.i
+5
-3
5 additions, 3 deletions
tests/fc_script/test_machdep.i
tests/fc_script/test_machdep_dummy.i
+0
-9
0 additions, 9 deletions
tests/fc_script/test_machdep_dummy.i
with
5 additions
and
12 deletions
tests/fc_script/test_machdep.i
+
5
−
3
View file @
e17624a9
/* run.config
NOFRAMAC: Just test the generation of a custom machdep with the installed script.
COMMENT: No C code gets analyzed there. File is empty on purpose
COMMENT: WARNING: be sure to keep the ENABLED_IF below in sync with test_machdep_dummy.i
COMMENT: a disabled file is not copied, and some _other_ tests contain in their oracles
COMMENT: the number of .{ci} files in the directory...
COMMENT: be sure to keep the first EXECNOW: it ensures
COMMENT: that dune will copy the file regardless of the environment
COMMENT: so that other tests whose oracles depend on the number of file in
COMMENT: the directory will be stable.
EXECNOW: LOG empty.res touch empty.res
ENABLED_IF: (and %{bin-available:clang} %{bin-available:yq})
FILTER: sed -e '/^version:/d'
EXECNOW: LOG custom_machdep.yaml LOG make_machdep.err.log PTESTS_TESTING=1 %{bin:frama-c-script} make-machdep --compiler clang --cpp-arch-flags='--target=x86_64' | yq -Y 'del(.version)|del(.custom_defs)' > custom_machdep.yaml 2> make_machdep.err.log
...
...
This diff is collapsed.
Click to expand it.
tests/fc_script/test_machdep_dummy.i
deleted
100644 → 0
+
0
−
9
View file @
9353b8e0
/* run.config
NOFRAMAC: Just test the generation of a custom machdep with the installed script.
COMMENT: This is just a placeholder file for test_machdep.i when clang or yq is unavailable.
COMMENT: In that case, we don't do the test, but still need to copy a .i file
COMMENT: to keep the number of files inspected by fc-script identical.
COMMENT: WARNING: be sure to keep the ENABLED_IF below in sync with test_machdep.i
ENABLED_IF: (or (not %{bin-available:clang}) (not %{bin-available:yq}))
EXECNOW: LOG test.res touch test.res
*/
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