mirror of
https://github.com/henrydcase/pqc.git
synced 2024-11-22 23:48:58 +00:00
Move tests to separate directory
This commit is contained in:
parent
9760f45a46
commit
e61a320aed
7
Makefile
7
Makefile
@ -7,12 +7,12 @@ default: help
|
|||||||
|
|
||||||
.PHONY: require_scheme
|
.PHONY: require_scheme
|
||||||
require_scheme:
|
require_scheme:
|
||||||
# assumes a SCHEME variable; e.g. make functest_kem SCHEME=crypto_kem/kyber768
|
# assumes a SCHEME variable; e.g. make functest SCHEME=crypto_kem/kyber768
|
||||||
ifndef SCHEME
|
ifndef SCHEME
|
||||||
$(error The SCHEME variable is not set. Example: SCHEME=crypto_kem/kyber768)
|
$(error The SCHEME variable is not set. Example: SCHEME=crypto_kem/kyber768)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
bin/functest_$(subst /,_,$(SCHEME)): $(dir $(SCHEME))test.c $(wildcard $(SCHEME)/clean/*.c) $(wildcard $(SCHEME)/clean/*.h) | require_scheme
|
bin/functest_$(subst /,_,$(SCHEME)): test/$(dir $(SCHEME))functest.c $(wildcard $(SCHEME)/clean/*.c) $(wildcard $(SCHEME)/clean/*.h) | require_scheme
|
||||||
mkdir -p bin
|
mkdir -p bin
|
||||||
$(CC) $(CFLAGS) \
|
$(CC) $(CFLAGS) \
|
||||||
-iquote "./common/" \
|
-iquote "./common/" \
|
||||||
@ -29,7 +29,7 @@ functest: bin/functest_$(subst /,_,$(SCHEME))
|
|||||||
run-functest: bin/functest_$(subst /,_,$(SCHEME))
|
run-functest: bin/functest_$(subst /,_,$(SCHEME))
|
||||||
./$<
|
./$<
|
||||||
|
|
||||||
bin/testvectors_$(subst /,_,$(SCHEME)): $(dir $(SCHEME))testvectors.c $(wildcard $(SCHEME)/clean/*.c) $(wildcard $(SCHEME)/clean/*.h) | require_scheme
|
bin/testvectors_$(subst /,_,$(SCHEME)): test/$(dir $(SCHEME))testvectors.c $(wildcard $(SCHEME)/clean/*.c) $(wildcard $(SCHEME)/clean/*.h) | require_scheme
|
||||||
mkdir -p bin
|
mkdir -p bin
|
||||||
$(CC) $(CFLAGS) \
|
$(CC) $(CFLAGS) \
|
||||||
-iquote "./common/" \
|
-iquote "./common/" \
|
||||||
@ -69,7 +69,6 @@ do-tidy: require_scheme
|
|||||||
clang-tidy \
|
clang-tidy \
|
||||||
-quiet $(.TIDY_FIX) \
|
-quiet $(.TIDY_FIX) \
|
||||||
$(SCHEME)/clean/*.c \
|
$(SCHEME)/clean/*.c \
|
||||||
$(SCHEME)/../test.c \
|
|
||||||
common/*.c \
|
common/*.c \
|
||||||
-- -iquote "common/" -iquote "$(SCHEME)/clean"
|
-- -iquote "common/" -iquote "$(SCHEME)/clean"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user