Skip to content
Snippets Groups Projects
Commit 345efd8f authored by Andre Maroneze's avatar Andre Maroneze
Browse files

[tests] compliance: ensure compatibility with dune

parent 79c24221
No related branches found
No related tags found
No related merge requests found
/*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@
......
../../../share/compliance/posix_identifiers.json checked.
../../../share/compliance/c11_functions.json checked.
posix_identifiers.json checked.
c11_functions.json checked.
......@@ -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.")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment