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
345efd8f
Commit
345efd8f
authored
3 years ago
by
Andre Maroneze
Browse files
Options
Downloads
Patches
Plain Diff
[tests] compliance: ensure compatibility with dune
parent
79c24221
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
tests/compliance/check-json.i
+1
-1
1 addition, 1 deletion
tests/compliance/check-json.i
tests/compliance/oracle/json_check-json_5.txt
+2
-2
2 additions, 2 deletions
tests/compliance/oracle/json_check-json_5.txt
tests/compliance/sanity-checks.py
+2
-2
2 additions, 2 deletions
tests/compliance/sanity-checks.py
with
5 additions
and
5 deletions
tests/compliance/check-json.i
+
1
−
1
View file @
345efd8f
/*run.config
MACRO: SHARE @
PTEST
_SHARE
_DIR
@/compliance
MACRO: SHARE @
FRAMAC
_SHARE@/compliance
NOFRAMAC:
EXECNOW: LOG json_@PTEST_NAME@_1.txt python3 -m json.tool < @SHARE@/c11_functions.json | head -n 2 > @PTEST_RESULT@/json_@PTEST_NAME@_1.txt 2> @DEV_NULL@
EXECNOW: LOG json_@PTEST_NAME@_2.txt python3 -m json.tool < @SHARE@/glibc_functions.json | head -n 2 > @PTEST_RESULT@/json_@PTEST_NAME@_2.txt 2> @DEV_NULL@
...
...
This diff is collapsed.
Click to expand it.
tests/compliance/oracle/json_check-json_5.txt
+
2
−
2
View file @
345efd8f
../../../share/compliance/
posix_identifiers.json checked.
../../../share/compliance/
c11_functions.json checked.
posix_identifiers.json checked.
c11_functions.json checked.
This diff is collapsed.
Click to expand it.
tests/compliance/sanity-checks.py
+
2
−
2
View file @
345efd8f
...
...
@@ -36,7 +36,7 @@ with open(posix_ids_path) as data:
unknown_exts
=
exts
-
extension_names
if
unknown_exts
:
sys
.
exit
(
f
"
error: unknown extension(s)
{
unknown_exts
}
for id
{
i
}
"
)
print
(
f
"
{
posix_ids_path
}
checked.
"
)
print
(
f
"
{
posix_ids_path
.
name
}
checked.
"
)
c11_headers_path
=
Path
(
compliance_dir
)
/
"
c11_headers.json
"
c11_headers
=
[]
...
...
@@ -71,4 +71,4 @@ for (i, v) in c11_funs.items():
posix_header
=
posix_dict
[
i
][
"
header
"
]
if
header
!=
posix_header
:
sys
.
exit
(
f
"
error: C11 function
{
i
}
mapped to header
{
header
}
, but in POSIX it is mapped to header
{
posix_header
}
"
)
print
(
f
"
{
c11_funs_path
}
checked.
"
)
print
(
f
"
{
c11_funs_path
.
name
}
checked.
"
)
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