1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-15 22:22:17 +03:00
Files
mariadb-columnstore-engine/mysql/queries/nightly/demo/test512.sh
2016-01-06 14:08:59 -06:00

32 lines
701 B
Bash
Executable File

#!/bin/sh
#
# Test 512. Repeats group by queries at the edge of TotalUmMemory set to 4G to monitor memory.
#
TEST=test512
STATUSTEXT="512 Repeat Group By Query: "
if [ -z "$MYSQLCMD" ]; then
MYSQLCMD="/usr/local/Calpont/mysql/bin/mysql --defaults-file=/usr/local/Calpont/mysql/my.cnf -u root"
export MYSQLCMD
fi
# Default the status to Failed.
echo "$STATUSTEXT Incomplete" > $TEST.status
cd $TEST
./go512.sh
cd ..
#
# Populate the .status file.
#
diffs=`wc -l $TEST/diff.txt | awk '{print $1}'`
if [ $diffs -gt 0 ]; then
echo "$STATUSTEXT Failed (check $TEST/diff.txt)" > $TEST.status
else
echo "$STATUSTEXT Passed" > $TEST.status
fi
cat $TEST.status