integration: Add recursive it target

This commit is contained in:
Tatsuhiro Tsujikawa 2015-01-20 21:19:52 +09:00
parent 9ab71305d1
commit 6e446934d4
6 changed files with 10 additions and 3 deletions

View File

@ -49,6 +49,7 @@ AC_CANONICAL_TARGET
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([subdir-objects])
AM_EXTRA_RECURSIVE_TARGETS([it])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])

View File

@ -25,5 +25,5 @@ EXTRA_DIST = \
nghttpx_test.go \
server_tester.go
it:
sh setenv go test
it-local:
sh setenv go test -v

View File

@ -102,7 +102,7 @@ func newServerTester(args []string, t *testing.T, handler http.HandlerFunc) *ser
conn, err := net.Dial("tcp", fmt.Sprintf("127.0.0.1:%v", serverPort))
if err != nil {
retry += 1
if retry >= 10 {
if retry >= 100 {
st.t.Fatalf("Error server is not responding too long; server command-line arguments may be invalid")
}
time.Sleep(150 * time.Millisecond)

View File

@ -63,3 +63,5 @@ HFILES = nghttp2_pq.h nghttp2_int.h nghttp2_map.h nghttp2_queue.h \
libnghttp2_la_SOURCES = $(HFILES) $(OBJECTS)
libnghttp2_la_LDFLAGS = -no-undefined \
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
it-local: all

View File

@ -198,3 +198,5 @@ libnghttp2_asio_la_LDFLAGS = \
libnghttp2_asio_la_LIBADD = $(top_builddir)/lib/libnghttp2.la
endif # ENABLE_ASIO_LIB
it-local: all

View File

@ -27,3 +27,5 @@ noinst_LTLIBRARIES = libhttp-parser.la
libhttp_parser_la_SOURCES = \
http-parser/http_parser.c \
http-parser/http_parser.h
it-local: all