rpctest: Gate rpctest-based behind a build tag.

Contains upstream commits:
- 99165eb558
  - This is a NOOP since it was already done in Decred when porting the
    rpctest framework
- 754c4fbe0c

The merge commit also ports the necessary changes to run the tests in
the new Decred build setup.
This commit is contained in:
Dave Collins 2017-07-26 12:20:48 -05:00
commit ad21578d2f
No known key found for this signature in database
GPG Key ID: B8904D9D9C93D1F2
3 changed files with 10 additions and 1 deletions

View File

@ -3,6 +3,9 @@
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.
// This file is ignored during the regular tests due to the following build tag.
// +build rpctest
package main
import (

View File

@ -2,6 +2,10 @@
// Copyright (c) 2017 The Decred developers
// Use of this source code is governed by an ISC
// license that can be found in the LICENSE file.
// This file is ignored during the regular tests due to the following build tag.
// +build rpctest
package rpctest
import (

View File

@ -26,7 +26,9 @@ TESTCMD="test -z \"\$(gometalinter --disable-all \
--enable=unconvert \
--vendor \
--deadline=10m . | tee /dev/stderr)\"&& \
env GORACE='halt_on_error=1' go test -short -race \$(glide novendor)"
env GORACE='halt_on_error=1' go test -short -race \
-tags rpctest \
\$(glide novendor)"
if [ $GOVERSION == "local" ]; then
eval $TESTCMD