mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 02:52:13 +00:00
Better usability of "expect" tests: less trouble with running directly
This commit is contained in:
parent
5e51880750
commit
da8da3cbe9
@ -4,7 +4,12 @@
|
|||||||
|
|
||||||
set basedir [file dirname $argv0]
|
set basedir [file dirname $argv0]
|
||||||
set basename [file tail $argv0]
|
set basename [file tail $argv0]
|
||||||
exp_internal -f $env(CLICKHOUSE_TMP)/$basename.debuglog 0
|
if {[info exists env(CLICKHOUSE_TMP)]} {
|
||||||
|
set CLICKHOUSE_TMP $env(CLICKHOUSE_TMP)
|
||||||
|
} else {
|
||||||
|
set CLICKHOUSE_TMP "."
|
||||||
|
}
|
||||||
|
exp_internal -f $CLICKHOUSE_TMP/$basename.debuglog 0
|
||||||
|
|
||||||
log_user 0
|
log_user 0
|
||||||
set timeout 60
|
set timeout 60
|
||||||
|
@ -2,8 +2,13 @@
|
|||||||
|
|
||||||
set basedir [file dirname $argv0]
|
set basedir [file dirname $argv0]
|
||||||
set basename [file tail $argv0]
|
set basename [file tail $argv0]
|
||||||
exp_internal -f $env(CLICKHOUSE_TMP)/$basename.debuglog 0
|
if {[info exists env(CLICKHOUSE_TMP)]} {
|
||||||
set history_file $env(CLICKHOUSE_TMP)/$basename.history
|
set CLICKHOUSE_TMP $env(CLICKHOUSE_TMP)
|
||||||
|
} else {
|
||||||
|
set CLICKHOUSE_TMP "."
|
||||||
|
}
|
||||||
|
exp_internal -f $CLICKHOUSE_TMP/$basename.debuglog 0
|
||||||
|
set history_file $CLICKHOUSE_TMP/$basename.history
|
||||||
|
|
||||||
log_user 0
|
log_user 0
|
||||||
set timeout 60
|
set timeout 60
|
||||||
|
@ -2,8 +2,13 @@
|
|||||||
|
|
||||||
set basedir [file dirname $argv0]
|
set basedir [file dirname $argv0]
|
||||||
set basename [file tail $argv0]
|
set basename [file tail $argv0]
|
||||||
exp_internal -f $env(CLICKHOUSE_TMP)/$basename.debuglog 0
|
if {[info exists env(CLICKHOUSE_TMP)]} {
|
||||||
set history_file $env(CLICKHOUSE_TMP)/$basename.history
|
set CLICKHOUSE_TMP $env(CLICKHOUSE_TMP)
|
||||||
|
} else {
|
||||||
|
set CLICKHOUSE_TMP "."
|
||||||
|
}
|
||||||
|
exp_internal -f $CLICKHOUSE_TMP/$basename.debuglog 0
|
||||||
|
set history_file $CLICKHOUSE_TMP/$basename.history
|
||||||
|
|
||||||
log_user 0
|
log_user 0
|
||||||
set timeout 60
|
set timeout 60
|
||||||
|
@ -2,8 +2,13 @@
|
|||||||
|
|
||||||
set basedir [file dirname $argv0]
|
set basedir [file dirname $argv0]
|
||||||
set basename [file tail $argv0]
|
set basename [file tail $argv0]
|
||||||
exp_internal -f $env(CLICKHOUSE_TMP)/$basename.debuglog 0
|
|
||||||
set history_file $env(CLICKHOUSE_TMP)/$basename.history
|
if {[info exists env(CLICKHOUSE_TMP)]} {
|
||||||
|
set CLICKHOUSE_TMP $env(CLICKHOUSE_TMP)
|
||||||
|
} else {
|
||||||
|
set CLICKHOUSE_TMP "."
|
||||||
|
}
|
||||||
|
set history_file $CLICKHOUSE_TMP/$basename.history
|
||||||
|
|
||||||
log_user 0
|
log_user 0
|
||||||
set timeout 60
|
set timeout 60
|
||||||
|
@ -2,8 +2,14 @@
|
|||||||
|
|
||||||
set basedir [file dirname $argv0]
|
set basedir [file dirname $argv0]
|
||||||
set basename [file tail $argv0]
|
set basename [file tail $argv0]
|
||||||
exp_internal -f $env(CLICKHOUSE_TMP)/$basename.debuglog 0
|
|
||||||
set history_file $env(CLICKHOUSE_TMP)/$basename.history
|
if {[info exists env(CLICKHOUSE_TMP)]} {
|
||||||
|
set CLICKHOUSE_TMP $env(CLICKHOUSE_TMP)
|
||||||
|
} else {
|
||||||
|
set CLICKHOUSE_TMP "."
|
||||||
|
}
|
||||||
|
exp_internal -f $CLICKHOUSE_TMP/$basename.debuglog 0
|
||||||
|
set history_file $CLICKHOUSE_TMP/$basename.history
|
||||||
|
|
||||||
log_user 0
|
log_user 0
|
||||||
set timeout 60
|
set timeout 60
|
||||||
|
@ -2,8 +2,13 @@
|
|||||||
|
|
||||||
set basedir [file dirname $argv0]
|
set basedir [file dirname $argv0]
|
||||||
set basename [file tail $argv0]
|
set basename [file tail $argv0]
|
||||||
exp_internal -f $env(CLICKHOUSE_TMP)/$basename.debuglog 0
|
if {[info exists env(CLICKHOUSE_TMP)]} {
|
||||||
set history_file $env(CLICKHOUSE_TMP)/$basename.history
|
set CLICKHOUSE_TMP $env(CLICKHOUSE_TMP)
|
||||||
|
} else {
|
||||||
|
set CLICKHOUSE_TMP "."
|
||||||
|
}
|
||||||
|
exp_internal -f $CLICKHOUSE_TMP/$basename.debuglog 0
|
||||||
|
set history_file $CLICKHOUSE_TMP/$basename.history
|
||||||
|
|
||||||
log_user 0
|
log_user 0
|
||||||
set timeout 60
|
set timeout 60
|
||||||
|
@ -2,8 +2,13 @@
|
|||||||
|
|
||||||
set basedir [file dirname $argv0]
|
set basedir [file dirname $argv0]
|
||||||
set basename [file tail $argv0]
|
set basename [file tail $argv0]
|
||||||
exp_internal -f $env(CLICKHOUSE_TMP)/$basename.debuglog 0
|
if {[info exists env(CLICKHOUSE_TMP)]} {
|
||||||
set history_file $env(CLICKHOUSE_TMP)/$basename.history
|
set CLICKHOUSE_TMP $env(CLICKHOUSE_TMP)
|
||||||
|
} else {
|
||||||
|
set CLICKHOUSE_TMP "."
|
||||||
|
}
|
||||||
|
exp_internal -f $CLICKHOUSE_TMP/$basename.debuglog 0
|
||||||
|
set history_file $CLICKHOUSE_TMP/$basename.history
|
||||||
|
|
||||||
log_user 0
|
log_user 0
|
||||||
set timeout 60
|
set timeout 60
|
||||||
|
@ -2,8 +2,13 @@
|
|||||||
|
|
||||||
set basedir [file dirname $argv0]
|
set basedir [file dirname $argv0]
|
||||||
set basename [file tail $argv0]
|
set basename [file tail $argv0]
|
||||||
exp_internal -f $env(CLICKHOUSE_TMP)/$basename.debuglog 0
|
if {[info exists env(CLICKHOUSE_TMP)]} {
|
||||||
set history_file $env(CLICKHOUSE_TMP)/$basename.history
|
set CLICKHOUSE_TMP $env(CLICKHOUSE_TMP)
|
||||||
|
} else {
|
||||||
|
set CLICKHOUSE_TMP "."
|
||||||
|
}
|
||||||
|
exp_internal -f $CLICKHOUSE_TMP/$basename.debuglog 0
|
||||||
|
set history_file $CLICKHOUSE_TMP/$basename.history
|
||||||
|
|
||||||
log_user 0
|
log_user 0
|
||||||
set timeout 60
|
set timeout 60
|
||||||
|
@ -5,8 +5,13 @@
|
|||||||
|
|
||||||
set basedir [file dirname $argv0]
|
set basedir [file dirname $argv0]
|
||||||
set basename [file tail $argv0]
|
set basename [file tail $argv0]
|
||||||
exp_internal -f $env(CLICKHOUSE_TMP)/$basename.debuglog 0
|
if {[info exists env(CLICKHOUSE_TMP)]} {
|
||||||
set history_file $env(CLICKHOUSE_TMP)/$basename.history
|
set CLICKHOUSE_TMP $env(CLICKHOUSE_TMP)
|
||||||
|
} else {
|
||||||
|
set CLICKHOUSE_TMP "."
|
||||||
|
}
|
||||||
|
exp_internal -f $CLICKHOUSE_TMP/$basename.debuglog 0
|
||||||
|
set history_file $CLICKHOUSE_TMP/$basename.history
|
||||||
|
|
||||||
log_user 0
|
log_user 0
|
||||||
set timeout 60
|
set timeout 60
|
||||||
|
@ -2,8 +2,13 @@
|
|||||||
|
|
||||||
set basedir [file dirname $argv0]
|
set basedir [file dirname $argv0]
|
||||||
set basename [file tail $argv0]
|
set basename [file tail $argv0]
|
||||||
exp_internal -f $env(CLICKHOUSE_TMP)/$basename.debuglog 0
|
if {[info exists env(CLICKHOUSE_TMP)]} {
|
||||||
set history_file $env(CLICKHOUSE_TMP)/$basename.history
|
set CLICKHOUSE_TMP $env(CLICKHOUSE_TMP)
|
||||||
|
} else {
|
||||||
|
set CLICKHOUSE_TMP "."
|
||||||
|
}
|
||||||
|
exp_internal -f $CLICKHOUSE_TMP/$basename.debuglog 0
|
||||||
|
set history_file $CLICKHOUSE_TMP/$basename.history
|
||||||
|
|
||||||
log_user 0
|
log_user 0
|
||||||
set timeout 60
|
set timeout 60
|
||||||
|
@ -2,7 +2,12 @@
|
|||||||
|
|
||||||
set basedir [file dirname $argv0]
|
set basedir [file dirname $argv0]
|
||||||
set basename [file tail $argv0]
|
set basename [file tail $argv0]
|
||||||
exp_internal -f $env(CLICKHOUSE_TMP)/$basename.debuglog 0
|
if {[info exists env(CLICKHOUSE_TMP)]} {
|
||||||
|
set CLICKHOUSE_TMP $env(CLICKHOUSE_TMP)
|
||||||
|
} else {
|
||||||
|
set CLICKHOUSE_TMP "."
|
||||||
|
}
|
||||||
|
exp_internal -f $CLICKHOUSE_TMP/$basename.debuglog 0
|
||||||
|
|
||||||
log_user 0
|
log_user 0
|
||||||
set timeout 60
|
set timeout 60
|
||||||
|
@ -2,8 +2,13 @@
|
|||||||
|
|
||||||
set basedir [file dirname $argv0]
|
set basedir [file dirname $argv0]
|
||||||
set basename [file tail $argv0]
|
set basename [file tail $argv0]
|
||||||
exp_internal -f $env(CLICKHOUSE_TMP)/$basename.debuglog 0
|
if {[info exists env(CLICKHOUSE_TMP)]} {
|
||||||
set history_file $env(CLICKHOUSE_TMP)/$basename.history
|
set CLICKHOUSE_TMP $env(CLICKHOUSE_TMP)
|
||||||
|
} else {
|
||||||
|
set CLICKHOUSE_TMP "."
|
||||||
|
}
|
||||||
|
exp_internal -f $CLICKHOUSE_TMP/$basename.debuglog 0
|
||||||
|
set history_file $CLICKHOUSE_TMP/$basename.history
|
||||||
|
|
||||||
log_user 0
|
log_user 0
|
||||||
set timeout 60
|
set timeout 60
|
||||||
|
@ -5,8 +5,13 @@
|
|||||||
|
|
||||||
set basedir [file dirname $argv0]
|
set basedir [file dirname $argv0]
|
||||||
set basename [file tail $argv0]
|
set basename [file tail $argv0]
|
||||||
exp_internal -f $env(CLICKHOUSE_TMP)/$basename.debuglog 0
|
if {[info exists env(CLICKHOUSE_TMP)]} {
|
||||||
set history_file $env(CLICKHOUSE_TMP)/$basename.history
|
set CLICKHOUSE_TMP $env(CLICKHOUSE_TMP)
|
||||||
|
} else {
|
||||||
|
set CLICKHOUSE_TMP "."
|
||||||
|
}
|
||||||
|
exp_internal -f $CLICKHOUSE_TMP/$basename.debuglog 0
|
||||||
|
set history_file $CLICKHOUSE_TMP/$basename.history
|
||||||
|
|
||||||
log_user 0
|
log_user 0
|
||||||
set timeout 60
|
set timeout 60
|
||||||
|
@ -2,8 +2,13 @@
|
|||||||
|
|
||||||
set basedir [file dirname $argv0]
|
set basedir [file dirname $argv0]
|
||||||
set basename [file tail $argv0]
|
set basename [file tail $argv0]
|
||||||
exp_internal -f $env(CLICKHOUSE_TMP)/$basename.debuglog 0
|
if {[info exists env(CLICKHOUSE_TMP)]} {
|
||||||
set history_file $env(CLICKHOUSE_TMP)/$basename.history
|
set CLICKHOUSE_TMP $env(CLICKHOUSE_TMP)
|
||||||
|
} else {
|
||||||
|
set CLICKHOUSE_TMP "."
|
||||||
|
}
|
||||||
|
exp_internal -f $CLICKHOUSE_TMP/$basename.debuglog 0
|
||||||
|
set history_file $CLICKHOUSE_TMP/$basename.history
|
||||||
|
|
||||||
log_user 0
|
log_user 0
|
||||||
set timeout 60
|
set timeout 60
|
||||||
|
@ -2,7 +2,12 @@
|
|||||||
|
|
||||||
set basedir [file dirname $argv0]
|
set basedir [file dirname $argv0]
|
||||||
set basename [file tail $argv0]
|
set basename [file tail $argv0]
|
||||||
exp_internal -f $env(CLICKHOUSE_TMP)/$basename.debuglog 0
|
if {[info exists env(CLICKHOUSE_TMP)]} {
|
||||||
|
set CLICKHOUSE_TMP $env(CLICKHOUSE_TMP)
|
||||||
|
} else {
|
||||||
|
set CLICKHOUSE_TMP "."
|
||||||
|
}
|
||||||
|
exp_internal -f $CLICKHOUSE_TMP/$basename.debuglog 0
|
||||||
|
|
||||||
log_user 0
|
log_user 0
|
||||||
set timeout 60
|
set timeout 60
|
||||||
|
@ -2,8 +2,13 @@
|
|||||||
|
|
||||||
set basedir [file dirname $argv0]
|
set basedir [file dirname $argv0]
|
||||||
set basename [file tail $argv0]
|
set basename [file tail $argv0]
|
||||||
exp_internal -f $env(CLICKHOUSE_TMP)/$basename.debuglog 0
|
if {[info exists env(CLICKHOUSE_TMP)]} {
|
||||||
set history_file $env(CLICKHOUSE_TMP)/$basename.history
|
set CLICKHOUSE_TMP $env(CLICKHOUSE_TMP)
|
||||||
|
} else {
|
||||||
|
set CLICKHOUSE_TMP "."
|
||||||
|
}
|
||||||
|
exp_internal -f $CLICKHOUSE_TMP/$basename.debuglog 0
|
||||||
|
set history_file $CLICKHOUSE_TMP/$basename.history
|
||||||
|
|
||||||
log_user 0
|
log_user 0
|
||||||
set timeout 60
|
set timeout 60
|
||||||
|
@ -2,7 +2,13 @@
|
|||||||
|
|
||||||
set basedir [file dirname $argv0]
|
set basedir [file dirname $argv0]
|
||||||
set basename [file tail $argv0]
|
set basename [file tail $argv0]
|
||||||
exp_internal -f $env(CLICKHOUSE_TMP)/$basename.debuglog 0
|
if {[info exists env(CLICKHOUSE_TMP)]} {
|
||||||
|
set CLICKHOUSE_TMP $env(CLICKHOUSE_TMP)
|
||||||
|
} else {
|
||||||
|
set CLICKHOUSE_TMP "."
|
||||||
|
}
|
||||||
|
exp_internal -f $CLICKHOUSE_TMP/$basename.debuglog 0
|
||||||
|
set history_file $CLICKHOUSE_TMP/$basename.history
|
||||||
|
|
||||||
log_user 0
|
log_user 0
|
||||||
set timeout 20
|
set timeout 20
|
||||||
@ -15,8 +21,8 @@ expect_after {
|
|||||||
-i $any_spawn_id timeout { exit 1 }
|
-i $any_spawn_id timeout { exit 1 }
|
||||||
}
|
}
|
||||||
|
|
||||||
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"
|
system "echo \"drop table if exists t; create table t(i String) engine=Memory; insert into t select 'test string'\" > $CLICKHOUSE_TMP/file_02112"
|
||||||
spawn bash -c "source $basedir/../shell_config.sh ; \$CLICKHOUSE_CLIENT --disable_suggestion --interactive --queries-file $env(CLICKHOUSE_TMP)/file_02112"
|
spawn bash -c "source $basedir/../shell_config.sh ; \$CLICKHOUSE_CLIENT --disable_suggestion --interactive --queries-file $CLICKHOUSE_TMP/file_02112"
|
||||||
expect ":) "
|
expect ":) "
|
||||||
|
|
||||||
send -- "select i from t format TSV\r"
|
send -- "select i from t format TSV\r"
|
||||||
|
@ -2,7 +2,12 @@
|
|||||||
|
|
||||||
set basedir [file dirname $argv0]
|
set basedir [file dirname $argv0]
|
||||||
set basename [file tail $argv0]
|
set basename [file tail $argv0]
|
||||||
exp_internal -f $env(CLICKHOUSE_TMP)/$basename.debuglog 0
|
if {[info exists env(CLICKHOUSE_TMP)]} {
|
||||||
|
set CLICKHOUSE_TMP $env(CLICKHOUSE_TMP)
|
||||||
|
} else {
|
||||||
|
set CLICKHOUSE_TMP "."
|
||||||
|
}
|
||||||
|
exp_internal -f $CLICKHOUSE_TMP/$basename.debuglog 0
|
||||||
|
|
||||||
log_user 0
|
log_user 0
|
||||||
set timeout 20
|
set timeout 20
|
||||||
|
@ -2,7 +2,12 @@
|
|||||||
|
|
||||||
set basedir [file dirname $argv0]
|
set basedir [file dirname $argv0]
|
||||||
set basename [file tail $argv0]
|
set basename [file tail $argv0]
|
||||||
exp_internal -f $env(CLICKHOUSE_TMP)/$basename.debuglog 0
|
if {[info exists env(CLICKHOUSE_TMP)]} {
|
||||||
|
set CLICKHOUSE_TMP $env(CLICKHOUSE_TMP)
|
||||||
|
} else {
|
||||||
|
set CLICKHOUSE_TMP "."
|
||||||
|
}
|
||||||
|
exp_internal -f $CLICKHOUSE_TMP/$basename.debuglog 0
|
||||||
|
|
||||||
log_user 0
|
log_user 0
|
||||||
set timeout 20
|
set timeout 20
|
||||||
@ -15,8 +20,8 @@ expect_after {
|
|||||||
-i $any_spawn_id timeout { exit 1 }
|
-i $any_spawn_id timeout { exit 1 }
|
||||||
}
|
}
|
||||||
|
|
||||||
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"
|
system "echo \"drop table if exists t; create table t(i String) engine=Memory; insert into t select 'test string'\" > $CLICKHOUSE_TMP/file_02112"
|
||||||
spawn bash -c "source $basedir/../shell_config.sh ; \$CLICKHOUSE_LOCAL --disable_suggestion --interactive --queries-file $env(CLICKHOUSE_TMP)/file_02112"
|
spawn bash -c "source $basedir/../shell_config.sh ; \$CLICKHOUSE_LOCAL --disable_suggestion --interactive --queries-file $CLICKHOUSE_TMP/file_02112"
|
||||||
expect ":) "
|
expect ":) "
|
||||||
|
|
||||||
send -- "select \* from t format TSV\r"
|
send -- "select \* from t format TSV\r"
|
||||||
|
@ -2,8 +2,13 @@
|
|||||||
|
|
||||||
set basedir [file dirname $argv0]
|
set basedir [file dirname $argv0]
|
||||||
set basename [file tail $argv0]
|
set basename [file tail $argv0]
|
||||||
exp_internal -f $env(CLICKHOUSE_TMP)/$basename.debuglog 0
|
if {[info exists env(CLICKHOUSE_TMP)]} {
|
||||||
set history_file $env(CLICKHOUSE_TMP)/$basename.history
|
set CLICKHOUSE_TMP $env(CLICKHOUSE_TMP)
|
||||||
|
} else {
|
||||||
|
set CLICKHOUSE_TMP "."
|
||||||
|
}
|
||||||
|
exp_internal -f $CLICKHOUSE_TMP/$basename.debuglog 0
|
||||||
|
set history_file $CLICKHOUSE_TMP/$basename.history
|
||||||
|
|
||||||
log_user 0
|
log_user 0
|
||||||
set timeout 60
|
set timeout 60
|
||||||
|
@ -2,8 +2,13 @@
|
|||||||
|
|
||||||
set basedir [file dirname $argv0]
|
set basedir [file dirname $argv0]
|
||||||
set basename [file tail $argv0]
|
set basename [file tail $argv0]
|
||||||
exp_internal -f $env(CLICKHOUSE_TMP)/$basename.debuglog 0
|
if {[info exists env(CLICKHOUSE_TMP)]} {
|
||||||
set history_file $env(CLICKHOUSE_TMP)/$basename.history
|
set CLICKHOUSE_TMP $env(CLICKHOUSE_TMP)
|
||||||
|
} else {
|
||||||
|
set CLICKHOUSE_TMP "."
|
||||||
|
}
|
||||||
|
exp_internal -f $CLICKHOUSE_TMP/$basename.debuglog 0
|
||||||
|
set history_file $CLICKHOUSE_TMP/$basename.history
|
||||||
|
|
||||||
log_user 0
|
log_user 0
|
||||||
set timeout 60
|
set timeout 60
|
||||||
|
@ -2,8 +2,13 @@
|
|||||||
|
|
||||||
set basedir [file dirname $argv0]
|
set basedir [file dirname $argv0]
|
||||||
set basename [file tail $argv0]
|
set basename [file tail $argv0]
|
||||||
exp_internal -f $env(CLICKHOUSE_TMP)/$basename.debuglog 0
|
if {[info exists env(CLICKHOUSE_TMP)]} {
|
||||||
set history_file $env(CLICKHOUSE_TMP)/$basename.history
|
set CLICKHOUSE_TMP $env(CLICKHOUSE_TMP)
|
||||||
|
} else {
|
||||||
|
set CLICKHOUSE_TMP "."
|
||||||
|
}
|
||||||
|
exp_internal -f $CLICKHOUSE_TMP/$basename.debuglog 0
|
||||||
|
set history_file $CLICKHOUSE_TMP/$basename.history
|
||||||
|
|
||||||
log_user 0
|
log_user 0
|
||||||
set timeout 60
|
set timeout 60
|
||||||
|
@ -2,7 +2,12 @@
|
|||||||
|
|
||||||
set basedir [file dirname $argv0]
|
set basedir [file dirname $argv0]
|
||||||
set basename [file tail $argv0]
|
set basename [file tail $argv0]
|
||||||
exp_internal -f $env(CLICKHOUSE_TMP)/$basename.debuglog 0
|
if {[info exists env(CLICKHOUSE_TMP)]} {
|
||||||
|
set CLICKHOUSE_TMP $env(CLICKHOUSE_TMP)
|
||||||
|
} else {
|
||||||
|
set CLICKHOUSE_TMP "."
|
||||||
|
}
|
||||||
|
exp_internal -f $CLICKHOUSE_TMP/$basename.debuglog 0
|
||||||
|
|
||||||
log_user 0
|
log_user 0
|
||||||
set timeout 20
|
set timeout 20
|
||||||
|
@ -8,7 +8,12 @@
|
|||||||
|
|
||||||
set basedir [file dirname $argv0]
|
set basedir [file dirname $argv0]
|
||||||
set basename [file tail $argv0]
|
set basename [file tail $argv0]
|
||||||
exp_internal -f $env(CLICKHOUSE_TMP)/$basename.debuglog 0
|
if {[info exists env(CLICKHOUSE_TMP)]} {
|
||||||
|
set CLICKHOUSE_TMP $env(CLICKHOUSE_TMP)
|
||||||
|
} else {
|
||||||
|
set CLICKHOUSE_TMP "."
|
||||||
|
}
|
||||||
|
exp_internal -f $CLICKHOUSE_TMP/$basename.debuglog 0
|
||||||
|
|
||||||
log_user 0
|
log_user 0
|
||||||
set timeout 60
|
set timeout 60
|
||||||
|
@ -8,7 +8,12 @@
|
|||||||
|
|
||||||
set basedir [file dirname $argv0]
|
set basedir [file dirname $argv0]
|
||||||
set basename [file tail $argv0]
|
set basename [file tail $argv0]
|
||||||
exp_internal -f $env(CLICKHOUSE_TMP)/$basename.debuglog 0
|
if {[info exists env(CLICKHOUSE_TMP)]} {
|
||||||
|
set CLICKHOUSE_TMP $env(CLICKHOUSE_TMP)
|
||||||
|
} else {
|
||||||
|
set CLICKHOUSE_TMP "."
|
||||||
|
}
|
||||||
|
exp_internal -f $CLICKHOUSE_TMP/$basename.debuglog 0
|
||||||
|
|
||||||
log_user 0
|
log_user 0
|
||||||
set timeout 60
|
set timeout 60
|
||||||
|
@ -3,7 +3,12 @@
|
|||||||
|
|
||||||
set basedir [file dirname $argv0]
|
set basedir [file dirname $argv0]
|
||||||
set basename [file tail $argv0]
|
set basename [file tail $argv0]
|
||||||
exp_internal -f $env(CLICKHOUSE_TMP)/$basename.debuglog 0
|
if {[info exists env(CLICKHOUSE_TMP)]} {
|
||||||
|
set CLICKHOUSE_TMP $env(CLICKHOUSE_TMP)
|
||||||
|
} else {
|
||||||
|
set CLICKHOUSE_TMP "."
|
||||||
|
}
|
||||||
|
exp_internal -f $CLICKHOUSE_TMP/$basename.debuglog 0
|
||||||
|
|
||||||
log_user 0
|
log_user 0
|
||||||
set timeout 20
|
set timeout 20
|
||||||
|
@ -2,8 +2,13 @@
|
|||||||
|
|
||||||
set basedir [file dirname $argv0]
|
set basedir [file dirname $argv0]
|
||||||
set basename [file tail $argv0]
|
set basename [file tail $argv0]
|
||||||
exp_internal -f $env(CLICKHOUSE_TMP)/$basename.debuglog 0
|
if {[info exists env(CLICKHOUSE_TMP)]} {
|
||||||
set history_file $env(CLICKHOUSE_TMP)/$basename.history
|
set CLICKHOUSE_TMP $env(CLICKHOUSE_TMP)
|
||||||
|
} else {
|
||||||
|
set CLICKHOUSE_TMP "."
|
||||||
|
}
|
||||||
|
exp_internal -f $CLICKHOUSE_TMP/$basename.debuglog 0
|
||||||
|
set history_file $CLICKHOUSE_TMP/$basename.history
|
||||||
|
|
||||||
log_user 0
|
log_user 0
|
||||||
set timeout 60
|
set timeout 60
|
||||||
|
@ -2,7 +2,12 @@
|
|||||||
|
|
||||||
set basedir [file dirname $argv0]
|
set basedir [file dirname $argv0]
|
||||||
set basename [file tail $argv0]
|
set basename [file tail $argv0]
|
||||||
exp_internal -f $env(CLICKHOUSE_TMP)/$basename.debuglog 0
|
if {[info exists env(CLICKHOUSE_TMP)]} {
|
||||||
|
set CLICKHOUSE_TMP $env(CLICKHOUSE_TMP)
|
||||||
|
} else {
|
||||||
|
set CLICKHOUSE_TMP "."
|
||||||
|
}
|
||||||
|
exp_internal -f $CLICKHOUSE_TMP/$basename.debuglog 0
|
||||||
|
|
||||||
log_user 0
|
log_user 0
|
||||||
set timeout 60
|
set timeout 60
|
||||||
|
@ -2,7 +2,12 @@
|
|||||||
|
|
||||||
set basedir [file dirname $argv0]
|
set basedir [file dirname $argv0]
|
||||||
set basename [file tail $argv0]
|
set basename [file tail $argv0]
|
||||||
exp_internal -f $env(CLICKHOUSE_TMP)/$basename.debuglog 0
|
if {[info exists env(CLICKHOUSE_TMP)]} {
|
||||||
|
set CLICKHOUSE_TMP $env(CLICKHOUSE_TMP)
|
||||||
|
} else {
|
||||||
|
set CLICKHOUSE_TMP "."
|
||||||
|
}
|
||||||
|
exp_internal -f $CLICKHOUSE_TMP/$basename.debuglog 0
|
||||||
|
|
||||||
log_user 0
|
log_user 0
|
||||||
set timeout 60
|
set timeout 60
|
||||||
|
@ -2,7 +2,12 @@
|
|||||||
|
|
||||||
set basedir [file dirname $argv0]
|
set basedir [file dirname $argv0]
|
||||||
set basename [file tail $argv0]
|
set basename [file tail $argv0]
|
||||||
exp_internal -f $env(CLICKHOUSE_TMP)/$basename.debuglog 0
|
if {[info exists env(CLICKHOUSE_TMP)]} {
|
||||||
|
set CLICKHOUSE_TMP $env(CLICKHOUSE_TMP)
|
||||||
|
} else {
|
||||||
|
set CLICKHOUSE_TMP "."
|
||||||
|
}
|
||||||
|
exp_internal -f $CLICKHOUSE_TMP/$basename.debuglog 0
|
||||||
|
|
||||||
log_user 0
|
log_user 0
|
||||||
set timeout 60
|
set timeout 60
|
||||||
|
@ -11,7 +11,12 @@
|
|||||||
|
|
||||||
set basedir [file dirname $argv0]
|
set basedir [file dirname $argv0]
|
||||||
set basename [file tail $argv0]
|
set basename [file tail $argv0]
|
||||||
exp_internal -f $env(CLICKHOUSE_TMP)/$basename.debuglog 0
|
if {[info exists env(CLICKHOUSE_TMP)]} {
|
||||||
|
set CLICKHOUSE_TMP $env(CLICKHOUSE_TMP)
|
||||||
|
} else {
|
||||||
|
set CLICKHOUSE_TMP "."
|
||||||
|
}
|
||||||
|
exp_internal -f $CLICKHOUSE_TMP/$basename.debuglog 0
|
||||||
log_user 0
|
log_user 0
|
||||||
set timeout 60
|
set timeout 60
|
||||||
match_max 100000
|
match_max 100000
|
||||||
|
@ -2,8 +2,13 @@
|
|||||||
|
|
||||||
set basedir [file dirname $argv0]
|
set basedir [file dirname $argv0]
|
||||||
set basename [file tail $argv0]
|
set basename [file tail $argv0]
|
||||||
exp_internal -f $env(CLICKHOUSE_TMP)/$basename.debuglog 0
|
if {[info exists env(CLICKHOUSE_TMP)]} {
|
||||||
set history_file $env(CLICKHOUSE_TMP)/$basename.history
|
set CLICKHOUSE_TMP $env(CLICKHOUSE_TMP)
|
||||||
|
} else {
|
||||||
|
set CLICKHOUSE_TMP "."
|
||||||
|
}
|
||||||
|
exp_internal -f $CLICKHOUSE_TMP/$basename.debuglog 0
|
||||||
|
set history_file $CLICKHOUSE_TMP/$basename.history
|
||||||
|
|
||||||
log_user 0
|
log_user 0
|
||||||
set timeout 60
|
set timeout 60
|
||||||
|
@ -3,8 +3,13 @@
|
|||||||
|
|
||||||
set basedir [file dirname $argv0]
|
set basedir [file dirname $argv0]
|
||||||
set basename [file tail $argv0]
|
set basename [file tail $argv0]
|
||||||
exp_internal -f $env(CLICKHOUSE_TMP)/$basename.debuglog 0
|
if {[info exists env(CLICKHOUSE_TMP)]} {
|
||||||
set history_file $env(CLICKHOUSE_TMP)/$basename.history
|
set CLICKHOUSE_TMP $env(CLICKHOUSE_TMP)
|
||||||
|
} else {
|
||||||
|
set CLICKHOUSE_TMP "."
|
||||||
|
}
|
||||||
|
exp_internal -f $CLICKHOUSE_TMP/$basename.debuglog 0
|
||||||
|
set history_file $CLICKHOUSE_TMP/$basename.history
|
||||||
|
|
||||||
log_user 0
|
log_user 0
|
||||||
set timeout 60
|
set timeout 60
|
||||||
|
@ -2,8 +2,13 @@
|
|||||||
|
|
||||||
set basedir [file dirname $argv0]
|
set basedir [file dirname $argv0]
|
||||||
set basename [file tail $argv0]
|
set basename [file tail $argv0]
|
||||||
exp_internal -f $env(CLICKHOUSE_TMP)/$basename.debuglog 0
|
if {[info exists env(CLICKHOUSE_TMP)]} {
|
||||||
set history_file $env(CLICKHOUSE_TMP)/$basename.history
|
set CLICKHOUSE_TMP $env(CLICKHOUSE_TMP)
|
||||||
|
} else {
|
||||||
|
set CLICKHOUSE_TMP "."
|
||||||
|
}
|
||||||
|
exp_internal -f $CLICKHOUSE_TMP/$basename.debuglog 0
|
||||||
|
set history_file $CLICKHOUSE_TMP/$basename.history
|
||||||
|
|
||||||
log_user 0
|
log_user 0
|
||||||
set timeout 60
|
set timeout 60
|
||||||
|
@ -2,8 +2,13 @@
|
|||||||
|
|
||||||
set basedir [file dirname $argv0]
|
set basedir [file dirname $argv0]
|
||||||
set basename [file tail $argv0]
|
set basename [file tail $argv0]
|
||||||
exp_internal -f $env(CLICKHOUSE_TMP)/$basename.debuglog 0
|
if {[info exists env(CLICKHOUSE_TMP)]} {
|
||||||
set history_file $env(CLICKHOUSE_TMP)/$basename.history
|
set CLICKHOUSE_TMP $env(CLICKHOUSE_TMP)
|
||||||
|
} else {
|
||||||
|
set CLICKHOUSE_TMP "."
|
||||||
|
}
|
||||||
|
exp_internal -f $CLICKHOUSE_TMP/$basename.debuglog 0
|
||||||
|
set history_file $CLICKHOUSE_TMP/$basename.history
|
||||||
|
|
||||||
log_user 0
|
log_user 0
|
||||||
set timeout 60
|
set timeout 60
|
||||||
|
@ -342,7 +342,7 @@ done
|
|||||||
|
|
||||||
expect_tests=( $(find $ROOT_PATH/tests/queries -name '*.expect') )
|
expect_tests=( $(find $ROOT_PATH/tests/queries -name '*.expect') )
|
||||||
for test_case in "${expect_tests[@]}"; do
|
for test_case in "${expect_tests[@]}"; do
|
||||||
pattern="^exp_internal -f \$env(CLICKHOUSE_TMP)/\$basename.debuglog 0$"
|
pattern="^exp_internal -f \$CLICKHOUSE_TMP/\$basename.debuglog 0$"
|
||||||
grep -q "$pattern" "$test_case" || echo "Missing '$pattern' in '$test_case'"
|
grep -q "$pattern" "$test_case" || echo "Missing '$pattern' in '$test_case'"
|
||||||
|
|
||||||
if grep -q "^spawn.*CLICKHOUSE_CLIENT_BINARY$" "$test_case"; then
|
if grep -q "^spawn.*CLICKHOUSE_CLIENT_BINARY$" "$test_case"; then
|
||||||
|
Loading…
Reference in New Issue
Block a user