2018-06-13 14:49:14 +00:00
|
|
|
CXXFLAGS += -Wall -Wextra -pedantic -O0 -g -std=c++11 -D_GLIBCXX_USE_NANOSLEEP=1 -I../libi2pd/ -pthread -Wl,--unresolved-symbols=ignore-in-object-files
|
2016-04-27 00:00:00 +00:00
|
|
|
|
2019-05-31 15:57:16 +00:00
|
|
|
TESTS = test-gost test-gost-sig test-base-64 test-x25519 test-aeadchacha20poly1305 test-blinding
|
2016-04-27 00:00:00 +00:00
|
|
|
|
|
|
|
all: $(TESTS) run
|
|
|
|
|
2017-04-21 10:33:45 +00:00
|
|
|
test-http-%: ../libi2pd/HTTP.cpp test-http-%.cpp
|
2016-06-28 00:00:00 +00:00
|
|
|
$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) -o $@ $^
|
|
|
|
|
2017-04-21 10:33:45 +00:00
|
|
|
test-base-%: ../libi2pd/Base.cpp test-base-%.cpp
|
2016-04-27 00:00:00 +00:00
|
|
|
$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) -o $@ $^
|
|
|
|
|
2017-04-21 10:33:45 +00:00
|
|
|
test-gost: ../libi2pd/Gost.cpp ../libi2pd/I2PEndian.cpp test-gost.cpp
|
2017-03-21 13:43:36 +00:00
|
|
|
$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) -o $@ $^ -lcrypto
|
|
|
|
|
2018-06-13 14:49:14 +00:00
|
|
|
test-gost-sig: ../libi2pd/Gost.cpp ../libi2pd/I2PEndian.cpp ../libi2pd/Crypto.cpp ../libi2pd/Log.cpp test-gost-sig.cpp
|
2018-06-12 22:29:06 +00:00
|
|
|
$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) -o $@ $^ -lcrypto -lssl -lboost_system
|
|
|
|
|
2018-06-13 14:49:14 +00:00
|
|
|
test-x25519: ../libi2pd/Ed25519.cpp ../libi2pd/I2PEndian.cpp ../libi2pd/Log.cpp ../libi2pd/Crypto.cpp test-x25519.cpp
|
2017-03-21 14:45:57 +00:00
|
|
|
$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) -o $@ $^ -lcrypto -lssl -lboost_system
|
|
|
|
|
2018-06-13 16:25:32 +00:00
|
|
|
test-aeadchacha20poly1305: ../libi2pd/Crypto.cpp ../libi2pd/ChaCha20.cpp ../libi2pd/Poly1305.cpp test-aeadchacha20poly1305.cpp
|
|
|
|
$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) -o $@ $^ -lcrypto -lssl -lboost_system
|
|
|
|
|
2019-05-31 15:57:16 +00:00
|
|
|
test-blinding: ../libi2pd/Crypto.cpp ../libi2pd/Blinding.cpp ../libi2pd/Ed25519.cpp ../libi2pd/I2PEndian.cpp ../libi2pd/Log.cpp ../libi2pd/util.cpp ../libi2pd/Identity.cpp ../libi2pd/Signature.cpp ../libi2pd/Timestamp.cpp test-blinding.cpp
|
|
|
|
$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) -o $@ $^ -lcrypto -lssl -lboost_system
|
|
|
|
|
2016-04-27 00:00:00 +00:00
|
|
|
run: $(TESTS)
|
|
|
|
@for TEST in $(TESTS); do ./$$TEST ; done
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(TESTS)
|