Bläddra i källkod

Merge pull request #114 from PQClean/sanitizer_fixes

Clean up some aspects of the tests and made NTRU-HPS code files not executable.
master
Thom Wiggers 5 år sedan
committed by GitHub
förälder
incheckning
f17d739181
Ingen känd nyckel hittad för denna signaturen i databasen GPG-nyckel ID: 4AEE18F83AFDEB23
16 ändrade filer med 20 tillägg och 17 borttagningar
  1. +0
    -0
     
  2. +0
    -0
     
  3. +0
    -0
     
  4. +0
    -0
     
  5. +0
    -0
     
  6. +0
    -0
     
  7. +0
    -0
     
  8. +0
    -0
     
  9. +0
    -0
     
  10. +0
    -0
     
  11. +0
    -0
     
  12. +0
    -0
     
  13. +0
    -0
     
  14. +0
    -0
     
  15. +0
    -0
     
  16. +20
    -17
      test/test_functest.py

+ 0
- 0
Visa fil


+ 0
- 0
Visa fil


+ 0
- 0
Visa fil


+ 0
- 0
Visa fil


+ 0
- 0
Visa fil


+ 0
- 0
Visa fil


+ 0
- 0
Visa fil


+ 0
- 0
Visa fil


+ 0
- 0
Visa fil


+ 0
- 0
Visa fil


+ 0
- 0
Visa fil


+ 0
- 0
Visa fil


+ 0
- 0
Visa fil


+ 0
- 0
Visa fil


+ 0
- 0
Visa fil


+ 20
- 17
test/test_functest.py Visa fil

@@ -53,29 +53,32 @@ def check_functest_sanitizers(implementation):
else:
print("Supported platform: {}".format(platform.machine()))

helpers.ensure_available('valgrind')
helpers.make('clean-scheme', 'functest',
TYPE=implementation.scheme.type,
SCHEME=implementation.scheme.name,
IMPLEMENTATION=implementation.name,
EXTRAFLAGS='-fsanitize=address,undefined',
EXTRAFLAGS='-g -fsanitize=address,undefined',
working_dir=os.path.join('..', 'test'),
env=env)
helpers.run_subprocess(
[os.path.join('..', 'bin', 'functest_{}_{}{}'.format(
implementation.scheme.name,
implementation.name,
'.exe' if os.name == 'nt' else ''
))],
os.path.join('..', 'bin'),
env=env,
)
# Remove files with ASAN library compiled in
helpers.make('clean-scheme',
TYPE=implementation.scheme.type,
SCHEME=implementation.scheme.name,
IMPLEMENTATION=implementation.name,
working_dir=os.path.join('..', 'test'))
try:
helpers.run_subprocess(
[os.path.join('..', 'bin', 'functest_{}_{}{}'.format(
implementation.scheme.name,
implementation.name,
'.exe' if os.name == 'nt' else ''
))],
os.path.join('..', 'bin'),
env=env,
)
except AssertionError as e:
raise e
finally:
# Remove files with ASAN library compiled in
helpers.make('clean-scheme',
TYPE=implementation.scheme.type,
SCHEME=implementation.scheme.name,
IMPLEMENTATION=implementation.name,
working_dir=os.path.join('..', 'test'))


if __name__ == '__main__':


Laddar…
Avbryt
Spara