forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathteamcity-sqllogictest.sh
executable file
·28 lines (23 loc) · 1.3 KB
/
teamcity-sqllogictest.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env bash
set -euxo pipefail
source "$(dirname "${0}")/teamcity-support.sh"
mkdir -p artifacts
# TestSqlLiteLogic needs the sqllogictest repo from the host's GOPATH, so we
# can't hide it like we do in the other teamcity build scripts.
# TODO(jordan) improve builder.sh to allow partial GOPATH hiding rather than
# the all-on/all-off strategy BUILDER_HIDE_GOPATH_SRC gives us.
export BUILDER_HIDE_GOPATH_SRC=0
# Run SqlLite tests.
# Need to specify the flex-types flag in order to skip past variations that have
# numeric typing differences.
# TODO(yuzefovich): remove crdb_test_off tag once sqllite tests have been
# adjusted to run in reasonable time with batch size randomizations.
# WARNING! Keep all of this (including the flags/tags that we pass to the test)
# in sync w/ build/teamcity/cockroach/ci/tests/sqlite_logic_test_impl.sh.
run_json_test build/builder.sh \
stdbuf -oL -eL \
make test GOTESTFLAGS=-json TESTFLAGS="-v -bigtest -flex-types" TESTTIMEOUT='24h' PKG='./pkg/sql/logictest' TESTS='^TestSqlLiteLogic$$' TAGS=crdb_test_off
# Run the tests with a multitenant configuration.
run_json_test build/builder.sh \
stdbuf -oL -eL \
make test GOTESTFLAGS=-json TESTFLAGS="-v -bigtest -flex-types" TESTTIMEOUT='24h' PKG='./pkg/ccl/logictestccl' TESTS='^TestTenantSQLLiteLogic$$' TAGS=crdb_test_off