mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
Merge pull request #46915 from azat/tests/expect-fasttest
Fix some expect tests leftovers and enable them in fasttest
This commit is contained in:
commit
cf4abcd988
@ -432,6 +432,7 @@ ReplxxLineReader::ReplxxLineReader(
|
||||
};
|
||||
|
||||
rx.bind_key(Replxx::KEY::control('R'), interactive_history_search);
|
||||
#endif
|
||||
|
||||
/// Rebind regular incremental search to C-T.
|
||||
///
|
||||
@ -443,7 +444,6 @@ ReplxxLineReader::ReplxxLineReader(
|
||||
uint32_t reverse_search = Replxx::KEY::control('R');
|
||||
return rx.invoke(Replxx::ACTION::HISTORY_INCREMENTAL_SEARCH, reverse_search);
|
||||
});
|
||||
#endif
|
||||
}
|
||||
|
||||
ReplxxLineReader::~ReplxxLineReader()
|
||||
|
@ -1,5 +1,4 @@
|
||||
#!/usr/bin/expect -f
|
||||
# Tags: long
|
||||
|
||||
set basedir [file dirname $argv0]
|
||||
set basename [file tail $argv0]
|
||||
|
@ -31,6 +31,7 @@ expect "Syntax error: failed at position 93 ('UInt64'):*"
|
||||
send -- "select (1, 2\r"
|
||||
expect "Syntax error: failed at position 8 ('('):"
|
||||
expect "Unmatched parentheses: ("
|
||||
expect ":) "
|
||||
|
||||
send -- "\4"
|
||||
expect eof
|
||||
|
@ -1,5 +1,4 @@
|
||||
#!/usr/bin/expect -f
|
||||
# Tags: long
|
||||
|
||||
set basedir [file dirname $argv0]
|
||||
set basename [file tail $argv0]
|
||||
|
@ -1,5 +1,4 @@
|
||||
#!/usr/bin/expect -f
|
||||
# Tags: long
|
||||
|
||||
# This is a separate test, because we want to test the interactive mode.
|
||||
# https://github.com/ClickHouse/ClickHouse/issues/19353
|
||||
|
@ -1,5 +1,4 @@
|
||||
#!/usr/bin/expect -f
|
||||
# Tags: long
|
||||
|
||||
set basedir [file dirname $argv0]
|
||||
set basename [file tail $argv0]
|
||||
|
@ -1,5 +1,4 @@
|
||||
#!/usr/bin/expect -f
|
||||
# Tags: no-fasttest
|
||||
|
||||
# This is a test for system.warnings. Testing in interactive mode is necessary,
|
||||
# as we want to see certain warnings from client
|
||||
|
@ -1,5 +1,4 @@
|
||||
#!/usr/bin/expect -f
|
||||
# Tags: no-parallel
|
||||
|
||||
set basedir [file dirname $argv0]
|
||||
set basename [file tail $argv0]
|
||||
@ -16,15 +15,13 @@ expect_after {
|
||||
-i $any_spawn_id timeout { exit 1 }
|
||||
}
|
||||
|
||||
system "$basedir/helpers/02112_prepare.sh"
|
||||
spawn bash -c "source $basedir/../shell_config.sh ; \$CLICKHOUSE_CLIENT --disable_suggestion --interactive --queries-file $basedir/file_02112"
|
||||
system "echo \"drop table if exists t; create table t(i String) engine=Memory; insert into t select 'test string'\" > $env(CLICKHOUSE_TMP)/file_02112"
|
||||
spawn bash -c "source $basedir/../shell_config.sh ; \$CLICKHOUSE_CLIENT --disable_suggestion --interactive --queries-file $env(CLICKHOUSE_TMP)/file_02112"
|
||||
expect ":) "
|
||||
|
||||
send -- "select * from t format TSV\r"
|
||||
expect "1"
|
||||
send -- "select i from t format TSV\r"
|
||||
expect "test string"
|
||||
expect ":) "
|
||||
|
||||
send ""
|
||||
expect eof
|
||||
|
||||
system "$basedir/helpers/02112_clean.sh"
|
||||
|
@ -1,5 +1,4 @@
|
||||
#!/usr/bin/expect -f
|
||||
# Tags: no-parallel
|
||||
|
||||
set basedir [file dirname $argv0]
|
||||
set basename [file tail $argv0]
|
||||
@ -16,15 +15,13 @@ expect_after {
|
||||
-i $any_spawn_id timeout { exit 1 }
|
||||
}
|
||||
|
||||
system "$basedir/helpers/02112_prepare.sh"
|
||||
spawn bash -c "source $basedir/../shell_config.sh ; \$CLICKHOUSE_LOCAL --disable_suggestion --interactive --queries-file $basedir/file_02112"
|
||||
system "echo \"drop table if exists t; create table t(i String) engine=Memory; insert into t select 'test string'\" > $env(CLICKHOUSE_TMP)/file_02112"
|
||||
spawn bash -c "source $basedir/../shell_config.sh ; \$CLICKHOUSE_LOCAL --disable_suggestion --interactive --queries-file $env(CLICKHOUSE_TMP)/file_02112"
|
||||
expect ":) "
|
||||
|
||||
send -- "select * from t format TSV\r"
|
||||
expect "1"
|
||||
send -- "select \* from t format TSV\r"
|
||||
expect "test string"
|
||||
expect ":) "
|
||||
|
||||
send ""
|
||||
expect eof
|
||||
|
||||
system "$basedir/helpers/02112_clean.sh"
|
||||
|
@ -1,5 +1,4 @@
|
||||
#!/usr/bin/expect -f
|
||||
# Tags: long
|
||||
|
||||
set basedir [file dirname $argv0]
|
||||
set basename [file tail $argv0]
|
||||
|
@ -44,9 +44,8 @@ expect ":) "
|
||||
|
||||
# Generate UIUD to avoid matching old database/tables/columns from previous test runs.
|
||||
send -- "select 'begin-' || replace(toString(generateUUIDv4()), '-', '') || '-end' format TSV\r"
|
||||
expect -re TSV.*TSV.*begin-(.*)-end.*
|
||||
expect -re "TSV.*TSV.*begin-(.*)-end.*:\\) "
|
||||
set uuid $expect_out(1,string)
|
||||
expect ":) "
|
||||
|
||||
# CREATE DATABASE
|
||||
send -- "create database new_${uuid}_database\r"
|
||||
|
@ -1,5 +1,4 @@
|
||||
#!/usr/bin/expect -f
|
||||
# Tags: long
|
||||
|
||||
# This is the regression for the concurrent access in ProgressIndication,
|
||||
# so it is important to read enough rows here (10e6).
|
||||
|
@ -1,5 +1,4 @@
|
||||
#!/usr/bin/expect -f
|
||||
# Tags: long
|
||||
|
||||
# This is the regression for the concurrent access in ProgressIndication,
|
||||
# so it is important to read enough rows here (10e6).
|
||||
|
@ -1,5 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||
FILE=${CURDIR}/../file_02112
|
||||
rm "$FILE"
|
@ -1,5 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||
FILE=${CURDIR}/../file_02112
|
||||
echo "drop table if exists t;create table t(i Int32) engine=Memory; insert into t select 1" > "$FILE"
|
Loading…
Reference in New Issue
Block a user