mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-05 21:14:53 +00:00
Partial fix for #5291. For details, see [README.md](https://github.com/tendermint/tendermint/blob/erik/e2e-tests/test/e2e/README.md) and [RFC-001](https://github.com/tendermint/tendermint/blob/master/docs/rfc/rfc-001-end-to-end-testing.md). This only includes a single test case under `test/e2e/tests/`, as a proof of concept - additional test cases will be submitted separately. A randomized testnet generator will also be submitted separately, there a currently just a handful of static testnets under `test/e2e/networks/`. This will eventually replace the current P2P tests and run in CI.
20 lines
357 B
Go
20 lines
357 B
Go
package main
|
|
|
|
import (
|
|
"os"
|
|
|
|
e2e "github.com/tendermint/tendermint/test/e2e/pkg"
|
|
)
|
|
|
|
// Test runs test cases under tests/
|
|
func Test(testnet *e2e.Testnet) error {
|
|
logger.Info("Running tests in ./tests/...")
|
|
|
|
err := os.Setenv("E2E_MANIFEST", testnet.File)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
return execVerbose("go", "test", "-count", "1", "./tests/...")
|
|
}
|