1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-04-18 21:44:02 +03:00
Andrey Piskunov f2affca162
MCOL-5478 upgrade tests (#2815)
* Squash all

* Typos

* Only load shared on centos

* Debug

* Install rsyslog

* More exceptions

* One more exception

* rename pkgs

* Remove unnecessary copying

* deb doesn't work on arm with 1-4

* Disable CentOS

* Remove flights

* Use setup-repo

* Exclude deb12
2023-08-04 18:43:52 +03:00

21 lines
461 B
Bash
Executable File

#!/usr/bin/env bash
set -xeuo pipefail
SCHEMA_DIR=$(dirname "$0")
NAME1='airports'
NAME2='airlines'
test_data ()
{
NAME=$1
mariadb --init-command="SET sql_mode=''" -vvv -e "select * into outfile '/tmp/${NAME}.test.csv' FIELDS TERMINATED BY ',' LINES TERMINATED BY '\n' FROM columnstore_bts.${NAME};"
diff <(tail -n +2 "${NAME}.csv") <(tail -n +2 "/tmp/${NAME}.test.csv")
rm "/tmp/${NAME}.test.csv"
}
test_data "$NAME1"
test_data "$NAME2"