cockroach: github.com/cockroachdb/cockroach/pkg/sql/logictest Index | Files

package logictest

import "github.com/cockroachdb/cockroach/pkg/sql/logictest"

Index

Package Files

logic.go

func RunLogicTest Uses

func RunLogicTest(t *testing.T, serverArgs TestServerArgs, globs ...string)

RunLogicTest is the main entry point for the logic test. The globs parameter specifies the default sets of files to run.

func RunLogicTestWithDefaultConfig Uses

func RunLogicTestWithDefaultConfig(
    t *testing.T, serverArgs TestServerArgs, configOverride string, globs ...string,
)

RunLogicTestWithDefaultConfig is the main entry point for the logic test. The globs parameter specifies the default sets of files to run. The config override parameter, if not empty, specifies the set of configurations to run those files in. If empty, the default set of configurations is used.

func RunSQLLiteLogicTest Uses

func RunSQLLiteLogicTest(t *testing.T, configOverride string)

RunSQLLiteLogicTest is the main entry point to run the suite of SQLLite logic tests. It runs logic tests from CockroachDB's fork of sqllogictest:

https://www.sqlite.org/sqllogictest/doc/trunk/about.wiki

This fork contains many generated tests created by the SqlLite project that ensure the tested SQL database returns correct statement and query output. The logic tests are reasonably independent of the specific dialect of each database so that they can be retargeted. In fact, the expected output for each test can be generated by one database and then used to verify the output of another database.

The tests are run with the default set of configurations specified in configOverride. If empty, the default set of configurations is used.

By default, these tests are skipped, unless the `bigtest` flag is specified. The reason for this is that these tests are contained in another repo that must be present on the machine, and because they take a long time to run.

See the comments in logic.go for more details.

type TestServerArgs Uses

type TestServerArgs struct {
    // contains filtered or unexported fields
}

TestServerArgs contains the parameters that callers of RunLogicTest might want to specify for the test clusters to be created with.

Package logictest imports 54 packages (graph). Updated 2020-08-13. Refresh now. Tools for package owners.