mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Split too long test
This commit is contained in:
parent
7a02babc06
commit
ed80378a43
9
dbms/tests/queries/0_stateless/00534_long_functions_bad_arguments.lib
Executable file
9
dbms/tests/queries/0_stateless/00534_long_functions_bad_arguments.lib
Executable file
@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||
. $CURDIR/../shell_config.sh
|
||||
|
||||
function test_variant {
|
||||
perl -E "say \$_ for map {chomp; (qq{$1})} qx{$CLICKHOUSE_CLIENT -q 'SELECT name FROM system.functions ORDER BY name;'}" | $CLICKHOUSE_CLIENT -n --ignore-error >/dev/null 2>&1
|
||||
$CLICKHOUSE_CLIENT -q "SELECT 'Still alive'"
|
||||
}
|
@ -1,11 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||
. $CURDIR/../shell_config.sh
|
||||
|
||||
# Server should not crash on any function trash calls
|
||||
|
||||
# todo: maybe add more strange usages
|
||||
perl -E "say \$_ for map {chomp; (qq{SELECT \$_;}, qq{SELECT \$_();}, qq{SELECT \$_(NULL);}, qq{SELECT \$_([]);}, qq{SELECT \$_([NULL]);}, qq{SELECT \$_(-1);}, qq{SELECT \$_('');},)} qx{$CLICKHOUSE_CLIENT -q 'SELECT name FROM system.functions ORDER BY name;'}" | $CLICKHOUSE_CLIENT -n --ignore-error >/dev/null 2>&1
|
||||
|
||||
$CLICKHOUSE_CLIENT -q "SELECT 'Still alive'"
|
10
dbms/tests/queries/0_stateless/00534_long_functions_bad_arguments1.sh
Executable file
10
dbms/tests/queries/0_stateless/00534_long_functions_bad_arguments1.sh
Executable file
@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||
. $CURDIR/../shell_config.sh
|
||||
|
||||
. $CURDIR/00534_long_functions_bad_arguments.lib
|
||||
|
||||
test_variant 'SELECT $_;'
|
||||
|
||||
# todo: maybe add more strange usages
|
@ -0,0 +1 @@
|
||||
Still alive
|
8
dbms/tests/queries/0_stateless/00534_long_functions_bad_arguments2.sh
Executable file
8
dbms/tests/queries/0_stateless/00534_long_functions_bad_arguments2.sh
Executable file
@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||
. $CURDIR/../shell_config.sh
|
||||
|
||||
. $CURDIR/00534_long_functions_bad_arguments.lib
|
||||
|
||||
test_variant 'SELECT $_();'
|
@ -0,0 +1 @@
|
||||
Still alive
|
8
dbms/tests/queries/0_stateless/00534_long_functions_bad_arguments3.sh
Executable file
8
dbms/tests/queries/0_stateless/00534_long_functions_bad_arguments3.sh
Executable file
@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||
. $CURDIR/../shell_config.sh
|
||||
|
||||
. $CURDIR/00534_long_functions_bad_arguments.lib
|
||||
|
||||
test_variant 'SELECT $_(NULL);'
|
@ -0,0 +1 @@
|
||||
Still alive
|
8
dbms/tests/queries/0_stateless/00534_long_functions_bad_arguments4.sh
Executable file
8
dbms/tests/queries/0_stateless/00534_long_functions_bad_arguments4.sh
Executable file
@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||
. $CURDIR/../shell_config.sh
|
||||
|
||||
. $CURDIR/00534_long_functions_bad_arguments.lib
|
||||
|
||||
test_variant 'SELECT $_([]);'
|
@ -0,0 +1 @@
|
||||
Still alive
|
8
dbms/tests/queries/0_stateless/00534_long_functions_bad_arguments5.sh
Executable file
8
dbms/tests/queries/0_stateless/00534_long_functions_bad_arguments5.sh
Executable file
@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||
. $CURDIR/../shell_config.sh
|
||||
|
||||
. $CURDIR/00534_long_functions_bad_arguments.lib
|
||||
|
||||
test_variant 'SELECT $_([NULL]);'
|
@ -0,0 +1 @@
|
||||
Still alive
|
8
dbms/tests/queries/0_stateless/00534_long_functions_bad_arguments6.sh
Executable file
8
dbms/tests/queries/0_stateless/00534_long_functions_bad_arguments6.sh
Executable file
@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||
. $CURDIR/../shell_config.sh
|
||||
|
||||
. $CURDIR/00534_long_functions_bad_arguments.lib
|
||||
|
||||
test_variant 'SELECT $_(-1);'
|
@ -0,0 +1 @@
|
||||
Still alive
|
8
dbms/tests/queries/0_stateless/00534_long_functions_bad_arguments7.sh
Executable file
8
dbms/tests/queries/0_stateless/00534_long_functions_bad_arguments7.sh
Executable file
@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||
. $CURDIR/../shell_config.sh
|
||||
|
||||
. $CURDIR/00534_long_functions_bad_arguments.lib
|
||||
|
||||
test_variant 'SELECT $_('');'
|
2
debian/control
vendored
2
debian/control
vendored
@ -49,7 +49,7 @@ Description: debugging symbols for clickhouse-server-base
|
||||
This package contains the debugging symbols for clickhouse-server-base.
|
||||
|
||||
Package: clickhouse-test
|
||||
#Priority: extra
|
||||
Priority: extra
|
||||
Architecture: any
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends}, clickhouse-client, bash, expect, python, python-lxml, python-termcolor, curl, perl, sudo
|
||||
Description: Clickhouse tests
|
||||
|
Loading…
Reference in New Issue
Block a user