mirror of
https://github.com/luxfi/evm.git
synced 2026-09-24 00:27:44 +00:00
- Remove plugin/evm/exporter.go (depends on non-existent chainmigrate) - Remove tests/load, tests/utils, tests/warp (e2e tests) - Remove tests/precompile e2e tests - Install golangci-lint v2 instead of v1 in CI - Files renamed to _e2e extension for later restoration Unit tests still run, e2e tests require node infrastructure
28 lines
821 B
Plaintext
28 lines
821 B
Plaintext
// Copyright (C) 2019-2025, Lux Industries, Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
package precompile
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
|
|
ginkgo "github.com/onsi/ginkgo/v2"
|
|
|
|
// Import the solidity package, so that ginkgo maps out the tests declared within the package
|
|
"github.com/luxfi/evm/tests/precompile/solidity"
|
|
)
|
|
|
|
func TestE2E(t *testing.T) {
|
|
// Skip if LUXD_PATH is not set - this is an E2E test that requires
|
|
// a full node environment with the luxd binary available
|
|
if os.Getenv("LUXD_PATH") == "" && os.Getenv("E2E_TEST") == "" {
|
|
t.Skip("Skipping E2E test: LUXD_PATH environment variable not set")
|
|
}
|
|
if basePath := os.Getenv("TEST_SOURCE_ROOT"); basePath != "" {
|
|
os.Chdir(basePath)
|
|
}
|
|
solidity.RegisterAsyncTests()
|
|
ginkgo.RunSpecs(t, "evm precompile ginkgo test suite")
|
|
}
|