mirror of
https://github.com/henrydcase/pqc.git
synced 2024-11-29 19:01:22 +00:00
Skip the prohibit-char test on Windows due to lack of cc
This commit is contained in:
parent
bfa8589f96
commit
4e47a0b513
@ -86,7 +86,6 @@ def ensure_available(executable):
|
|||||||
"""
|
"""
|
||||||
path = shutil.which(executable)
|
path = shutil.which(executable)
|
||||||
if path:
|
if path:
|
||||||
print("Found", path)
|
|
||||||
return path
|
return path
|
||||||
|
|
||||||
# Installing clang-tidy on LLVM will be too much of a mess.
|
# Installing clang-tidy on LLVM will be too much of a mess.
|
||||||
|
@ -7,8 +7,7 @@ This is ambiguous; compilers can freely choose `signed` or `unsigned` char.
|
|||||||
import pqclean
|
import pqclean
|
||||||
import pycparser
|
import pycparser
|
||||||
import os
|
import os
|
||||||
import unittest
|
import helpers
|
||||||
import shutil
|
|
||||||
|
|
||||||
|
|
||||||
def test_char():
|
def test_char():
|
||||||
@ -26,9 +25,8 @@ def walk_tree(ast):
|
|||||||
yield from walk_tree(child) # recursively yield prohibited nodes
|
yield from walk_tree(child) # recursively yield prohibited nodes
|
||||||
|
|
||||||
|
|
||||||
|
@helpers.skip_windows()
|
||||||
def check_char(implementation):
|
def check_char(implementation):
|
||||||
if not shutil.which('cpp'):
|
|
||||||
raise unittest.SkipTest("C pre-processor (cpp) was not found.")
|
|
||||||
errors = []
|
errors = []
|
||||||
for fname in os.listdir(implementation.path()):
|
for fname in os.listdir(implementation.path()):
|
||||||
if not fname.endswith(".c"):
|
if not fname.endswith(".c"):
|
||||||
|
Loading…
Reference in New Issue
Block a user