Fix a few nits (#107)
* Minor changes * Gracefully degrade if clang-tidy segfaults * Typo on returncode
This commit is contained in:
parent
5b0174d282
commit
0bc19b3633
@ -1,9 +1,9 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "thash.h"
|
|
||||||
#include "address.h"
|
#include "address.h"
|
||||||
#include "params.h"
|
#include "params.h"
|
||||||
|
#include "thash.h"
|
||||||
|
|
||||||
#include "fips202.h"
|
#include "fips202.h"
|
||||||
|
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "utils.h"
|
|
||||||
#include "address.h"
|
#include "address.h"
|
||||||
#include "hash.h"
|
#include "hash.h"
|
||||||
#include "params.h"
|
#include "params.h"
|
||||||
#include "thash.h"
|
#include "thash.h"
|
||||||
|
#include "utils.h"
|
||||||
#include "wots.h"
|
#include "wots.h"
|
||||||
|
|
||||||
// TODO clarify address expectations, and make them more uniform.
|
// TODO clarify address expectations, and make them more uniform.
|
||||||
|
@ -114,8 +114,10 @@ def permit_test(testname, thing, **args):
|
|||||||
|
|
||||||
if isinstance(thing, pqclean.Implementation):
|
if isinstance(thing, pqclean.Implementation):
|
||||||
scheme = thing.scheme
|
scheme = thing.scheme
|
||||||
else:
|
elif isinstance(thing, pqclean.Scheme):
|
||||||
scheme = thing
|
scheme = thing
|
||||||
|
else:
|
||||||
|
return True
|
||||||
|
|
||||||
if 'PQCLEAN_ONLY_TYPES' in os.environ:
|
if 'PQCLEAN_ONLY_TYPES' in os.environ:
|
||||||
if not(scheme.type.lower() in os.environ['PQCLEAN_ONLY_TYPES'].lower().split(',')):
|
if not(scheme.type.lower() in os.environ['PQCLEAN_ONLY_TYPES'].lower().split(',')):
|
||||||
|
@ -12,7 +12,7 @@ import helpers
|
|||||||
def test_common():
|
def test_common():
|
||||||
for d in os.listdir('common'):
|
for d in os.listdir('common'):
|
||||||
primitive = re.sub(r"\.c$", "", d)
|
primitive = re.sub(r"\.c$", "", d)
|
||||||
yield check_common, primitive
|
if helpers.permit_test('common', None): yield check_common, primitive
|
||||||
|
|
||||||
|
|
||||||
def check_common(primitive):
|
def check_common(primitive):
|
||||||
|
Loading…
Reference in New Issue
Block a user