1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-17 09:41:06 +03:00
Files
mariadb-columnstore-engine/mysql/queries/nightly/demo/test513/.svn/text-base/go513.sh.svn-base
2016-01-06 14:08:59 -06:00

23 lines
674 B
Bash

#!/bin/sh
DB=`../getDatabaseName.sh tpch1tc`
if [ -z "$MYSQLCMD" ]; then
MYSQLCMD="/usr/local/Calpont/mysql/bin/mysql --defaults-file=/usr/local/Calpont/mysql/my.cnf -u root"
export MYSQLCMD
fi
echo "Test still running." > diff.txt
#
# Run the union script.
#
echo "Running group by query at 4GB TotalUmMemory limit several times. Takes a while."
$MYSQLCMD $DB -f -n -vvv < distinct.sql > distinct.sql.log 2>&1
#
# Run a diff report.
#
egrep -v "MaxMem|count|getstats|sec|--|Bye" distinct.sql.log | grep "|" > diff.log
egrep -v "MaxMem|count|getstats|sec|--|Bye" distinct.sql.ref.log | grep "|" > diff.ref.log
diff diff.log diff.ref.log > diff.txt 2>&1