1
0
mirror of synced 2025-07-27 23:41:48 +03:00

Added google test framework.

This commit is contained in:
yhirose
2012-09-26 21:35:49 -04:00
parent 6818f18275
commit 4781156fa1
6 changed files with 28771 additions and 7 deletions

17
test/Makefile Normal file
View File

@ -0,0 +1,17 @@
USE_CLANG = 1
ifdef USE_CLANG
CC = clang++
CFLAGS = -std=c++0x -stdlib=libc++ -g -DGTEST_USE_OWN_TR1_TUPLE
else
CC = g++
CFLAGS = -std=c++11 -g
endif
test : test.cc ../httpsvrkit.h
$(CC) -o test $(CFLAGS) -I.. -I. test.cc gtest/gtest-all.cc gtest/gtest_main.cc
.PHONY : run
run: test
./test