mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-27 11:17:49 +02:00
GOST signature unit test added
This commit is contained in:
parent
7a51abc2f9
commit
13aab750dd
4 changed files with 36 additions and 5 deletions
|
@ -1,7 +1,6 @@
|
|||
CXXFLAGS += -Wall -Wextra -pedantic -O0 -g -std=c++11 -D_GLIBCXX_USE_NANOSLEEP=1
|
||||
|
||||
TESTS = test-gost test-http-url test-http-req test-http-res test-http-url_decode \
|
||||
test-http-merge_chunked test-base-64
|
||||
TESTS = test-gost test-gost-sig test-base-64
|
||||
|
||||
all: $(TESTS) run
|
||||
|
||||
|
@ -11,9 +10,12 @@ test-http-%: ../HTTP.cpp test-http-%.cpp
|
|||
test-base-%: ../Base.cpp test-base-%.cpp
|
||||
$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) -o $@ $^
|
||||
|
||||
test-gost: ../Gost.cpp test-gost.cpp
|
||||
test-gost: ../Gost.cpp ../I2PEndian.cpp test-gost.cpp
|
||||
$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) -o $@ $^ -lcrypto
|
||||
|
||||
test-gost-sig: ../Gost.cpp ../I2PEndian.cpp ../Signature.cpp ../Crypto.cpp ../Log.cpp test-gost-sig.cpp
|
||||
$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) -o $@ $^ -lcrypto -lssl -lboost_system
|
||||
|
||||
run: $(TESTS)
|
||||
@for TEST in $(TESTS); do ./$$TEST ; done
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue