mirror of
https://github.com/dolthub/dolt.git
synced 2026-02-11 02:59:34 -06:00
32 lines
709 B
Bash
32 lines
709 B
Bash
#!/usr/bin/env bats
|
|
load $BATS_TEST_DIRNAME/helper/common.bash
|
|
|
|
setup() {
|
|
setup_no_dolt_init
|
|
}
|
|
|
|
teardown() {
|
|
stop_sql_server
|
|
assert_feature_version
|
|
teardown_common
|
|
}
|
|
|
|
@test "clone-drop: clone a database and then drop it" {
|
|
mkdir repo
|
|
cd repo
|
|
dolt init
|
|
dolt remote add pushed 'file://../pushed'
|
|
dolt push pushed main:main
|
|
dolt sql -q 'call dolt_clone("file://../pushed", "cloned"); drop database cloned;'
|
|
}
|
|
|
|
@test "clone-drop: sql-server: clone a database and then drop it" {
|
|
mkdir repo
|
|
cd repo
|
|
dolt init
|
|
dolt remote add pushed 'file://../pushed'
|
|
dolt push pushed main:main
|
|
start_sql_server
|
|
dolt sql -q 'call dolt_clone("file://../pushed", "cloned"); drop database cloned;'
|
|
}
|