mirror of
https://github.com/dolthub/dolt.git
synced 2026-05-01 20:00:22 -05:00
adding tests
This commit is contained in:
@@ -42,6 +42,13 @@ teardown() {
|
||||
[[ "$output" =~ "+---------------------" ]] || false
|
||||
}
|
||||
|
||||
@test "sql-shell: dolt sql shell has mysql db" {
|
||||
run dolt sql <<< "show tables from mysql;"
|
||||
[ "$status" -eq "0" ]
|
||||
[[ "$output" =~ "user" ]] || false
|
||||
[[ "$output" =~ "role_edges" ]] || false
|
||||
}
|
||||
|
||||
@test "sql-shell: bad sql in sql shell should error" {
|
||||
run dolt sql <<< "This is bad sql"
|
||||
[ $status -eq 1 ]
|
||||
|
||||
@@ -39,6 +39,13 @@ teardown() {
|
||||
teardown_common
|
||||
}
|
||||
|
||||
@test "sql: dolt sql -q has mysql db" {
|
||||
run dolt sql -q "show tables from mysql;"
|
||||
[ "$status" -eq "0" ]
|
||||
[[ "$output" =~ "user" ]] || false
|
||||
[[ "$output" =~ "role_edges" ]] || false
|
||||
}
|
||||
|
||||
@test "sql: errors do not write incomplete rows" {
|
||||
skip_nbf_dolt_1
|
||||
dolt sql <<"SQL"
|
||||
|
||||
Reference in New Issue
Block a user