1
1
mirror of https://github.com/henrydcase/pqc.git synced 2024-11-22 23:48:58 +00:00

Remove old license check and reduce re-building

This commit is contained in:
Douglas Stebila 2019-02-14 11:36:24 -05:00
parent e4c368ee49
commit ba359473b9
5 changed files with 5 additions and 17 deletions

View File

@ -8,7 +8,7 @@ matrix:
os: linux os: linux
compiler: gcc compiler: gcc
env: env:
- MAKETARGET="test-all tidy-all check-format check-metadata check-license-files" - MAKETARGET="test-all tidy-all check-format check-metadata"
addons: addons:
apt: apt:
packages: packages:

View File

@ -175,14 +175,6 @@ run-sanitizer-all: sanitizer-all
done done
@echo Tests completed @echo Tests completed
.PHONY: check-license-files
check-license-files:
@echo Checking that LICENSE files exist
@for scheme in $(ALL_SCHEMES); do \
echo Checking for $$scheme/clean/LICENSE;\
test -f $$scheme/clean/LICENSE || exit 1 ;\
done
.PHONY: test-all .PHONY: test-all
test-all: run-functest-all run-valgrind-all run-sanitizer-all run-testvectors-all test-all: run-functest-all run-valgrind-all run-sanitizer-all run-testvectors-all

View File

@ -13,6 +13,10 @@ def test_compile_lib():
def check_compile_lib(scheme_name, implementation_name): def check_compile_lib(scheme_name, implementation_name):
implementation = pqclean.Implementation.by_name(scheme_name, implementation_name) implementation = pqclean.Implementation.by_name(scheme_name, implementation_name)
helpers.run_subprocess(
['make', 'clean'],
implementation.path()
)
helpers.run_subprocess( helpers.run_subprocess(
['make'], ['make'],
implementation.path() implementation.path()

View File

@ -13,10 +13,6 @@ def test_functest():
def check_functest(scheme_name, implementation_name): def check_functest(scheme_name, implementation_name):
implementation = pqclean.Implementation.by_name(scheme_name, implementation_name) implementation = pqclean.Implementation.by_name(scheme_name, implementation_name)
helpers.run_subprocess(
['make', 'clean', 'TYPE=' + implementation.scheme.type, 'SCHEME=' + scheme_name, 'IMPLEMENTATION=' + implementation_name],
os.path.join('..', 'test')
)
helpers.run_subprocess( helpers.run_subprocess(
['make', 'TYPE=' + implementation.scheme.type, 'SCHEME=' + scheme_name, 'IMPLEMENTATION=' + implementation_name], ['make', 'TYPE=' + implementation.scheme.type, 'SCHEME=' + scheme_name, 'IMPLEMENTATION=' + implementation_name],
os.path.join('..', 'test') os.path.join('..', 'test')

View File

@ -16,10 +16,6 @@ def test_symbol_namespace():
def check_symbol_namespace(scheme_name, implementation_name): def check_symbol_namespace(scheme_name, implementation_name):
implementation = pqclean.Implementation.by_name(scheme_name, implementation_name) implementation = pqclean.Implementation.by_name(scheme_name, implementation_name)
helpers.run_subprocess(
['make', 'clean'],
implementation.path()
)
helpers.run_subprocess( helpers.run_subprocess(
['make'], ['make'],
implementation.path() implementation.path()