mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-07 05:46:32 +00:00
test: add GitHub action for end-to-end tests (#5452)
Partial fix for #5291.
This commit is contained in:
committed by
Erik Grinaker
parent
64b0f5b363
commit
4b3565fcaa
@@ -36,6 +36,8 @@ The test runner has the following stages, which can also be executed explicitly
|
||||
|
||||
* `logs`: outputs all node logs.
|
||||
|
||||
* `tail`: tails (follows) node logs until cancelled.
|
||||
|
||||
## Tests
|
||||
|
||||
Test cases are written as normal Go tests in `tests/`. They use a `testNode()` helper which executes each test as a parallel subtest for each node in the network.
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
# instead of spending time compiling them.
|
||||
FROM golang:1.15
|
||||
|
||||
RUN apt-get update -y && apt-get upgrade -y
|
||||
RUN apt-get install -y libleveldb-dev librocksdb-dev
|
||||
RUN apt-get -qq update -y && apt-get -qq upgrade -y >/dev/null
|
||||
RUN apt-get -qq install -y libleveldb-dev librocksdb-dev >/dev/null
|
||||
|
||||
# Set up build directory /src/tendermint
|
||||
ENV TENDERMINT_BUILD_OPTIONS badgerdb,boltdb,cleveldb,rocksdb
|
||||
|
||||
@@ -167,6 +167,14 @@ func NewCLI() *CLI {
|
||||
cli.root.AddCommand(&cobra.Command{
|
||||
Use: "logs",
|
||||
Short: "Shows the testnet logs",
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
return execComposeVerbose(cli.testnet.Dir, "logs")
|
||||
},
|
||||
})
|
||||
|
||||
cli.root.AddCommand(&cobra.Command{
|
||||
Use: "tail",
|
||||
Short: "Tails the testnet logs",
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
return execComposeVerbose(cli.testnet.Dir, "logs", "--follow")
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user