mirror of
https://github.com/FlipsideCrypto/dcrd.git
synced 2026-02-06 10:56:47 +00:00
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 -754c4fbe0cThe merge commit also ports the necessary changes to run the tests in the new Decred build setup.
This commit is contained in:
commit
ad21578d2f
@ -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 (
|
||||
|
||||
@ -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 (
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user