You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-17 09:41:06 +03:00
45 lines
1.1 KiB
Bash
45 lines
1.1 KiB
Bash
#!/bin/sh
|
|
#
|
|
# Test 609. Validate the ssb100cM2 data.
|
|
#
|
|
TEST=test609
|
|
STATUSTEXT="609 Ssb100cM2 Data Validation : "
|
|
DB=ssb100cM2
|
|
|
|
if [ -z "$MYSQLCMD" ]; then
|
|
MYSQLCMD="/usr/local/Calpont/mysql/bin/mysql --defaults-file=/usr/local/Calpont/mysql/my.cnf -u root"
|
|
export MYSQLCMD
|
|
fi
|
|
|
|
#
|
|
# Run validation queries.
|
|
#
|
|
../../queryTester -q ssb100 -u $DB -r Tr > $TEST.log 2>&1
|
|
|
|
#
|
|
# Populate the .status file.
|
|
#
|
|
errorCount=`grep -i error $TEST.log | wc -l`
|
|
grep failed $TEST.log > failed.txt
|
|
failedCount=`cat failed.txt | wc -l`
|
|
|
|
if [ $errorCount -gt 0 ]
|
|
then
|
|
echo "$STATUSTEXT Failed (Check $TEST.log for errors)" > $TEST.status
|
|
elif [ $failedCount -gt 0 ]
|
|
then
|
|
echo "$STATUSTEXT Failed (Data validation failed. See details below.)" > $TEST.status
|
|
else
|
|
echo "$STATUSTEXT Passed" > $TEST.status
|
|
fi
|
|
|
|
# List the individual sql validation scripts that failed in the .details file.
|
|
if [ $failedCount -gt 0 ]
|
|
then
|
|
echo "$TEST validation scripts that failed:" > $TEST.details
|
|
cat failed.txt >> $TEST.details
|
|
fi
|
|
|
|
cat $TEST.status
|
|
|