Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ variables:
CACHE_DIR: /CovenantSQL_bins
PIPELINE_CACHE: $CACHE_DIR/$CI_PIPELINE_IID
BIN_CACHE: $CACHE_DIR/$CI_PIPELINE_IID/bin
PREV_VERSION: v0.5.0
# gitlabci bins: 192.168.2.100:/srv/gitlab-runner/config/CovenantSQL_bins
PREV_VERSION: v0.6.0
# gitlabci bins: 192.168.2.100:/data/CovenantSQL_bins

before_script:
# Setup dependency management tool
Expand Down
36 changes: 11 additions & 25 deletions test/compatibility/specific_old.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,34 +49,20 @@ nohup ${MINERBIN} -config node_miner_2/config.yaml >${LOGS_DIR}/miner2.log 2>&1
# wait miner start
sleep 20

if [[ $CLIENTBIN =~ "v0.5.0" ]]; then
${CLIENTBIN} wallet -config node_c/config.yaml -balance all -no-password
${CLIENTBIN} create -config node_c/config.yaml -wait-tx-confirm -no-password '{"node":2}' | tail -n1 | tee dsn.txt
${CLIENTBIN} wallet -config node_c/config.yaml
${CLIENTBIN} create -config node_c/config.yaml -wait-tx-confirm -db-node 2

dsn=$(cat dsn.txt)
if [ -z "$dsn" ]; then
exit 1
fi
${CLIENTBIN} console -config ${PROJECT_DIR}/test/integration/node_c/config.yaml -dsn ${dsn} \
-command 'create table test_for_new_account(column1 int);' -no-password
${CLIENTBIN} console -config ${PROJECT_DIR}/test/integration/node_c/config.yaml -dsn ${dsn} \
-command 'show tables;' -no-password | tee result.log
else
${CLIENTBIN} wallet -config node_c/config.yaml
${CLIENTBIN} create -config node_c/config.yaml -wait-tx-confirm -db-node 2

#get dsn
dsn=$(cat node_c/.dsn | tail -n1)
if [ -z "$dsn" ]; then
exit 1
fi
#get dsn
dsn=$(cat node_c/.dsn | tail -n1)
if [ -z "$dsn" ]; then
exit 1
fi

${CLIENTBIN} console -config ${PROJECT_DIR}/test/integration/node_c/config.yaml \
-command 'create table test_for_new_account(column1 int);' ${dsn}
${CLIENTBIN} console -config ${PROJECT_DIR}/test/integration/node_c/config.yaml \
-command 'create table test_for_new_account(column1 int);' ${dsn}

${CLIENTBIN} console -config ${PROJECT_DIR}/test/integration/node_c/config.yaml \
-command 'show tables;' ${dsn} | tee result.log
fi
${CLIENTBIN} console -config ${PROJECT_DIR}/test/integration/node_c/config.yaml \
-command 'show tables;' ${dsn} | tee result.log

grep "1 row" result.log