Run nghttpx integration test with cmake build
Run nghttpx integration test with cmake build. Autotools build erases artifacts for packaging tests, so we cannot run nghttpx integration test with autotools build at the moment. Relay on go modules to download dependencies.
This commit is contained in:
parent
9a17c3efc6
commit
fc591d0cd6
12
.travis.yml
12
.travis.yml
|
@ -78,11 +78,11 @@ script:
|
||||||
fi
|
fi
|
||||||
- |
|
- |
|
||||||
if [ "$CI_BUILD" = "cmake" ]; then
|
if [ "$CI_BUILD" = "cmake" ]; then
|
||||||
|
make
|
||||||
make check
|
make check
|
||||||
|
# Integration tests for nghttpx; autotools build erases build
|
||||||
|
# for packaging test.
|
||||||
|
cd integration-tests
|
||||||
|
export GO111MODULE=on
|
||||||
|
make it
|
||||||
fi
|
fi
|
||||||
# As of April, 23, 2016, golang http2 build fails, probably because
|
|
||||||
# the default go version is too old.
|
|
||||||
# - cd integration-tests
|
|
||||||
# - export GOPATH="$PWD/integration-tests/golang"
|
|
||||||
# - make itprep
|
|
||||||
# - make it
|
|
||||||
|
|
|
@ -323,12 +323,7 @@ its testing framework. We depend on the following libraries:
|
||||||
* golang.org/x/net/websocket
|
* golang.org/x/net/websocket
|
||||||
* https://github.com/tatsuhiro-t/go-nghttp2
|
* https://github.com/tatsuhiro-t/go-nghttp2
|
||||||
|
|
||||||
To download the above packages, after settings ``GOPATH``, run the
|
Go modules will download these dependencies automatically.
|
||||||
following command under ``integration-tests`` directory:
|
|
||||||
|
|
||||||
.. code-block:: text
|
|
||||||
|
|
||||||
$ make itprep
|
|
||||||
|
|
||||||
To run the tests, run the following command under
|
To run the tests, run the following command under
|
||||||
``integration-tests`` directory:
|
``integration-tests`` directory:
|
||||||
|
|
|
@ -39,11 +39,6 @@ EXTRA_DIST = \
|
||||||
req-return.rb \
|
req-return.rb \
|
||||||
resp-return.rb
|
resp-return.rb
|
||||||
|
|
||||||
itprep:
|
|
||||||
go get -d -v golang.org/x/net/http2
|
|
||||||
go get -d -v github.com/tatsuhiro-t/go-nghttp2
|
|
||||||
go get -d -v golang.org/x/net/websocket
|
|
||||||
|
|
||||||
it:
|
it:
|
||||||
for i in $(GO_FILES); do [ -e $(builddir)/$$i ] || cp $(srcdir)/$$i $(builddir); done
|
for i in $(GO_FILES); do [ -e $(builddir)/$$i ] || cp $(srcdir)/$$i $(builddir); done
|
||||||
sh setenv go test -v
|
sh setenv go test -v
|
||||||
|
|
Loading…
Reference in New Issue