Some checks are pending
docker-build-cometbft / vars (push) Waiting to run
docker-build-cometbft / build-images (amd64, ubuntu-24.04) (push) Blocked by required conditions
docker-build-cometbft / build-images (arm64, ubuntu-24.04-arm) (push) Blocked by required conditions
docker-build-cometbft / merge-images (push) Blocked by required conditions
docker-build-e2e-node / vars (push) Waiting to run
docker-build-e2e-node / build-images (amd64, ubuntu-24.04) (push) Blocked by required conditions
docker-build-e2e-node / build-images (arm64, ubuntu-24.04-arm) (push) Blocked by required conditions
docker-build-e2e-node / merge-images (push) Blocked by required conditions
31 lines
672 B
Go
31 lines
672 B
Go
package main
|
|
|
|
import (
|
|
"context"
|
|
"os"
|
|
|
|
e2e "github.com/cometbft/cometbft/test/e2e/pkg"
|
|
"github.com/cometbft/cometbft/test/e2e/pkg/exec"
|
|
)
|
|
|
|
// Test runs test cases under tests/
|
|
func Test(testnet *e2e.Testnet, ifd *e2e.InfrastructureData) error {
|
|
logger.Info("Running tests in ./tests/...")
|
|
|
|
err := os.Setenv("E2E_MANIFEST", testnet.File)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
if p := ifd.Path; p != "" {
|
|
err = os.Setenv("INFRASTRUCTURE_FILE", p)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
}
|
|
err = os.Setenv("INFRASTRUCTURE_TYPE", ifd.Provider)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
return exec.CommandVerbose(context.Background(), "go", "test", "-count", "1", "./tests/...")
|
|
}
|