mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-27 11:17:49 +02:00
* unit-tests
This commit is contained in:
parent
06a1a8690d
commit
a15aad9f9c
5 changed files with 262 additions and 0 deletions
14
tests/Makefile
Normal file
14
tests/Makefile
Normal file
|
@ -0,0 +1,14 @@
|
|||
CXXFLAGS += -Wall -Wextra -pedantic -O0 -g -std=c++11 -D_GLIBCXX_USE_NANOSLEEP=1
|
||||
|
||||
TESTS = test-http-url test-http-req test-http-res test-http-url_decode
|
||||
|
||||
all: $(TESTS) run
|
||||
|
||||
test-http-%: test-http-%.cpp ../HTTP.cpp
|
||||
$(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) -o $@ $^
|
||||
|
||||
run: $(TESTS)
|
||||
@for TEST in $(TESTS); do ./$$TEST ; done
|
||||
|
||||
clean:
|
||||
rm -f $(TESTS)
|
Loading…
Add table
Add a link
Reference in a new issue